[norov:find_bit_smallconst_v4 10/13] WARNING: modpost: vmlinux.o(.text.unlikely+0x24ce8): Section mismatch in reference from the function bfq_pos_tree_add_move() to the variable .init.data:initcall_level_names
by kernel test robot
tree: https://github.com/norov/linux find_bit_smallconst_v4
head: 747508d50b9b17dcf850b2a9c07156bf52e147df
commit: dc7e9fd8e17193278b35c65afb44911d93f82dd9 [10/13] lib: add fast path for find_next_*_bit()
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/norov/linux/commit/dc7e9fd8e17193278b35c65afb44911d93f...
git remote add norov https://github.com/norov/linux
git fetch --no-tags norov find_bit_smallconst_v4
git checkout dc7e9fd8e17193278b35c65afb44911d93f82dd9
# 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 >>, old ones prefixed by <<):
>> WARNING: modpost: vmlinux.o(.text.unlikely+0x24ce8): Section mismatch in reference from the function bfq_pos_tree_add_move() to the variable .init.data:initcall_level_names
The function bfq_pos_tree_add_move() references
the variable __initdata initcall_level_names.
This is often because bfq_pos_tree_add_move lacks a __initdata
annotation or the annotation of initcall_level_names is wrong.
The below error/warnings are from parent commit:
<< WARNING: modpost: vmlinux.o(.text.unlikely+0x251f8): Section mismatch in reference from the function bitmap_equal() to the variable .init.rodata:__setup_str_initcall_blacklist
<< WARNING: modpost: vmlinux.o(.data+0x159ca90): Section mismatch in reference from the variable qed_mfw_legacy_maps to the variable .init.rodata:__setup_str_initcall_blacklist
<< WARNING: modpost: vmlinux.o(.data+0x159cba0): Section mismatch in reference from the variable qed_mfw_ext_maps to the variable .init.rodata:__setup_str_initcall_blacklist
<< WARNING: modpost: vmlinux.o(.data+0x15a7710): Section mismatch in reference from the variable qede_forced_speed_maps to the variable .init.rodata:__setup_str_initcall_blacklist
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [v4] PCI: Add reset quirk for Huawei Intelligent NIC virtual function
by kernel test robot
Hi Chiqijun,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on pci/next]
[also build test WARNING on v5.12-rc2 next-20210312]
[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/Chiqijun/PCI-Add-reset-quirk-for...
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: sparc-randconfig-s031-20210313 (attached as .config)
compiler: sparc64-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-262-g5e674421-dirty
# https://github.com/0day-ci/linux/commit/2ee50cef940514cc4b80bf8d550cb4f28...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Chiqijun/PCI-Add-reset-quirk-for-Huawei-Intelligent-NIC-virtual-function/20210313-152632
git checkout 2ee50cef940514cc4b80bf8d550cb4f28e257d7a
# 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=sparc
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 >>)"
drivers/pci/quirks.c:2287:57: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/quirks.c:3938:15: sparse: sparse: cast to restricted __be32
drivers/pci/quirks.c:3948:15: sparse: sparse: cast to restricted __be32
>> drivers/pci/quirks.c:3950:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] l @@ got restricted __be32 [usertype] @@
drivers/pci/quirks.c:3950:16: sparse: expected unsigned int [usertype] l
drivers/pci/quirks.c:3950:16: sparse: got restricted __be32 [usertype]
drivers/pci/quirks.c:3965:23: sparse: sparse: cast to restricted __be32
drivers/pci/quirks.c:3971:15: sparse: sparse: cast to restricted __be32
vim +3950 drivers/pci/quirks.c
3922
3923 /* Device-specific reset method for Huawei Intelligent NIC virtual functions */
3924 static int reset_hinic_vf_dev(struct pci_dev *pdev, int probe)
3925 {
3926 unsigned long timeout;
3927 void __iomem *bar;
3928 u32 val;
3929
3930 if (probe)
3931 return 0;
3932
3933 bar = pci_iomap(pdev, 0, 0);
3934 if (!bar)
3935 return -ENOTTY;
3936
3937 /* Get and check firmware capabilities. */
3938 val = be32_to_cpu(readl(bar + HINIC_VF_FLR_TYPE));
3939 if (!(val & (1UL << HINIC_VF_FLR_CAP_BIT_SHIFT))) {
3940 pci_iounmap(pdev, bar);
3941 return -ENOTTY;
3942 }
3943
3944 /*
3945 * Set the processing bit for the start of FLR, which will be cleared
3946 * by the firmware after FLR is completed.
3947 */
3948 val = be32_to_cpu(readl(bar + HINIC_VF_OP));
3949 val = val | (1UL << HINIC_VF_FLR_PROC_BIT_SHIFT);
> 3950 writel(cpu_to_be32(val), bar + HINIC_VF_OP);
3951
3952 /* Perform the actual device function reset */
3953 pcie_flr(pdev);
3954
3955 /*
3956 * The device must learn BDF after FLR in order to respond to BAR's
3957 * read request, therefore, we issue a configure write request to let
3958 * the device capture BDF.
3959 */
3960 pci_write_config_word(pdev, PCI_VENDOR_ID, 0);
3961
3962 /* Waiting for device reset complete */
3963 timeout = jiffies + msecs_to_jiffies(HINIC_OPERATION_TIMEOUT);
3964 do {
3965 val = be32_to_cpu(readl(bar + HINIC_VF_OP));
3966 if (!(val & (1UL << HINIC_VF_FLR_PROC_BIT_SHIFT)))
3967 goto reset_complete;
3968 msleep(20);
3969 } while (time_before(jiffies, timeout));
3970
3971 val = be32_to_cpu(readl(bar + HINIC_VF_OP));
3972 if (!(val & (1UL << HINIC_VF_FLR_PROC_BIT_SHIFT)))
3973 goto reset_complete;
3974
3975 pci_warn(pdev, "Reset dev timeout, flr ack reg: %#010x\n", val);
3976
3977 reset_complete:
3978 pci_iounmap(pdev, bar);
3979
3980 return 0;
3981 }
3982
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[efi:next 2/4] arch/ia64/kernel/efi.c:61:10: sparse: sparse: cast truncates bits from constant value (43ea58dc becomes dc)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next
head: e233b65935c946ba420ba1b5a42f9b5625861da8
commit: 17bdef976555d001276f0dc188201399e03b0e90 [2/4] efi: use 32-bit alignment for efi_guid_t literals
config: ia64-randconfig-s032-20210312 (attached as .config)
compiler: ia64-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-262-g5e674421-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git/commit/?id=17...
git remote add efi https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git
git fetch --no-tags efi next
git checkout 17bdef976555d001276f0dc188201399e03b0e90
# 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=ia64
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 >>)"
arch/ia64/kernel/efi.c:623:50: sparse: sparse: cast removes address space '__iomem' of expression
arch/ia64/kernel/efi.c:635:50: sparse: sparse: cast removes address space '__iomem' of expression
arch/ia64/kernel/efi.c:648:50: sparse: sparse: cast removes address space '__iomem' of expression
arch/ia64/kernel/efi.c:969:21: sparse: sparse: symbol 'find_memmap_space' was not declared. Should it be static?
>> arch/ia64/kernel/efi.c:61:10: sparse: sparse: cast truncates bits from constant value (43ea58dc becomes dc)
>> arch/ia64/kernel/efi.c:61:10: sparse: sparse: cast truncates bits from constant value (43ea58 becomes 58)
>> arch/ia64/kernel/efi.c:61:10: sparse: sparse: cast truncates bits from constant value (43ea becomes ea)
>> arch/ia64/kernel/efi.c:61:10: sparse: sparse: cast truncates bits from constant value (cf28 becomes 28)
>> arch/ia64/kernel/efi.c:61:10: sparse: sparse: cast truncates bits from constant value (4b06 becomes 6)
>> arch/ia64/kernel/efi.c:62:10: sparse: sparse: cast truncates bits from constant value (f951938d becomes 8d)
>> arch/ia64/kernel/efi.c:62:10: sparse: sparse: cast truncates bits from constant value (f95193 becomes 93)
>> arch/ia64/kernel/efi.c:62:10: sparse: sparse: cast truncates bits from constant value (f951 becomes 51)
>> arch/ia64/kernel/efi.c:62:10: sparse: sparse: cast truncates bits from constant value (620b becomes b)
>> arch/ia64/kernel/efi.c:62:10: sparse: sparse: cast truncates bits from constant value (42ef becomes ef)
>> arch/ia64/kernel/efi.c:63:10: sparse: sparse: cast truncates bits from constant value (eb9d2d2f becomes 2f)
>> arch/ia64/kernel/efi.c:63:10: sparse: sparse: cast truncates bits from constant value (eb9d2d becomes 2d)
>> arch/ia64/kernel/efi.c:63:10: sparse: sparse: cast truncates bits from constant value (eb9d becomes 9d)
>> arch/ia64/kernel/efi.c:63:10: sparse: sparse: cast truncates bits from constant value (2d88 becomes 88)
>> arch/ia64/kernel/efi.c:63:10: sparse: sparse: cast truncates bits from constant value (11d3 becomes d3)
>> arch/ia64/kernel/efi.c:64:10: sparse: sparse: cast truncates bits from constant value (6cb0a200 becomes 0)
>> arch/ia64/kernel/efi.c:64:10: sparse: sparse: cast truncates bits from constant value (6cb0a2 becomes a2)
>> arch/ia64/kernel/efi.c:64:10: sparse: sparse: cast truncates bits from constant value (6cb0 becomes b0)
>> arch/ia64/kernel/efi.c:64:10: sparse: sparse: cast truncates bits from constant value (893a becomes 3a)
>> arch/ia64/kernel/efi.c:64:10: sparse: sparse: cast truncates bits from constant value (11da becomes da)
>> arch/ia64/kernel/efi.c:65:10: sparse: sparse: cast truncates bits from constant value (eb9d2d32 becomes 32)
arch/ia64/kernel/efi.c:65:10: sparse: sparse: cast truncates bits from constant value (eb9d2d becomes 2d)
arch/ia64/kernel/efi.c:65:10: sparse: sparse: cast truncates bits from constant value (eb9d becomes 9d)
arch/ia64/kernel/efi.c:65:10: sparse: sparse: cast truncates bits from constant value (2d88 becomes 88)
arch/ia64/kernel/efi.c:65:10: sparse: sparse: cast truncates bits from constant value (11d3 becomes d3)
>> arch/ia64/kernel/efi.c:924:27: sparse: sparse: cast truncates bits from constant value (8be4df61 becomes 61)
>> arch/ia64/kernel/efi.c:924:27: sparse: sparse: cast truncates bits from constant value (8be4df becomes df)
>> arch/ia64/kernel/efi.c:924:27: sparse: sparse: cast truncates bits from constant value (8be4 becomes e4)
>> arch/ia64/kernel/efi.c:924:27: sparse: sparse: cast truncates bits from constant value (93ca becomes ca)
>> arch/ia64/kernel/efi.c:924:27: sparse: sparse: cast truncates bits from constant value (11d2 becomes d2)
--
arch/ia64/kernel/mca_drv.c:768:12: sparse: sparse: symbol 'mca_external_handler_init' was not declared. Should it be static?
arch/ia64/kernel/mca_drv.c:782:13: sparse: sparse: symbol 'mca_external_handler_exit' was not declared. Should it be static?
>> arch/ia64/kernel/mca_drv.c:261:44: sparse: sparse: cast truncates bits from constant value (e429faf1 becomes f1)
>> arch/ia64/kernel/mca_drv.c:261:44: sparse: sparse: cast truncates bits from constant value (e429fa becomes fa)
>> arch/ia64/kernel/mca_drv.c:261:44: sparse: sparse: cast truncates bits from constant value (e429 becomes 29)
>> arch/ia64/kernel/mca_drv.c:261:44: sparse: sparse: cast truncates bits from constant value (3cb7 becomes b7)
>> arch/ia64/kernel/mca_drv.c:261:44: sparse: sparse: cast truncates bits from constant value (11d4 becomes d4)
>> arch/ia64/kernel/mca_drv.c:264:33: sparse: sparse: cast truncates bits from constant value (e429faf2 becomes f2)
arch/ia64/kernel/mca_drv.c:264:33: sparse: sparse: cast truncates bits from constant value (e429fa becomes fa)
arch/ia64/kernel/mca_drv.c:264:33: sparse: sparse: cast truncates bits from constant value (e429 becomes 29)
arch/ia64/kernel/mca_drv.c:264:33: sparse: sparse: cast truncates bits from constant value (3cb7 becomes b7)
arch/ia64/kernel/mca_drv.c:264:33: sparse: sparse: cast truncates bits from constant value (11d4 becomes d4)
>> arch/ia64/kernel/mca_drv.c:268:33: sparse: sparse: cast truncates bits from constant value (e429faf3 becomes f3)
arch/ia64/kernel/mca_drv.c:268:33: sparse: sparse: cast truncates bits from constant value (e429fa becomes fa)
arch/ia64/kernel/mca_drv.c:268:33: sparse: sparse: cast truncates bits from constant value (e429 becomes 29)
arch/ia64/kernel/mca_drv.c:268:33: sparse: sparse: cast truncates bits from constant value (3cb7 becomes b7)
arch/ia64/kernel/mca_drv.c:268:33: sparse: sparse: cast truncates bits from constant value (11d4 becomes d4)
>> arch/ia64/kernel/mca_drv.c:272:33: sparse: sparse: cast truncates bits from constant value (e429faf4 becomes f4)
arch/ia64/kernel/mca_drv.c:272:33: sparse: sparse: cast truncates bits from constant value (e429fa becomes fa)
arch/ia64/kernel/mca_drv.c:272:33: sparse: sparse: cast truncates bits from constant value (e429 becomes 29)
arch/ia64/kernel/mca_drv.c:272:33: sparse: sparse: cast truncates bits from constant value (3cb7 becomes b7)
arch/ia64/kernel/mca_drv.c:272:33: sparse: sparse: cast truncates bits from constant value (11d4 becomes d4)
>> arch/ia64/kernel/mca_drv.c:276:33: sparse: sparse: cast truncates bits from constant value (e429faf5 becomes f5)
arch/ia64/kernel/mca_drv.c:276:33: sparse: sparse: cast truncates bits from constant value (e429fa becomes fa)
arch/ia64/kernel/mca_drv.c:276:33: sparse: sparse: cast truncates bits from constant value (e429 becomes 29)
arch/ia64/kernel/mca_drv.c:276:33: sparse: sparse: cast truncates bits from constant value (3cb7 becomes b7)
arch/ia64/kernel/mca_drv.c:276:33: sparse: sparse: cast truncates bits from constant value (11d4 becomes d4)
>> arch/ia64/kernel/mca_drv.c:280:33: sparse: sparse: cast truncates bits from constant value (e429faf6 becomes f6)
arch/ia64/kernel/mca_drv.c:280:33: sparse: sparse: cast truncates bits from constant value (e429fa becomes fa)
arch/ia64/kernel/mca_drv.c:280:33: sparse: sparse: cast truncates bits from constant value (e429 becomes 29)
arch/ia64/kernel/mca_drv.c:280:33: sparse: sparse: cast truncates bits from constant value (3cb7 becomes b7)
arch/ia64/kernel/mca_drv.c:280:33: sparse: sparse: cast truncates bits from constant value (11d4 becomes d4)
>> arch/ia64/kernel/mca_drv.c:284:33: sparse: sparse: cast truncates bits from constant value (e429faf7 becomes f7)
arch/ia64/kernel/mca_drv.c:284:33: sparse: sparse: cast truncates bits from constant value (e429fa becomes fa)
arch/ia64/kernel/mca_drv.c:284:33: sparse: sparse: cast truncates bits from constant value (e429 becomes 29)
arch/ia64/kernel/mca_drv.c:284:33: sparse: sparse: cast truncates bits from constant value (3cb7 becomes b7)
arch/ia64/kernel/mca_drv.c:284:33: sparse: sparse: cast truncates bits from constant value (11d4 becomes d4)
>> arch/ia64/kernel/mca_drv.c:288:33: sparse: sparse: cast truncates bits from constant value (e429faf8 becomes f8)
arch/ia64/kernel/mca_drv.c:288:33: sparse: sparse: cast truncates bits from constant value (e429fa becomes fa)
arch/ia64/kernel/mca_drv.c:288:33: sparse: sparse: cast truncates bits from constant value (e429 becomes 29)
arch/ia64/kernel/mca_drv.c:288:33: sparse: sparse: cast truncates bits from constant value (3cb7 becomes b7)
arch/ia64/kernel/mca_drv.c:288:33: sparse: sparse: cast truncates bits from constant value (11d4 becomes d4)
>> arch/ia64/kernel/mca_drv.c:292:33: sparse: sparse: cast truncates bits from constant value (e429faf9 becomes f9)
arch/ia64/kernel/mca_drv.c:292:33: sparse: sparse: cast truncates bits from constant value (e429fa becomes fa)
arch/ia64/kernel/mca_drv.c:292:33: sparse: sparse: cast truncates bits from constant value (e429 becomes 29)
arch/ia64/kernel/mca_drv.c:292:33: sparse: sparse: cast truncates bits from constant value (3cb7 becomes b7)
arch/ia64/kernel/mca_drv.c:292:33: sparse: sparse: cast truncates bits from constant value (11d4 becomes d4)
vim +61 arch/ia64/kernel/efi.c
5828efb95bc43a Ard Biesheuvel 2019-06-25 59
06c0bd93434c5b Ard Biesheuvel 2020-01-22 60 static const efi_config_table_type_t arch_tables[] __initconst = {
4e9a0f73f030e1 Ard Biesheuvel 2020-03-26 @61 {ESI_TABLE_GUID, &esi_phys, "ESI" },
4e9a0f73f030e1 Ard Biesheuvel 2020-03-26 @62 {HCDP_TABLE_GUID, &hcdp_phys, "HCDP" },
4e9a0f73f030e1 Ard Biesheuvel 2020-03-26 @63 {MPS_TABLE_GUID, &mps_phys, "MPS" },
4e9a0f73f030e1 Ard Biesheuvel 2020-03-26 @64 {PROCESSOR_ABSTRACTION_LAYER_OVERWRITE_GUID, &palo_phys, "PALO" },
4e9a0f73f030e1 Ard Biesheuvel 2020-03-26 @65 {SAL_SYSTEM_TABLE_GUID, &sal_systab_phys, "SALsystab" },
4e9a0f73f030e1 Ard Biesheuvel 2020-03-26 66 {},
272686bf46a34f Leif Lindholm 2013-09-05 67 };
272686bf46a34f Leif Lindholm 2013-09-05 68
:::::: The code at line 61 was first introduced by commit
:::::: 4e9a0f73f030e19a9259b69a7079021048e1f904 efi: Clean up config table description arrays
:::::: TO: Ard Biesheuvel <ardb(a)kernel.org>
:::::: CC: Ard Biesheuvel <ardb(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
arch/arm64/kvm/sys_regs.c:165 vcpu_write_sys_reg() warn: inconsistent indenting
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f296bfd5cd04cbb49b8fc9585adc280ab2b58624
commit: 7ea90bdd70c9cf82dfbaa54e7d9f296928679224 KVM: arm64: Refactor vcpu_{read,write}_sys_reg
date: 10 months ago
config: arm64-randconfig-m031-20210312 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
arch/arm64/kvm/sys_regs.c:165 vcpu_write_sys_reg() warn: inconsistent indenting
vim +165 arch/arm64/kvm/sys_regs.c
7ea90bdd70c9cf Marc Zyngier 2019-06-20 158
7ea90bdd70c9cf Marc Zyngier 2019-06-20 159 void vcpu_write_sys_reg(struct kvm_vcpu *vcpu, u64 val, int reg)
7ea90bdd70c9cf Marc Zyngier 2019-06-20 160 {
7ea90bdd70c9cf Marc Zyngier 2019-06-20 161 if (vcpu->arch.sysregs_loaded_on_cpu &&
7ea90bdd70c9cf Marc Zyngier 2019-06-20 162 __vcpu_write_sys_reg_to_cpu(val, reg))
7ea90bdd70c9cf Marc Zyngier 2019-06-20 163 return;
7ea90bdd70c9cf Marc Zyngier 2019-06-20 164
d47533dab9f50e Christoffer Dall 2017-12-23 @165 __vcpu_sys_reg(vcpu, reg) = val;
d47533dab9f50e Christoffer Dall 2017-12-23 166 }
d47533dab9f50e Christoffer Dall 2017-12-23 167
:::::: The code at line 165 was first introduced by commit
:::::: d47533dab9f50eeb7289a38035c39c9eadb1e048 KVM: arm64: Introduce framework for accessing deferred sysregs
:::::: TO: Christoffer Dall <christoffer.dall(a)linaro.org>
:::::: CC: Marc Zyngier <marc.zyngier(a)arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[norov:find_bit_smallconst_v4 3/13] include/asm-generic/bitops/find.h:15:22: error: conflicting types for 'find_next_bit'
by kernel test robot
tree: https://github.com/norov/linux find_bit_smallconst_v4
head: 747508d50b9b17dcf850b2a9c07156bf52e147df
commit: 348322cc21fc99c95d3a048a92e8519db5e9a692 [3/13] arch: rearrange headers inclusion order in asm/bitops for m68k and sh
config: sh-allmodconfig (attached as .config)
compiler: sh4-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/norov/linux/commit/348322cc21fc99c95d3a048a92e8519db5e...
git remote add norov https://github.com/norov/linux
git fetch --no-tags norov find_bit_smallconst_v4
git checkout 348322cc21fc99c95d3a048a92e8519db5e9a692
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the norov/find_bit_smallconst_v4 HEAD 747508d50b9b17dcf850b2a9c07156bf52e147df builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
>> include/asm-generic/bitops/le.h:15:9: error: implicit declaration of function 'find_next_zero_bit'; did you mean 'find_next_zero_bit_le'? [-Werror=implicit-function-declaration]
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
| find_next_zero_bit_le
include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
>> include/asm-generic/bitops/le.h:21:9: error: implicit declaration of function 'find_next_bit'; did you mean 'find_next_bit_le'? [-Werror=implicit-function-declaration]
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
| find_next_bit_le
include/asm-generic/bitops/le.h: In function 'find_first_zero_bit_le':
>> include/asm-generic/bitops/le.h:27:9: error: implicit declaration of function 'find_first_zero_bit'; did you mean 'find_first_zero_bit_le'? [-Werror=implicit-function-declaration]
27 | return find_first_zero_bit(addr, size);
| ^~~~~~~~~~~~~~~~~~~
| find_first_zero_bit_le
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/find.h: At top level:
>> include/asm-generic/bitops/find.h:15:22: error: conflicting types for 'find_next_bit'
15 | extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h:21:9: note: previous implicit declaration of 'find_next_bit' was here
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/asm-generic/bitops/find.h:45:22: error: conflicting types for 'find_next_zero_bit'
45 | extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
| ^~~~~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h:15:9: note: previous implicit declaration of 'find_next_zero_bit' was here
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
>> include/asm-generic/bitops/le.h:15:9: error: implicit declaration of function 'find_next_zero_bit'; did you mean 'find_next_zero_bit_le'? [-Werror=implicit-function-declaration]
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
| find_next_zero_bit_le
include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
>> include/asm-generic/bitops/le.h:21:9: error: implicit declaration of function 'find_next_bit'; did you mean 'find_next_bit_le'? [-Werror=implicit-function-declaration]
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
| find_next_bit_le
include/asm-generic/bitops/le.h: In function 'find_first_zero_bit_le':
>> include/asm-generic/bitops/le.h:27:9: error: implicit declaration of function 'find_first_zero_bit'; did you mean 'find_first_zero_bit_le'? [-Werror=implicit-function-declaration]
27 | return find_first_zero_bit(addr, size);
| ^~~~~~~~~~~~~~~~~~~
| find_first_zero_bit_le
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
include/asm-generic/bitops/find.h: At top level:
>> include/asm-generic/bitops/find.h:15:22: error: conflicting types for 'find_next_bit'
15 | extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
include/asm-generic/bitops/le.h:21:9: note: previous implicit declaration of 'find_next_bit' was here
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
>> include/asm-generic/bitops/find.h:45:22: error: conflicting types for 'find_next_zero_bit'
45 | extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
| ^~~~~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
include/asm-generic/bitops/le.h:15:9: note: previous implicit declaration of 'find_next_zero_bit' was here
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/mmzone.h:19,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
include/linux/page-flags-layout.h:6:10: fatal error: generated/bounds.h: No such file or directory
6 | #include <generated/bounds.h>
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
compilation terminated.
--
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
>> include/asm-generic/bitops/le.h:15:9: error: implicit declaration of function 'find_next_zero_bit'; did you mean 'find_next_zero_bit_le'? [-Werror=implicit-function-declaration]
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
| find_next_zero_bit_le
include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
>> include/asm-generic/bitops/le.h:21:9: error: implicit declaration of function 'find_next_bit'; did you mean 'find_next_bit_le'? [-Werror=implicit-function-declaration]
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
| find_next_bit_le
include/asm-generic/bitops/le.h: In function 'find_first_zero_bit_le':
>> include/asm-generic/bitops/le.h:27:9: error: implicit declaration of function 'find_first_zero_bit'; did you mean 'find_first_zero_bit_le'? [-Werror=implicit-function-declaration]
27 | return find_first_zero_bit(addr, size);
| ^~~~~~~~~~~~~~~~~~~
| find_first_zero_bit_le
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
include/asm-generic/bitops/find.h: At top level:
>> include/asm-generic/bitops/find.h:15:22: error: conflicting types for 'find_next_bit'
15 | extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
include/asm-generic/bitops/le.h:21:9: note: previous implicit declaration of 'find_next_bit' was here
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
>> include/asm-generic/bitops/find.h:45:22: error: conflicting types for 'find_next_zero_bit'
45 | extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
| ^~~~~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
include/asm-generic/bitops/le.h:15:9: note: previous implicit declaration of 'find_next_zero_bit' was here
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/dcache.h:14,
from include/linux/fs.h:8,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
include/linux/lockref.h:19:10: fatal error: generated/bounds.h: No such file or directory
19 | #include <generated/bounds.h>
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
compilation terminated.
--
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
>> include/asm-generic/bitops/le.h:15:9: error: implicit declaration of function 'find_next_zero_bit'; did you mean 'find_next_zero_bit_le'? [-Werror=implicit-function-declaration]
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
| find_next_zero_bit_le
include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
>> include/asm-generic/bitops/le.h:21:9: error: implicit declaration of function 'find_next_bit'; did you mean 'find_next_bit_le'? [-Werror=implicit-function-declaration]
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
| find_next_bit_le
include/asm-generic/bitops/le.h: In function 'find_first_zero_bit_le':
>> include/asm-generic/bitops/le.h:27:9: error: implicit declaration of function 'find_first_zero_bit'; did you mean 'find_first_zero_bit_le'? [-Werror=implicit-function-declaration]
27 | return find_first_zero_bit(addr, size);
| ^~~~~~~~~~~~~~~~~~~
| find_first_zero_bit_le
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/find.h: At top level:
>> include/asm-generic/bitops/find.h:15:22: error: conflicting types for 'find_next_bit'
15 | extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h:21:9: note: previous implicit declaration of 'find_next_bit' was here
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/asm-generic/bitops/find.h:45:22: error: conflicting types for 'find_next_zero_bit'
45 | extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
| ^~~~~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h:15:9: note: previous implicit declaration of 'find_next_zero_bit' was here
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:116: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1233: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
..
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +/find_next_bit +15 include/asm-generic/bitops/find.h
c7f612cdf091de Akinobu Mita 2006-03-26 4
19de85ef574c3a Akinobu Mita 2011-05-26 5 #ifndef find_next_bit
d852a6afd91fc9 Akinobu Mita 2010-09-29 6 /**
d852a6afd91fc9 Akinobu Mita 2010-09-29 7 * find_next_bit - find the next set bit in a memory region
d852a6afd91fc9 Akinobu Mita 2010-09-29 8 * @addr: The address to base the search on
d852a6afd91fc9 Akinobu Mita 2010-09-29 9 * @offset: The bitnumber to start searching at
d852a6afd91fc9 Akinobu Mita 2010-09-29 10 * @size: The bitmap size in bits
ec778edf97dcaa Cody P Schafer 2013-11-12 11 *
ec778edf97dcaa Cody P Schafer 2013-11-12 12 * Returns the bit number for the next set bit
ec778edf97dcaa Cody P Schafer 2013-11-12 13 * If no bits are set, returns @size.
d852a6afd91fc9 Akinobu Mita 2010-09-29 14 */
c7f612cdf091de Akinobu Mita 2006-03-26 @15 extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
c7f612cdf091de Akinobu Mita 2006-03-26 16 size, unsigned long offset);
19de85ef574c3a Akinobu Mita 2011-05-26 17 #endif
c7f612cdf091de Akinobu Mita 2006-03-26 18
0ade34c37012ea Clement Courbet 2018-02-06 19 #ifndef find_next_and_bit
0ade34c37012ea Clement Courbet 2018-02-06 20 /**
0ade34c37012ea Clement Courbet 2018-02-06 21 * find_next_and_bit - find the next set bit in both memory regions
0ade34c37012ea Clement Courbet 2018-02-06 22 * @addr1: The first address to base the search on
0ade34c37012ea Clement Courbet 2018-02-06 23 * @addr2: The second address to base the search on
0ade34c37012ea Clement Courbet 2018-02-06 24 * @offset: The bitnumber to start searching at
0ade34c37012ea Clement Courbet 2018-02-06 25 * @size: The bitmap size in bits
0ade34c37012ea Clement Courbet 2018-02-06 26 *
0ade34c37012ea Clement Courbet 2018-02-06 27 * Returns the bit number for the next set bit
0ade34c37012ea Clement Courbet 2018-02-06 28 * If no bits are set, returns @size.
0ade34c37012ea Clement Courbet 2018-02-06 29 */
0ade34c37012ea Clement Courbet 2018-02-06 30 extern unsigned long find_next_and_bit(const unsigned long *addr1,
0ade34c37012ea Clement Courbet 2018-02-06 31 const unsigned long *addr2, unsigned long size,
0ade34c37012ea Clement Courbet 2018-02-06 32 unsigned long offset);
0ade34c37012ea Clement Courbet 2018-02-06 33 #endif
0ade34c37012ea Clement Courbet 2018-02-06 34
19de85ef574c3a Akinobu Mita 2011-05-26 35 #ifndef find_next_zero_bit
d852a6afd91fc9 Akinobu Mita 2010-09-29 36 /**
d852a6afd91fc9 Akinobu Mita 2010-09-29 37 * find_next_zero_bit - find the next cleared bit in a memory region
d852a6afd91fc9 Akinobu Mita 2010-09-29 38 * @addr: The address to base the search on
d852a6afd91fc9 Akinobu Mita 2010-09-29 39 * @offset: The bitnumber to start searching at
d852a6afd91fc9 Akinobu Mita 2010-09-29 40 * @size: The bitmap size in bits
ec778edf97dcaa Cody P Schafer 2013-11-12 41 *
ec778edf97dcaa Cody P Schafer 2013-11-12 42 * Returns the bit number of the next zero bit
ec778edf97dcaa Cody P Schafer 2013-11-12 43 * If no bits are zero, returns @size.
d852a6afd91fc9 Akinobu Mita 2010-09-29 44 */
c7f612cdf091de Akinobu Mita 2006-03-26 @45 extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
c7f612cdf091de Akinobu Mita 2006-03-26 46 long size, unsigned long offset);
19de85ef574c3a Akinobu Mita 2011-05-26 47 #endif
c7f612cdf091de Akinobu Mita 2006-03-26 48
:::::: The code at line 15 was first introduced by commit
:::::: c7f612cdf091def01454e7e132c7d7a3f419fbc4 [PATCH] bitops: generic find_{next,first}{,_zero}_bit()
:::::: TO: Akinobu Mita <mita(a)miraclelinux.com>
:::::: CC: Linus Torvalds <torvalds(a)g5.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[peterz-queue:x86/fpu 6/9] arch/x86/kernel/jump_label.c:40:27: error: 'JUMP_LABEL_NOP_SIZE' undeclared; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/fpu
head: 42088f5f7dcaf5e6d51b71cb32097ca4dad9b225
commit: 86d276af0556e9e6e579c71a48eff194d907be04 [6/9] jump_label, x86: Introduce jump_entry_size()
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/fpu
git checkout 86d276af0556e9e6e579c71a48eff194d907be04
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>):
arch/x86/kernel/jump_label.c: In function '__jump_label_set_jump_code':
>> arch/x86/kernel/jump_label.c:40:27: error: 'JUMP_LABEL_NOP_SIZE' undeclared (first use in this function); did you mean 'JUMP_LABEL_NOP'?
40 | if (memcmp(addr, expect, JUMP_LABEL_NOP_SIZE)) {
| ^~~~~~~~~~~~~~~~~~~
| JUMP_LABEL_NOP
arch/x86/kernel/jump_label.c:40:27: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/linux/kernel.h:16,
from arch/x86/include/asm/percpu.h:27,
from arch/x86/include/asm/current.h:6,
from include/linux/sched.h:12,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/memory.h:19,
from arch/x86/kernel/jump_label.c:9:
arch/x86/kernel/jump_label.c:47:31: error: 'init' undeclared (first use in this function); did you mean 'int'?
47 | addr, addr, addr, expect, init, type);
| ^~~~
include/linux/printk.h:333:34: note: in definition of macro 'pr_crit'
333 | printk(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
arch/x86/kernel/jump_label.c: In function '__jump_label_transform':
arch/x86/kernel/jump_label.c:76:5: error: 'JUMP_LABEL_NOP_SIZE' undeclared (first use in this function); did you mean 'JUMP_LABEL_NOP'?
76 | JUMP_LABEL_NOP_SIZE);
| ^~~~~~~~~~~~~~~~~~~
| JUMP_LABEL_NOP
arch/x86/kernel/jump_label.c: In function 'arch_jump_label_transform_queue':
arch/x86/kernel/jump_label.c:114:12: error: 'JUMP_LABEL_NOP_SIZE' undeclared (first use in this function); did you mean 'JUMP_LABEL_NOP'?
114 | opcode, JUMP_LABEL_NOP_SIZE, NULL);
| ^~~~~~~~~~~~~~~~~~~
| JUMP_LABEL_NOP
vim +40 arch/x86/kernel/jump_label.c
86d276af0556e9e Peter Zijlstra 2019-06-28 23
18cbc8bed0c7079 Peter Zijlstra 2019-08-26 24 static const void *
b9acd3e858cf960 Peter Zijlstra 2021-03-10 25 __jump_label_set_jump_code(struct jump_entry *entry, enum jump_label_type type)
d9f5ab7b1c0a520 Jason Baron 2010-09-17 26 {
63f62addb88ec4b Peter Zijlstra 2019-10-03 27 const void *expect, *code;
63f62addb88ec4b Peter Zijlstra 2019-10-03 28 const void *addr, *dest;
9fc0f798ab8a6c0 Ard Biesheuvel 2018-09-18 29
63f62addb88ec4b Peter Zijlstra 2019-10-03 30 addr = (void *)jump_entry_code(entry);
63f62addb88ec4b Peter Zijlstra 2019-10-03 31 dest = (void *)jump_entry_target(entry);
18cbc8bed0c7079 Peter Zijlstra 2019-08-26 32
63f62addb88ec4b Peter Zijlstra 2019-10-03 33 code = text_gen_insn(JMP32_INSN_OPCODE, addr, dest);
d9f5ab7b1c0a520 Jason Baron 2010-09-17 34
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 35 if (type == JUMP_LABEL_JMP)
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 36 expect = x86_nops[5];
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 37 else
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 38 expect = code;
e71a5be15e47a73 Jeremy Fitzhardinge 2011-09-29 39
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 @40 if (memcmp(addr, expect, JUMP_LABEL_NOP_SIZE)) {
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 41 /*
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 42 * The location is not an op that we were expecting.
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 43 * Something went wrong. Crash the box, as something could be
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 44 * corrupting the kernel.
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 45 */
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 46 pr_crit("jump_label: Fatal kernel bug, unexpected op at %pS [%p] (%5ph != %5ph)) init:%d type:%d\n",
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 47 addr, addr, addr, expect, init, type);
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 48 BUG();
ea9a8a73e58ed8b Peter Zijlstra 2019-06-28 49 }
9fc0f798ab8a6c0 Ard Biesheuvel 2018-09-18 50
4cc6620b5e4c895 Daniel Bristot de Oliveira 2019-06-12 51 if (type == JUMP_LABEL_NOP)
b9acd3e858cf960 Peter Zijlstra 2021-03-10 52 code = x86_nops[5];
18cbc8bed0c7079 Peter Zijlstra 2019-08-26 53
63f62addb88ec4b Peter Zijlstra 2019-10-03 54 return code;
4cc6620b5e4c895 Daniel Bristot de Oliveira 2019-06-12 55 }
4cc6620b5e4c895 Daniel Bristot de Oliveira 2019-06-12 56
:::::: The code at line 40 was first introduced by commit
:::::: ea9a8a73e58ed8b9a24d6c84c033c7064fe2a05c jump_label, x86: Improve error when we fail expected text
:::::: TO: Peter Zijlstra <peterz(a)infradead.org>
:::::: CC: Peter Zijlstra <peterz(a)infradead.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH 6/9] clk: qcom: gcc-msm8994: Remove the inexistent GDSC_PCIE
by kernel test robot
Hi Konrad,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on robh/for-next v5.12-rc2 next-20210312]
[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/Konrad-Dybcio/dt-bindings-clk-qc...
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: i386-randconfig-s001-20210312 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-262-g5e674421-dirty
# https://github.com/0day-ci/linux/commit/7ed95d105fd45febf134ed746da771b5d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Konrad-Dybcio/dt-bindings-clk-qcom-Add-bindings-for-MSM8994-GCC-driver/20210313-102354
git checkout 7ed95d105fd45febf134ed746da771b5d1cbc89c
# 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>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/clk/qcom/gcc-msm8994.c:2686:23: sparse: sparse: Using plain integer as NULL pointer
vim +2686 drivers/clk/qcom/gcc-msm8994.c
2683
2684 static struct gdsc *gcc_msm8994_gdscs[] = {
2685 /* This GDSC does not exist, but ABI has to remain intact */
> 2686 [PCIE_GDSC] = 0,
2687 [PCIE_0_GDSC] = &pcie_0_gdsc,
2688 [PCIE_1_GDSC] = &pcie_1_gdsc,
2689 [USB30_GDSC] = &usb30_gdsc,
2690 [UFS_GDSC] = &ufs_gdsc,
2691 };
2692
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[norov:find_bit_smallconst_v4 11/13] include/asm-generic/bitops/find.h:164:16: error: implicit declaration of function '__fls'; did you mean
by kernel test robot
tree: https://github.com/norov/linux find_bit_smallconst_v4
head: 747508d50b9b17dcf850b2a9c07156bf52e147df
commit: 1c7083bf4aab3b8d9dedc5155a5a82741cc161bc [11/13] lib: add fast path for find_first_*_bit() and find_last_bit()
config: sh-randconfig-m031-20210312 (attached as .config)
compiler: sh4-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/norov/linux/commit/1c7083bf4aab3b8d9dedc5155a5a82741cc...
git remote add norov https://github.com/norov/linux
git fetch --no-tags norov find_bit_smallconst_v4
git checkout 1c7083bf4aab3b8d9dedc5155a5a82741cc161bc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
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 >>):
In file included from include/asm-generic/bitops/le.h:5,
from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/find.h: In function 'find_last_bit':
>> include/asm-generic/bitops/find.h:164:16: error: implicit declaration of function '__fls'; did you mean '__ffs'? [-Werror=implicit-function-declaration]
164 | return val ? __fls(val) : size;
| ^~~~~
| __ffs
In file included from arch/sh/include/asm/bitops.h:68,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/__fls.h: At top level:
>> include/asm-generic/bitops/__fls.h:13:38: error: conflicting types for '__fls'
13 | static __always_inline unsigned long __fls(unsigned long word)
| ^~~~~
In file included from include/asm-generic/bitops/le.h:5,
from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/find.h:164:16: note: previous implicit declaration of '__fls' was here
164 | return val ? __fls(val) : size;
| ^~~~~
cc1: some warnings being treated as errors
--
In file included from include/asm-generic/bitops/le.h:5,
from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/find.h: In function 'find_last_bit':
>> include/asm-generic/bitops/find.h:164:16: error: implicit declaration of function '__fls'; did you mean '__ffs'? [-Werror=implicit-function-declaration]
164 | return val ? __fls(val) : size;
| ^~~~~
| __ffs
In file included from arch/sh/include/asm/bitops.h:68,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/__fls.h: At top level:
>> include/asm-generic/bitops/__fls.h:13:38: error: conflicting types for '__fls'
13 | static __always_inline unsigned long __fls(unsigned long word)
| ^~~~~
In file included from include/asm-generic/bitops/le.h:5,
from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/find.h:164:16: note: previous implicit declaration of '__fls' was here
164 | return val ? __fls(val) : size;
| ^~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:116: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1233: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +164 include/asm-generic/bitops/find.h
149
150 #ifndef find_last_bit
151 /**
152 * find_last_bit - find the last set bit in a memory region
153 * @addr: The address to start the search at
154 * @size: The number of bits to search
155 *
156 * Returns the bit number of the last set bit, or size.
157 */
158 static inline
159 unsigned long find_last_bit(const unsigned long *addr, unsigned long size)
160 {
161 if (small_const_nbits(size)) {
162 unsigned long val = *addr & BITS_FIRST(size - 1);
163
> 164 return val ? __fls(val) : size;
165 }
166
167 return _find_last_bit(addr, size);
168 }
169 #endif
170
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-4.19 81/85] /tmp/ccfhJxi3.s:50: Error: co-processor register expected -- `mrc p10,7,r7,FPEXC,cr0,0'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.19
head: 521b1c0f0533d30a90e816aef3c6ab3e3d2da5ff
commit: 24c661f203ea6f3af0495effbff3311408e225aa [81/85] ARM: 8991/1: use VFP assembler mnemonics if available
config: arm-axm55xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-4.19
git checkout 24c661f203ea6f3af0495effbff3311408e225aa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>):
arch/arm/kvm/hyp/switch.c:226:28: warning: no previous prototype for '__hyp_panic' [-Wmissing-prototypes]
226 | void __hyp_text __noreturn __hyp_panic(int cause)
| ^~~~~~~~~~~
/tmp/ccfhJxi3.s: Assembler messages:
>> /tmp/ccfhJxi3.s:50: Error: co-processor register expected -- `mrc p10,7,r7,FPEXC,cr0,0'
>> /tmp/ccfhJxi3.s:59: Error: co-processor register expected -- `mcr p10,7,r3,FPEXC,cr0,0'
>> /tmp/ccfhJxi3.s:221: Error: co-processor register expected -- `mcr p10,7,r7,FPEXC,cr0,0'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[kas:kvm-unmapped-poison 7/7] mm/migrate.c:243 remove_migration_pte() warn: inconsistent indenting
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git kvm-unmapped-poison
head: 51d4d402256b9c1b8e38be95bfa2bb28dc8189ad
commit: 51d4d402256b9c1b8e38be95bfa2bb28dc8189ad [7/7] KVM: unmap guest memory with poison
config: x86_64-randconfig-m001-20210312 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
mm/migrate.c:243 remove_migration_pte() warn: inconsistent indenting
vim +243 mm/migrate.c
230
231 get_page(new);
232 pte = pte_mkold(mk_pte(new, READ_ONCE(vma->vm_page_prot)));
233 if (pte_swp_soft_dirty(*pvmw.pte))
234 pte = pte_mksoft_dirty(pte);
235
236 /*
237 * Recheck VMA as permissions can change since migration started
238 */
239 entry = pte_to_swp_entry(*pvmw.pte);
240 if (is_hwpoison_entry(entry) && !PageHWPoison(page)) {
241 /* Unpoison the page */
242 pte = mk_pte(page, vma->vm_page_prot);
> 243 } if (is_write_migration_entry(entry))
244 pte = maybe_mkwrite(pte, vma);
245 else if (pte_swp_uffd_wp(*pvmw.pte))
246 pte = pte_mkuffd_wp(pte);
247
248 if (unlikely(is_device_private_page(new))) {
249 entry = make_device_private_entry(new, pte_write(pte));
250 pte = swp_entry_to_pte(entry);
251 if (pte_swp_soft_dirty(*pvmw.pte))
252 pte = pte_swp_mksoft_dirty(pte);
253 if (pte_swp_uffd_wp(*pvmw.pte))
254 pte = pte_swp_mkuffd_wp(pte);
255 }
256
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months