[PATCH] percpu: fix clang modpost warning in pcpu_build_alloc_info()
by Dennis Zhou
This is an unusual situation so I thought it best to explain it in a
separate patch.
"percpu: reduce the number of cpu distance comparisons" introduces a
dependency on cpumask helper functions in __init code. This code
references a struct cpumask annotated __initdata. When the function is
inlined (gcc), everything is fine, but clang decides not to inline these
function calls. This causes modpost to warn about an __initdata access
by a function not annotated with __init [1].
Ways I thought about fixing it:
1. figure out why clang thinks this inlining is too costly.
2. create a wrapper function annotated __init (this).
3. annotate cpumask with __refdata.
Ultimately it comes down to if it's worth saving the cpumask memory and
allowing it to be freed. IIUC, __refdata won't be freed, so option 3 is
just a little wasteful. 1 is out of my depth, leaving 2. I don't feel
great about this behavior being dependent on inlining semantics, but
cpumask helpers are small and probably should be inlined.
modpost complaint:
WARNING: modpost: vmlinux.o(.text+0x735425): Section mismatch in reference from the function cpumask_clear_cpu() to the variable .init.data:pcpu_build_alloc_info.mask
The function cpumask_clear_cpu() references
the variable __initdata pcpu_build_alloc_info.mask.
This is often because cpumask_clear_cpu lacks a __initdata
annotation or the annotation of pcpu_build_alloc_info.mask is wrong.
clang output:
mm/percpu.c:2724:5: remark: cpumask_clear_cpu not inlined into pcpu_build_alloc_info because too costly to inline (cost=725, threshold=325) [-Rpass-missed=inline]
[1] https://lore.kernel.org/linux-mm/202012220454.9F6Bkz9q-lkp@intel.com/
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: Dennis Zhou <dennis(a)kernel.org>
---
This is on top of percpu#for-5.12.
mm/percpu.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/mm/percpu.c b/mm/percpu.c
index 80f8f885a990..357977c4cb00 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -2642,6 +2642,18 @@ early_param("percpu_alloc", percpu_alloc_setup);
/* pcpu_build_alloc_info() is used by both embed and page first chunk */
#if defined(BUILD_EMBED_FIRST_CHUNK) || defined(BUILD_PAGE_FIRST_CHUNK)
+
+/*
+ * This wrapper is to avoid a warning where cpumask_clear_cpu() is not inlined
+ * when compiling with clang causing modpost to warn about accessing __initdata
+ * from a non __init function. By doing this, we allow the struct cpumask to be
+ * freed instead of it taking space by annotating with __refdata.
+ */
+static void __init pcpu_cpumask_clear_cpu(int cpu, struct cpumask *mask)
+{
+ cpumask_clear_cpu(cpu, mask);
+}
+
/**
* pcpu_build_alloc_info - build alloc_info considering distances between CPUs
* @reserved_size: the size of reserved percpu area in bytes
@@ -2713,7 +2725,7 @@ static struct pcpu_alloc_info * __init pcpu_build_alloc_info(
cpu = cpumask_first(&mask);
group_map[cpu] = group;
group_cnt[group]++;
- cpumask_clear_cpu(cpu, &mask);
+ pcpu_cpumask_clear_cpu(cpu, &mask);
for_each_cpu(tcpu, &mask) {
if (!cpu_distance_fn ||
@@ -2721,7 +2733,7 @@ static struct pcpu_alloc_info * __init pcpu_build_alloc_info(
cpu_distance_fn(tcpu, cpu) == LOCAL_DISTANCE)) {
group_map[tcpu] = group;
group_cnt[group]++;
- cpumask_clear_cpu(tcpu, &mask);
+ pcpu_cpumask_clear_cpu(tcpu, &mask);
}
}
}
--
2.29.2.729.g45daf8777d-goog
1 year, 4 months
Re: [PATCH v2 2/2] crypto: x86/aes-ni-xts - rewrite and drop indirections via glue helper
by kernel test robot
Hi Ard,
I love your patch! Yet something to improve:
[auto build test ERROR on cryptodev/master]
[also build test ERROR on crypto/master linus/master v5.11-rc1 next-20201223]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Ard-Biesheuvel/crypto-x86-aes-ni...
base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: i386-randconfig-c001-20201231 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/120e62f276c7436572e8a67ecfb9bbb11...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ard-Biesheuvel/crypto-x86-aes-ni-xts-recover-and-improve-performance/20210101-004902
git checkout 120e62f276c7436572e8a67ecfb9bbb1125bfd8d
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: arch/x86/crypto/aesni-intel_asm.o: in function `aesni_xts_encrypt':
>> arch/x86/crypto/aesni-intel_asm.S:2844: undefined reference to `.Lcts_permute_table'
ld: arch/x86/crypto/aesni-intel_asm.o: in function `aesni_xts_decrypt':
arch/x86/crypto/aesni-intel_asm.S:3006: undefined reference to `.Lcts_permute_table'
vim +2844 arch/x86/crypto/aesni-intel_asm.S
2702
2703 /*
2704 * _aesni_gf128mul_x_ble: internal ABI
2705 * Multiply in GF(2^128) for XTS IVs
2706 * input:
2707 * IV: current IV
2708 * GF128MUL_MASK == mask with 0x87 and 0x01
2709 * output:
2710 * IV: next IV
2711 * changed:
2712 * CTR: == temporary value
2713 */
2714 #define _aesni_gf128mul_x_ble() \
2715 pshufd $0x13, IV, KEY; \
2716 paddq IV, IV; \
2717 psrad $31, KEY; \
2718 pand GF128MUL_MASK, KEY; \
2719 pxor KEY, IV;
2720
2721 /*
2722 * void aesni_xts_encrypt(const struct crypto_aes_ctx *ctx, u8 *dst,
2723 * const u8 *src, unsigned int len, le128 *iv)
2724 */
2725 SYM_FUNC_START(aesni_xts_encrypt)
2726 FRAME_BEGIN
2727 #ifndef __x86_64__
2728 pushl IVP
2729 pushl LEN
2730 pushl KEYP
2731 pushl KLEN
2732 movl (FRAME_OFFSET+20)(%esp), KEYP # ctx
2733 movl (FRAME_OFFSET+24)(%esp), OUTP # dst
2734 movl (FRAME_OFFSET+28)(%esp), INP # src
2735 movl (FRAME_OFFSET+32)(%esp), LEN # len
2736 movl (FRAME_OFFSET+36)(%esp), IVP # iv
2737 movdqa .Lgf128mul_x_ble_mask, GF128MUL_MASK
2738 #else
2739 movdqa .Lgf128mul_x_ble_mask(%rip), GF128MUL_MASK
2740 #endif
2741 movups (IVP), IV
2742
2743 mov 480(KEYP), KLEN
2744
2745 .Lxts_enc_loop4:
2746 sub $64, LEN
2747 jl .Lxts_enc_1x
2748
2749 movdqa IV, STATE1
2750 movdqu 0x00(INP), IN
2751 pxor IN, STATE1
2752 movdqu IV, 0x00(OUTP)
2753
2754 _aesni_gf128mul_x_ble()
2755 movdqa IV, STATE2
2756 movdqu 0x10(INP), IN
2757 pxor IN, STATE2
2758 movdqu IV, 0x10(OUTP)
2759
2760 _aesni_gf128mul_x_ble()
2761 movdqa IV, STATE3
2762 movdqu 0x20(INP), IN
2763 pxor IN, STATE3
2764 movdqu IV, 0x20(OUTP)
2765
2766 _aesni_gf128mul_x_ble()
2767 movdqa IV, STATE4
2768 movdqu 0x30(INP), IN
2769 pxor IN, STATE4
2770 movdqu IV, 0x30(OUTP)
2771
2772 call _aesni_enc4
2773
2774 movdqu 0x00(OUTP), IN
2775 pxor IN, STATE1
2776 movdqu STATE1, 0x00(OUTP)
2777
2778 movdqu 0x10(OUTP), IN
2779 pxor IN, STATE2
2780 movdqu STATE2, 0x10(OUTP)
2781
2782 movdqu 0x20(OUTP), IN
2783 pxor IN, STATE3
2784 movdqu STATE3, 0x20(OUTP)
2785
2786 movdqu 0x30(OUTP), IN
2787 pxor IN, STATE4
2788 movdqu STATE4, 0x30(OUTP)
2789
2790 _aesni_gf128mul_x_ble()
2791
2792 add $64, INP
2793 add $64, OUTP
2794 test LEN, LEN
2795 jnz .Lxts_enc_loop4
2796
2797 .Lxts_enc_ret_iv:
2798 movups IV, (IVP)
2799
2800 .Lxts_enc_ret:
2801 #ifndef __x86_64__
2802 popl KLEN
2803 popl KEYP
2804 popl LEN
2805 popl IVP
2806 #endif
2807 FRAME_END
2808 ret
2809
2810 .Lxts_enc_1x:
2811 add $64, LEN
2812 jz .Lxts_enc_ret_iv
2813 sub $16, LEN
2814 jl .Lxts_enc_cts4
2815
2816 .Lxts_enc_loop1:
2817 movdqu (INP), STATE
2818 pxor IV, STATE
2819 call _aesni_enc1
2820 pxor IV, STATE
2821 _aesni_gf128mul_x_ble()
2822
2823 test LEN, LEN
2824 jz .Lxts_enc_out
2825
2826 add $16, INP
2827 sub $16, LEN
2828 jl .Lxts_enc_cts1
2829
2830 movdqu STATE, (OUTP)
2831 add $16, OUTP
2832 jmp .Lxts_enc_loop1
2833
2834 .Lxts_enc_out:
2835 movdqu STATE, (OUTP)
2836 jmp .Lxts_enc_ret_iv
2837
2838 .Lxts_enc_cts4:
2839 movdqa STATE4, STATE
2840 sub $16, OUTP
2841
2842 .Lxts_enc_cts1:
2843 #ifndef __x86_64__
> 2844 lea .Lcts_permute_table, T1
2845 #else
2846 lea .Lcts_permute_table(%rip), T1
2847 #endif
2848 add LEN, INP /* rewind input pointer */
2849 add $16, LEN /* # bytes in final block */
2850 movups (INP), IN1
2851
2852 mov T1, IVP
2853 add $32, IVP
2854 add LEN, T1
2855 sub LEN, IVP
2856 add OUTP, LEN
2857
2858 movups (T1), %xmm4
2859 movaps STATE, IN2
2860 pshufb %xmm4, STATE
2861 movups STATE, (LEN)
2862
2863 movups (IVP), %xmm0
2864 pshufb %xmm0, IN1
2865 pblendvb IN2, IN1
2866 movaps IN1, STATE
2867
2868 pxor IV, STATE
2869 call _aesni_enc1
2870 pxor IV, STATE
2871
2872 movups STATE, (OUTP)
2873 jmp .Lxts_enc_ret
2874 SYM_FUNC_END(aesni_xts_encrypt)
2875
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-stable-rc:linux-4.19.y 1385/9999] img-hash.c:undefined reference to `devm_ioremap_resource'
by kernel test robot
Hi Harald,
It's probably a bug fix that unveils the link errors.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: e864f43593ccf9180c61738abdf1c1dde091367d
commit: 4c15ded559797bd969dd8222d4451554a5c1b3b5 [1385/9999] s390/ap: rework assembler functions to use unions for in/out register variables
config: s390-randconfig-s032-20201231 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout 4c15ded559797bd969dd8222d4451554a5c1b3b5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
s390-linux-ld: drivers/irqchip/irq-uniphier-aidet.o: in function `uniphier_aidet_probe':
irq-uniphier-aidet.c:(.text+0x338): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/broadcom/phy-bcm-ns2-usbdrd.o: in function `ns2_drd_phy_probe':
phy-bcm-ns2-usbdrd.c:(.text+0x3b2): undefined reference to `devm_ioremap_resource'
s390-linux-ld: phy-bcm-ns2-usbdrd.c:(.text+0x3e4): undefined reference to `devm_ioremap_resource'
s390-linux-ld: phy-bcm-ns2-usbdrd.c:(.text+0x416): undefined reference to `devm_ioremap_resource'
s390-linux-ld: phy-bcm-ns2-usbdrd.c:(.text+0x448): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/broadcom/phy-brcm-sata.o:phy-brcm-sata.c:(.text+0xae): more undefined references to `devm_ioremap_resource' follow
s390-linux-ld: drivers/reset/reset-sunxi.o: in function `sun6i_reset_init':
reset-sunxi.c:(.init.text+0xa4): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/char/xillybus/xillybus_of.o: in function `xilly_drv_probe':
xillybus_of.c:(.text+0xda): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mfd/syscon.o: in function `of_syscon_register':
syscon.c:(.text+0x8a): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/mfd/syscon.o: in function `syscon_probe':
syscon.c:(.text+0x31a): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/input/serio/apbps2.o: in function `apbps2_of_probe':
apbps2.c:(.text+0x250): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/input/serio/olpc_apsp.o: in function `olpc_apsp_probe':
olpc_apsp.c:(.text+0x280): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/rc/ir-hix5hd2.o: in function `hix5hd2_ir_probe':
ir-hix5hd2.c:(.text+0x276): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/rc/meson-ir.o: in function `meson_ir_probe':
meson-ir.c:(.text+0x236): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/rc/st_rc.o: in function `st_rc_probe':
st_rc.c:(.text+0x3ae): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/media/rc/sunxi-cir.o:sunxi-cir.c:(.text+0x34a): more undefined references to `devm_ioremap_resource' follow
s390-linux-ld: drivers/crypto/ccree/cc_debugfs.o: in function `cc_debugfs_init':
cc_debugfs.c:(.text+0xd8): undefined reference to `debugfs_create_regset32'
s390-linux-ld: drivers/crypto/img-hash.o: in function `img_hash_probe':
>> img-hash.c:(.text+0xedc): undefined reference to `devm_ioremap_resource'
s390-linux-ld: img-hash.c:(.text+0xf10): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/qcom-rng.o: in function `qcom_rng_probe':
>> qcom-rng.c:(.text+0xd8): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x8a): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/bcm2835_timer.o: in function `bcm2835_timer_init':
bcm2835_timer.c:(.init.text+0x42): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/clps711x-timer.o: in function `clps711x_timer_init':
clps711x-timer.c:(.init.text+0x1a6): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/zevio-timer.o: in function `zevio_timer_init':
zevio-timer.c:(.init.text+0x74): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/armv7m_systick.o: in function `system_timer_of_register':
armv7m_systick.c:(.init.text+0x42): undefined reference to `of_iomap'
s390-linux-ld: drivers/mailbox/hi3660-mailbox.o: in function `hi3660_mbox_probe':
hi3660-mailbox.c:(.text+0x1c0): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/bcm-pdc-mailbox.o: in function `pdc_probe':
bcm-pdc-mailbox.c:(.text+0x113c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/mtk-cmdq-mailbox.o: in function `cmdq_probe':
mtk-cmdq-mailbox.c:(.text+0x440): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/iio/adc/stm32-dfsdm-core.o: in function `stm32_dfsdm_probe':
stm32-dfsdm-core.c:(.text+0xf4): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/iio/dac/stm32-dac-core.o: in function `stm32_dac_probe':
stm32-dac-core.c:(.text+0xd6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/nvmem/imx-iim.o:imx-iim.c:(.text+0x116): more undefined references to `devm_ioremap_resource' follow
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for MFD_SYSCON
Depends on HAS_IOMEM
Selected by
- POWER_RESET_OCELOT_RESET && POWER_RESET && (MSCC_OCELOT || COMPILE_TEST
- PHY_HISTB_COMBPHY && (ARCH_HISI && ARM64 || COMPILE_TEST
WARNING: unmet direct dependencies detected for MFD_SYSCON
Depends on HAS_IOMEM
Selected by
- POWER_RESET_OCELOT_RESET && POWER_RESET && (MSCC_OCELOT || COMPILE_TEST
- PHY_HISTB_COMBPHY && (ARCH_HISI && ARM64 || COMPILE_TEST
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
Re: [PATCH] usb: dwc3: qcom: add URS Host support for sdm845 ACPI boot
by kernel test robot
Hi Shawn,
I love your patch! Perhaps something to improve:
[auto build test WARNING on balbi-usb/testing/next]
[also build test WARNING on v5.11-rc1 next-20201223]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Shawn-Guo/usb-dwc3-qcom-add-URS-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/c3faeb501efb31e035beca1c0fee1cca6...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Shawn-Guo/usb-dwc3-qcom-add-URS-Host-support-for-sdm845-ACPI-boot/20201230-205430
git checkout c3faeb501efb31e035beca1c0fee1cca6ec16392
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/usb/dwc3/dwc3-qcom.c: In function 'dwc3_qcom_create_urs_usb_platdev':
drivers/usb/dwc3/dwc3-qcom.c:675:9: error: implicit declaration of function 'acpi_create_platform_device' [-Werror=implicit-function-declaration]
675 | return acpi_create_platform_device(adev, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/dwc3-qcom.c:675:9: warning: returning 'int' from a function with return type 'struct platform_device *' makes pointer from integer without a cast [-Wint-conversion]
675 | return acpi_create_platform_device(adev, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +675 drivers/usb/dwc3/dwc3-qcom.c
659
660 static struct platform_device *
661 dwc3_qcom_create_urs_usb_platdev(struct device *dev)
662 {
663 struct fwnode_handle *fwh;
664 struct acpi_device *adev;
665
666 /* Find the first child of URS node */
667 fwh = fwnode_call_ptr_op(dev->fwnode, get_next_child_node, NULL);
668 if (!fwh)
669 return NULL;
670
671 adev = to_acpi_device_node(fwh);
672 if (!adev)
673 return NULL;
674
> 675 return acpi_create_platform_device(adev, NULL);
676 }
677
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
ERROR: modpost: ".__warn_printk" undefined!
by kernel test robot
Hi Christophe,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f6e1ea19649216156576aeafa784e3b4cee45549
commit: 0a571b085ff6dadf946b248133533d3ba68f6e31 asm-generic: force inlining of get_order() to work around gcc10 poor decision
date: 2 weeks ago
config: powerpc-randconfig-r034-20201225 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0a571b085ff6dadf946b248133533d3ba68f6e31
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
ERROR: modpost: ".kmem_cache_free" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".fib_rules_register" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".lock_sock_nested" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".sk_stop_timer" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._raw_spin_lock_bh" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".__might_fault" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".sk_filter_trim_cap" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".finish_wait" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".__nla_parse" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".skb_trim" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".dev_get_by_index" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._raw_write_lock_bh" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".rtnl_is_locked" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".skb_push" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".neigh_parms_release" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".sprintf" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".dev_load" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".skb_put" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".sock_register" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".__dev_get_by_name" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".neigh_lookup" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".skb_realloc_headroom" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".__kmalloc" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".arch_local_irq_restore" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".wait_woken" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".dst_release_immediate" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".nla_put" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".neigh_parms_alloc" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._raw_spin_lock" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._raw_write_unlock" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".skb_unlink" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".sk_alloc" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".kmem_cache_create" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".__alloc_skb" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".nla_find" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".sk_free" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".dst_release" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".skb_dequeue" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".__raw_spin_lock_init" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".nla_reserve_nohdr" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".nla_strcmp" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".fib_default_rule_add" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".pskb_expand_head" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".send_sig" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".kvfree_call_rcu" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._raw_write_unlock_bh" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".neigh_for_each" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".skb_set_owner_w" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".proto_register" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".rtnl_put_cacheinfo" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".rtnl_notify" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._copy_from_iter_full" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".fib_rules_lookup" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".rtnl_lock" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".skb_queue_tail" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".skb_pull" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".nla_strscpy" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".strcpy" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._raw_spin_unlock" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".__local_bh_enable_ip" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._raw_write_lock" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".memcpy" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".add_wait_queue" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".neigh_destroy" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".memset" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".nla_memcmp" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".kmem_cache_alloc" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".sk_dst_check" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".add_timer" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._raw_spin_unlock_bh" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".__rcu_read_unlock" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".dev_mc_add" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".del_timer" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".sock_init_data" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".__pskb_pull_tail" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".rtnl_set_sk_err" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".remove_wait_queue" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".dst_alloc" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".strcmp" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".blocking_notifier_chain_register" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".sock_alloc_send_skb" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".neigh_lookup_nodev" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".prandom_u32" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".dev_add_pack" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".rtnl_unlock" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".netlink_capable" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._copy_from_user" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".blocking_notifier_call_chain" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".prepare_to_wait" [net/decnet/decnet.ko] undefined!
ERROR: modpost: "._raw_read_lock" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".__dst_destroy_metrics_generic" [net/decnet/decnet.ko] undefined!
ERROR: modpost: ".register_pm_notifier" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".skb_queue_purge" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".idr_for_each" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".cancel_delayed_work_sync" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".skb_clone" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: "._raw_spin_unlock_irqrestore" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".try_module_get" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".dev_fwnode" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".rfkill_unregister" [net/bluetooth/bluetooth.ko] undefined!
>> ERROR: modpost: ".__warn_printk" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".vsprintf" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__init_swait_queue_head" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".synchronize_rcu" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".crypto_alloc_shash" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__sock_recv_wifi_status" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".device_add" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".class_destroy" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".devm_kmalloc" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".snprintf" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".drain_workqueue" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__mutex_init" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".out_of_line_wait_on_bit" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".rfkill_register" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".cancel_delayed_work" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".release_sock" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".strlen" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".unregister_pm_notifier" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".skb_copy" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".iov_iter_kvec" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__rcu_read_lock" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".sg_init_one" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: "._copy_to_user" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".destroy_workqueue" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".rfkill_blocked" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".init_timer_key" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".crc16" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".devm_led_trigger_register" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: "._raw_read_unlock" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".schedule_timeout" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".kfree_skb" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".put_device" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__sock_recv_ts_and_drops" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".sock_unregister" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".led_trigger_unregister_simple" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".devm_kfree" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".cancel_work_sync" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".memcmp" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".refcount_warn_saturate" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".lock_sock_nested" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".flush_workqueue" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__module_get" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".module_put" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".aes_expandkey" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: "._raw_spin_lock_bh" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__init_waitqueue_head" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__might_fault" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".wait_for_completion" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".strncmp" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".queue_delayed_work_on" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".sk_filter_trim_cap" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".debugfs_create_u8" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".idr_alloc" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__might_sleep" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__pskb_copy_fclone" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".crypto_ecdh_encode_key" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".kfree_const" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".debugfs_create_file" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".finish_wait" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".skb_trim" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".proto_unregister" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".single_open" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".ida_free" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: "._raw_write_lock_bh" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".simple_read_from_buffer" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".skb_push" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".idr_get_next" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".ns_to_kernel_old_timeval" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".mutex_lock" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".sprintf" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".kfree_sensitive" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__msecs_to_jiffies" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".skb_put" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".sock_register" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__crypto_memneq" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".crypto_destroy_tfm" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".fwnode_property_read_u8_array" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__kmalloc" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".wake_up_bit" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".wait_woken" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".prepare_to_wait_event" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".idr_destroy" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".devm_kasprintf" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: "._raw_spin_lock" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".get_device" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: "._raw_write_unlock" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".skb_unlink" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".sk_alloc" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".rfkill_alloc" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__alloc_skb" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".crypto_ecdh_key_len" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".debugfs_remove" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".sk_free" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".kmemdup" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".device_initialize" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".jiffies_to_msecs" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".skb_dequeue" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".__raw_spin_lock_init" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".led_trigger_register_simple" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: ".kvfree_call_rcu" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: "._raw_write_unlock_bh" [net/bluetooth/bluetooth.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
sound/hda/intel-dsp-config.c:360: undefined reference to `sdw_intel_acpi_scan'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f6e1ea19649216156576aeafa784e3b4cee45549
commit: a115ab9b8b93e7f0ff28a4fc869a3222ae921edd ASoC: SOF: Intel: add build support for SoundWire
date: 4 months ago
config: i386-randconfig-s031-20201231 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a115ab9b8b93e7f0ff28a4fc869a3222ae921edd
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: sound/hda/intel-dsp-config.o: in function `snd_intel_dsp_check_soundwire':
>> sound/hda/intel-dsp-config.c:360: undefined reference to `sdw_intel_acpi_scan'
vim +360 sound/hda/intel-dsp-config.c
82d9d54a6c0ee8b Jaroslav Kysela 2019-10-22 350
0650857570d1614 Pierre-Louis Bossart 2020-04-09 351 #if IS_ENABLED(CONFIG_SND_SOC_SOF_INTEL_SOUNDWIRE)
0650857570d1614 Pierre-Louis Bossart 2020-04-09 352 static int snd_intel_dsp_check_soundwire(struct pci_dev *pci)
0650857570d1614 Pierre-Louis Bossart 2020-04-09 353 {
0650857570d1614 Pierre-Louis Bossart 2020-04-09 354 struct sdw_intel_acpi_info info;
0650857570d1614 Pierre-Louis Bossart 2020-04-09 355 acpi_handle handle;
0650857570d1614 Pierre-Louis Bossart 2020-04-09 356 int ret;
0650857570d1614 Pierre-Louis Bossart 2020-04-09 357
0650857570d1614 Pierre-Louis Bossart 2020-04-09 358 handle = ACPI_HANDLE(&pci->dev);
0650857570d1614 Pierre-Louis Bossart 2020-04-09 359
0650857570d1614 Pierre-Louis Bossart 2020-04-09 @360 ret = sdw_intel_acpi_scan(handle, &info);
0650857570d1614 Pierre-Louis Bossart 2020-04-09 361 if (ret < 0)
0650857570d1614 Pierre-Louis Bossart 2020-04-09 362 return ret;
0650857570d1614 Pierre-Louis Bossart 2020-04-09 363
0650857570d1614 Pierre-Louis Bossart 2020-04-09 364 return info.link_mask;
0650857570d1614 Pierre-Louis Bossart 2020-04-09 365 }
0650857570d1614 Pierre-Louis Bossart 2020-04-09 366 #else
0650857570d1614 Pierre-Louis Bossart 2020-04-09 367 static int snd_intel_dsp_check_soundwire(struct pci_dev *pci)
0650857570d1614 Pierre-Louis Bossart 2020-04-09 368 {
0650857570d1614 Pierre-Louis Bossart 2020-04-09 369 return 0;
0650857570d1614 Pierre-Louis Bossart 2020-04-09 370 }
0650857570d1614 Pierre-Louis Bossart 2020-04-09 371 #endif
0650857570d1614 Pierre-Louis Bossart 2020-04-09 372
:::::: The code at line 360 was first introduced by commit
:::::: 0650857570d161486a95d37bc8682628881ae2da ALSA: hda: add autodetection for SoundWire
:::::: TO: Pierre-Louis Bossart <pierre-louis.bossart(a)linux.intel.com>
:::::: CC: Takashi Iwai <tiwai(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[lee-linaro:google/android-3.18-batch 203/521] fs/pstore/ram_core.c:302:50: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot
tree: https://git.linaro.org/people/lee.jones/linux.git google/android-3.18-batch
head: 4067e89d337bc9eff1775d036695028b3ea3487c
commit: f1cd3961404b6c4ce4ba782e0427fe1e53d07f46 [203/521] pstore/ram: Use memcpy_fromio() to save old buffer
config: powerpc-randconfig-s031-20201230 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 5.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
git remote add lee-linaro https://git.linaro.org/people/lee.jones/linux.git
git fetch --no-tags lee-linaro google/android-3.18-batch
git checkout f1cd3961404b6c4ce4ba782e0427fe1e53d07f46
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
fs/pstore/ram_core.c:101:35: sparse: sparse: Variable length array is used.
fs/pstore/ram_core.c:114:35: sparse: sparse: Variable length array is used.
fs/pstore/ram_core.c:269:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] <asn:2> *d @@ got unsigned char * @@
fs/pstore/ram_core.c:269:34: sparse: expected void volatile [noderef] <asn:2> *d
fs/pstore/ram_core.c:269:34: sparse: got unsigned char *
>> fs/pstore/ram_core.c:302:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] <asn:2> *s @@ got unsigned char * @@
fs/pstore/ram_core.c:302:50: sparse: expected void const volatile [noderef] <asn:2> *s
fs/pstore/ram_core.c:302:50: sparse: got unsigned char *
fs/pstore/ram_core.c:303:65: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] <asn:2> *s @@ got unsigned char * @@
fs/pstore/ram_core.c:303:65: sparse: expected void const volatile [noderef] <asn:2> *s
fs/pstore/ram_core.c:303:65: sparse: got unsigned char *
fs/pstore/ram_core.c:444:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] <asn:2> * @@
fs/pstore/ram_core.c:444:20: sparse: expected void *va
fs/pstore/ram_core.c:444:20: sparse: got void [noderef] <asn:2> *
fs/pstore/ram_core.c:446:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] <asn:2> * @@
fs/pstore/ram_core.c:446:20: sparse: expected void *va
fs/pstore/ram_core.c:446:20: sparse: got void [noderef] <asn:2> *
fs/pstore/ram_core.c:528:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] <asn:2> *addr @@ got void *vaddr @@
fs/pstore/ram_core.c:528:36: sparse: expected void volatile [noderef] <asn:2> *addr
fs/pstore/ram_core.c:528:36: sparse: got void *vaddr
fs/pstore/ram_core.c:68:17: sparse: sparse: context imbalance in 'buffer_start_add' - unexpected unlock
fs/pstore/ram_core.c:94:17: sparse: sparse: context imbalance in 'buffer_size_add' - unexpected unlock
In file included from arch/powerpc/include/asm/pgtable-ppc32.h:7:0,
from arch/powerpc/include/asm/pgtable.h:19,
from include/linux/mm.h:63,
from include/linux/memblock.h:18,
from fs/pstore/ram_core.c:24:
include/linux/sched.h:1067:42: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^
In file included from include/linux/memblock.h:18:0,
from fs/pstore/ram_core.c:24:
include/linux/mm.h: In function 'is_vmalloc_addr':
include/linux/mm.h:378:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return addr >= VMALLOC_START && addr < VMALLOC_END;
^
In file included from include/linux/ioport.h:12:0,
from include/linux/device.h:16,
from fs/pstore/ram_core.c:17:
fs/pstore/ram_core.c: In function 'buffer_start_add':
fs/pstore/ram_core.c:63:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (unlikely(new >= prz->buffer_size))
^
include/linux/compiler.h:176:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
fs/pstore/ram_core.c: In function 'persistent_ram_write':
fs/pstore/ram_core.c:313:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (unlikely(c > prz->buffer_size)) {
^
include/linux/compiler.h:176:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
fs/pstore/ram_core.c: In function 'persistent_ram_write_user':
fs/pstore/ram_core.c:344:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (unlikely(c > prz->buffer_size)) {
^
include/linux/compiler.h:176:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
fs/pstore/ram_core.c:365:29: warning: signed and unsigned type in conditional expression [-Wsign-compare]
return unlikely(ret) ? ret : count;
^
vim +302 fs/pstore/ram_core.c
282
283 void persistent_ram_save_old(struct persistent_ram_zone *prz)
284 {
285 struct persistent_ram_buffer *buffer = prz->buffer;
286 size_t size = buffer_size(prz);
287 size_t start = buffer_start(prz);
288
289 if (!size)
290 return;
291
292 if (!prz->old_log) {
293 persistent_ram_ecc_old(prz);
294 prz->old_log = kmalloc(size, GFP_KERNEL);
295 }
296 if (!prz->old_log) {
297 pr_err("failed to allocate buffer\n");
298 return;
299 }
300
301 prz->old_log_size = size;
> 302 memcpy_fromio(prz->old_log, &buffer->data[start], size - start);
303 memcpy_fromio(prz->old_log + size - start, &buffer->data[0], start);
304 }
305
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months