[linux-iv:topic/v1_acpi_cpu_capacity 2/2] arch/x86/include/asm/topology.h:223: warning: "arch_init_invariance_cppc" redefined
by kernel test robot
tree: https://git.gitlab.arm.com/linux-arm/linux-iv.git topic/v1_acpi_cpu_capacity
head: eece74e8aaac3da75e29d0d24730d90c85c7b0ea
commit: eece74e8aaac3da75e29d0d24730d90c85c7b0ea [2/2] arch_topology: obtain cpu capacity using information from CPPC
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add linux-iv https://git.gitlab.arm.com/linux-arm/linux-iv.git
git fetch --no-tags linux-iv topic/v1_acpi_cpu_capacity
git checkout eece74e8aaac3da75e29d0d24730d90c85c7b0ea
# save the attached .config to linux build tree
make W=1 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 warnings (new ones prefixed by >>):
In file included from include/linux/topology.h:36,
from include/linux/gfp.h:9,
from include/linux/slab.h:15,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
>> arch/x86/include/asm/topology.h:223: warning: "arch_init_invariance_cppc" redefined
223 | #define arch_init_invariance_cppc init_freq_invariance_cppc
|
In file included from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/slab.h:15,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
include/linux/arch_topology.h:16: note: this is the location of the previous definition
16 | #define arch_init_invariance_cppc init_cpu_capacity_cppc
|
--
In file included from include/linux/topology.h:36,
from include/linux/gfp.h:9,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/ata/ahci.c:20:
>> arch/x86/include/asm/topology.h:223: warning: "arch_init_invariance_cppc" redefined
223 | #define arch_init_invariance_cppc init_freq_invariance_cppc
|
In file included from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/ata/ahci.c:20:
include/linux/arch_topology.h:16: note: this is the location of the previous definition
16 | #define arch_init_invariance_cppc init_cpu_capacity_cppc
|
In file included from drivers/ata/ahci.c:35:
drivers/ata/ahci.h:388:16: warning: initialized field overwritten [-Woverride-init]
388 | .can_queue = AHCI_MAX_CMDS, \
| ^~~~~~~~~~~~~
drivers/ata/ahci.c:104:2: note: in expansion of macro 'AHCI_SHT'
104 | AHCI_SHT("ahci"),
| ^~~~~~~~
drivers/ata/ahci.h:388:16: note: (near initialization for 'ahci_sht.can_queue')
388 | .can_queue = AHCI_MAX_CMDS, \
| ^~~~~~~~~~~~~
drivers/ata/ahci.c:104:2: note: in expansion of macro 'AHCI_SHT'
104 | AHCI_SHT("ahci"),
| ^~~~~~~~
drivers/ata/ahci.h:392:17: warning: initialized field overwritten [-Woverride-init]
392 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/ahci.c:104:2: note: in expansion of macro 'AHCI_SHT'
104 | AHCI_SHT("ahci"),
| ^~~~~~~~
drivers/ata/ahci.h:392:17: note: (near initialization for 'ahci_sht.sdev_attrs')
392 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/ahci.c:104:2: note: in expansion of macro 'AHCI_SHT'
104 | AHCI_SHT("ahci"),
| ^~~~~~~~
--
In file included from include/linux/topology.h:36,
from include/linux/gfp.h:9,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/ata/acard-ahci.c:21:
>> arch/x86/include/asm/topology.h:223: warning: "arch_init_invariance_cppc" redefined
223 | #define arch_init_invariance_cppc init_freq_invariance_cppc
|
In file included from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/ata/acard-ahci.c:21:
include/linux/arch_topology.h:16: note: this is the location of the previous definition
16 | #define arch_init_invariance_cppc init_cpu_capacity_cppc
|
In file included from drivers/ata/acard-ahci.c:33:
drivers/ata/ahci.h:388:16: warning: initialized field overwritten [-Woverride-init]
388 | .can_queue = AHCI_MAX_CMDS, \
| ^~~~~~~~~~~~~
drivers/ata/acard-ahci.c:70:2: note: in expansion of macro 'AHCI_SHT'
70 | AHCI_SHT("acard-ahci"),
| ^~~~~~~~
drivers/ata/ahci.h:388:16: note: (near initialization for 'acard_ahci_sht.can_queue')
388 | .can_queue = AHCI_MAX_CMDS, \
| ^~~~~~~~~~~~~
drivers/ata/acard-ahci.c:70:2: note: in expansion of macro 'AHCI_SHT'
70 | AHCI_SHT("acard-ahci"),
| ^~~~~~~~
drivers/ata/ahci.h:392:17: warning: initialized field overwritten [-Woverride-init]
392 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/acard-ahci.c:70:2: note: in expansion of macro 'AHCI_SHT'
70 | AHCI_SHT("acard-ahci"),
| ^~~~~~~~
drivers/ata/ahci.h:392:17: note: (near initialization for 'acard_ahci_sht.sdev_attrs')
392 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/acard-ahci.c:70:2: note: in expansion of macro 'AHCI_SHT'
70 | AHCI_SHT("acard-ahci"),
| ^~~~~~~~
--
In file included from include/linux/topology.h:36,
from include/linux/gfp.h:9,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/ata/ahci_platform.c:12:
>> arch/x86/include/asm/topology.h:223: warning: "arch_init_invariance_cppc" redefined
223 | #define arch_init_invariance_cppc init_freq_invariance_cppc
|
In file included from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/ata/ahci_platform.c:12:
include/linux/arch_topology.h:16: note: this is the location of the previous definition
16 | #define arch_init_invariance_cppc init_cpu_capacity_cppc
|
In file included from drivers/ata/ahci_platform.c:21:
drivers/ata/ahci.h:388:16: warning: initialized field overwritten [-Woverride-init]
388 | .can_queue = AHCI_MAX_CMDS, \
| ^~~~~~~~~~~~~
drivers/ata/ahci_platform.c:40:2: note: in expansion of macro 'AHCI_SHT'
40 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:388:16: note: (near initialization for 'ahci_platform_sht.can_queue')
388 | .can_queue = AHCI_MAX_CMDS, \
| ^~~~~~~~~~~~~
drivers/ata/ahci_platform.c:40:2: note: in expansion of macro 'AHCI_SHT'
40 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:392:17: warning: initialized field overwritten [-Woverride-init]
392 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/ahci_platform.c:40:2: note: in expansion of macro 'AHCI_SHT'
40 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:392:17: note: (near initialization for 'ahci_platform_sht.sdev_attrs')
392 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/ahci_platform.c:40:2: note: in expansion of macro 'AHCI_SHT'
40 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
--
In file included from include/linux/topology.h:36,
from include/linux/gfp.h:9,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/ata/sata_sil24.c:11:
>> arch/x86/include/asm/topology.h:223: warning: "arch_init_invariance_cppc" redefined
223 | #define arch_init_invariance_cppc init_freq_invariance_cppc
|
In file included from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/ata/sata_sil24.c:11:
include/linux/arch_topology.h:16: note: this is the location of the previous definition
16 | #define arch_init_invariance_cppc init_cpu_capacity_cppc
|
drivers/ata/sata_sil24.c:378:16: warning: initialized field overwritten [-Woverride-init]
378 | .can_queue = SIL24_MAX_CMDS,
| ^~~~~~~~~~~~~~
drivers/ata/sata_sil24.c:378:16: note: (near initialization for 'sil24_sht.can_queue')
In file included from drivers/ata/sata_sil24.c:14:
include/linux/blkdev.h:301:28: warning: initialized field overwritten [-Woverride-init]
301 | #define BLK_TAG_ALLOC_FIFO 0 /* allocate starting from 0 */
| ^
drivers/ata/sata_sil24.c:381:22: note: in expansion of macro 'BLK_TAG_ALLOC_FIFO'
381 | .tag_alloc_policy = BLK_TAG_ALLOC_FIFO,
| ^~~~~~~~~~~~~~~~~~
include/linux/blkdev.h:301:28: note: (near initialization for 'sil24_sht.tag_alloc_policy')
301 | #define BLK_TAG_ALLOC_FIFO 0 /* allocate starting from 0 */
| ^
drivers/ata/sata_sil24.c:381:22: note: in expansion of macro 'BLK_TAG_ALLOC_FIFO'
381 | .tag_alloc_policy = BLK_TAG_ALLOC_FIFO,
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/topology.h:36,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:19,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/dma-mapping.h:7,
from include/linux/libata.h:16,
from drivers/ata/ahci_ceva.c:11:
>> arch/x86/include/asm/topology.h:223: warning: "arch_init_invariance_cppc" redefined
223 | #define arch_init_invariance_cppc init_freq_invariance_cppc
|
In file included from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:19,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/dma-mapping.h:7,
from include/linux/libata.h:16,
from drivers/ata/ahci_ceva.c:11:
include/linux/arch_topology.h:16: note: this is the location of the previous definition
16 | #define arch_init_invariance_cppc init_cpu_capacity_cppc
|
In file included from drivers/ata/ahci_ceva.c:16:
drivers/ata/ahci.h:388:16: warning: initialized field overwritten [-Woverride-init]
388 | .can_queue = AHCI_MAX_CMDS, \
| ^~~~~~~~~~~~~
drivers/ata/ahci_ceva.c:189:2: note: in expansion of macro 'AHCI_SHT'
189 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:388:16: note: (near initialization for 'ahci_platform_sht.can_queue')
388 | .can_queue = AHCI_MAX_CMDS, \
| ^~~~~~~~~~~~~
drivers/ata/ahci_ceva.c:189:2: note: in expansion of macro 'AHCI_SHT'
189 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:392:17: warning: initialized field overwritten [-Woverride-init]
392 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/ahci_ceva.c:189:2: note: in expansion of macro 'AHCI_SHT'
189 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:392:17: note: (near initialization for 'ahci_platform_sht.sdev_attrs')
392 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/ahci_ceva.c:189:2: note: in expansion of macro 'AHCI_SHT'
189 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
--
In file included from include/linux/topology.h:36,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:19,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from drivers/ata/ahci_qoriq.c:9:
>> arch/x86/include/asm/topology.h:223: warning: "arch_init_invariance_cppc" redefined
223 | #define arch_init_invariance_cppc init_freq_invariance_cppc
|
In file included from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:19,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from drivers/ata/ahci_qoriq.c:9:
include/linux/arch_topology.h:16: note: this is the location of the previous definition
16 | #define arch_init_invariance_cppc init_cpu_capacity_cppc
|
In file included from drivers/ata/ahci_qoriq.c:20:
drivers/ata/ahci.h:388:16: warning: initialized field overwritten [-Woverride-init]
388 | .can_queue = AHCI_MAX_CMDS, \
| ^~~~~~~~~~~~~
drivers/ata/ahci_qoriq.c:167:2: note: in expansion of macro 'AHCI_SHT'
167 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:388:16: note: (near initialization for 'ahci_qoriq_sht.can_queue')
388 | .can_queue = AHCI_MAX_CMDS, \
| ^~~~~~~~~~~~~
drivers/ata/ahci_qoriq.c:167:2: note: in expansion of macro 'AHCI_SHT'
167 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:392:17: warning: initialized field overwritten [-Woverride-init]
392 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/ahci_qoriq.c:167:2: note: in expansion of macro 'AHCI_SHT'
167 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:392:17: note: (near initialization for 'ahci_qoriq_sht.sdev_attrs')
392 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/ahci_qoriq.c:167:2: note: in expansion of macro 'AHCI_SHT'
167 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
--
In file included from include/linux/topology.h:36,
from include/linux/gfp.h:9,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/ata/sata_mv.c:40:
>> arch/x86/include/asm/topology.h:223: warning: "arch_init_invariance_cppc" redefined
223 | #define arch_init_invariance_cppc init_freq_invariance_cppc
|
In file included from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/ata/sata_mv.c:40:
include/linux/arch_topology.h:16: note: this is the location of the previous definition
16 | #define arch_init_invariance_cppc init_cpu_capacity_cppc
|
drivers/ata/sata_mv.c:670:16: warning: initialized field overwritten [-Woverride-init]
670 | .can_queue = MV_MAX_Q_DEPTH - 1,
| ^~~~~~~~~~~~~~
drivers/ata/sata_mv.c:670:16: note: (near initialization for 'mv6_sht.can_queue')
..
vim +/arch_init_invariance_cppc +223 arch/x86/include/asm/topology.h
1567c3e3467cdd Giovanni Gherdovich 2020-01-22 220
41ea667227bad5 Nathan Fontenot 2020-11-12 221 #ifdef CONFIG_ACPI_CPPC_LIB
41ea667227bad5 Nathan Fontenot 2020-11-12 222 void init_freq_invariance_cppc(void);
3efe78be8d652a Ionela Voinescu 2021-03-18 @223 #define arch_init_invariance_cppc init_freq_invariance_cppc
41ea667227bad5 Nathan Fontenot 2020-11-12 224 #endif
41ea667227bad5 Nathan Fontenot 2020-11-12 225
:::::: The code at line 223 was first introduced by commit
:::::: 3efe78be8d652a157bd19b6dbd371a2762f953d2 x86, ACPI: rename init_freq_invariance_cppc to arch_init_invariance_cppc
:::::: TO: Ionela Voinescu <ionela.voinescu(a)arm.com>
:::::: CC: Ionela Voinescu <ionela.voinescu(a)arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[android-common:android-4.19-r 1/1] arch/arm/mm/copypage-v4wb.c:47:9: error: parameter references not allowed in naked functions
by kernel test robot
Hi Nathan,
First bad commit (maybe != root cause):
tree: https://android.googlesource.com/kernel/common android-4.19-r
head: f0719dcb3a6ebfd657bff0df566e70f6fd18e3c9
commit: f0719dcb3a6ebfd657bff0df566e70f6fd18e3c9 [1/1] BACKPORT: ARM: 8900/1: UNWINDER_FRAME_POINTER implementation for Clang
config: arm-randconfig-r005-20210512 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-4.19-r
git checkout f0719dcb3a6ebfd657bff0df566e70f6fd18e3c9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/arm/mm/copypage-v4wb.c:11:
In file included from include/linux/highmem.h:5:
In file included from include/linux/fs.h:6:
In file included from include/linux/wait_bit.h:8:
In file included from include/linux/wait.h:7:
In file included from include/linux/list.h:9:
In file included from include/linux/kernel.h:11:
In file included from include/linux/bitops.h:19:
In file included from arch/arm/include/asm/bitops.h:268:
In file included from include/asm-generic/bitops/le.h:6:
In file included from arch/arm/include/uapi/asm/byteorder.h:22:
In file included from include/linux/byteorder/little_endian.h:11:
include/linux/byteorder/generic.h:195:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
include/linux/byteorder/generic.h:203:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
In file included from arch/arm/mm/copypage-v4wb.c:11:
In file included from include/linux/highmem.h:5:
In file included from include/linux/fs.h:6:
In file included from include/linux/wait_bit.h:8:
In file included from include/linux/wait.h:9:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:81:
In file included from ./arch/arm/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
include/linux/thread_info.h:141:29: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
if (unlikely(sz >= 0 && sz < bytes)) {
~~ ^ ~~~~~
include/linux/compiler.h:77:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
In file included from arch/arm/mm/copypage-v4wb.c:11:
In file included from include/linux/highmem.h:5:
In file included from include/linux/fs.h:8:
In file included from include/linux/dcache.h:7:
In file included from include/linux/rculist.h:11:
In file included from include/linux/rcupdate.h:44:
In file included from include/linux/cpumask.h:12:
include/linux/bitmap.h:359:36: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
return find_first_bit(src, nbits) == nbits;
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
include/linux/bitmap.h:367:41: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
return find_first_zero_bit(src, nbits) == nbits;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
In file included from arch/arm/mm/copypage-v4wb.c:11:
In file included from include/linux/highmem.h:5:
In file included from include/linux/fs.h:237:
In file included from include/linux/quota.h:40:
In file included from include/linux/percpu_counter.h:16:
In file included from include/linux/gfp.h:6:
include/linux/mmzone.h:988:44: warning: comparison of integers of different signs: 'int' and 'enum zone_type' [-Wsign-compare]
if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
include/linux/compiler.h:76:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from arch/arm/mm/copypage-v4wb.c:11:
In file included from include/linux/highmem.h:8:
In file included from include/linux/mm.h:26:
In file included from include/linux/page_ref.h:7:
include/linux/page-flags.h:163:21: warning: comparison of integers of different signs: 'const unsigned long' and 'long' [-Wsign-compare]
return page->flags == PAGE_POISON_PATTERN;
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
>> arch/arm/mm/copypage-v4wb.c:47:9: error: parameter references not allowed in naked functions
: "r" (kto), "r" (kfrom), "I" (PAGE_SIZE / 64));
^
arch/arm/mm/copypage-v4wb.c:25:13: note: attribute is here
static void __naked
^
include/linux/compiler_types.h:247:34: note: expanded from macro '__naked'
#define __naked __attribute__((naked)) notrace
^
7 warnings and 1 error generated.
--
In file included from drivers/dma/ti/omap-dma.c:8:
In file included from include/linux/delay.h:22:
In file included from include/linux/kernel.h:11:
In file included from include/linux/bitops.h:19:
In file included from arch/arm/include/asm/bitops.h:268:
In file included from include/asm-generic/bitops/le.h:6:
In file included from arch/arm/include/uapi/asm/byteorder.h:22:
In file included from include/linux/byteorder/little_endian.h:11:
include/linux/byteorder/generic.h:195:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
include/linux/byteorder/generic.h:203:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
In file included from drivers/dma/ti/omap-dma.c:9:
In file included from include/linux/dmaengine.h:20:
In file included from include/linux/device.h:16:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/mutex.h:14:
In file included from ./arch/arm/include/generated/asm/current.h:1:
In file included from include/asm-generic/current.h:5:
include/linux/thread_info.h:141:29: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
if (unlikely(sz >= 0 && sz < bytes)) {
~~ ^ ~~~~~
include/linux/compiler.h:77:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
In file included from drivers/dma/ti/omap-dma.c:9:
In file included from include/linux/dmaengine.h:20:
In file included from include/linux/device.h:16:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:14:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:28:
In file included from include/linux/rcupdate.h:44:
In file included from include/linux/cpumask.h:12:
include/linux/bitmap.h:359:36: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
return find_first_bit(src, nbits) == nbits;
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
include/linux/bitmap.h:367:41: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
return find_first_zero_bit(src, nbits) == nbits;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
In file included from drivers/dma/ti/omap-dma.c:9:
In file included from include/linux/dmaengine.h:20:
In file included from include/linux/device.h:16:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:14:
In file included from include/linux/idr.h:16:
In file included from include/linux/gfp.h:6:
include/linux/mmzone.h:988:44: warning: comparison of integers of different signs: 'int' and 'enum zone_type' [-Wsign-compare]
if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
include/linux/compiler.h:76:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from drivers/dma/ti/omap-dma.c:9:
In file included from include/linux/dmaengine.h:24:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:26:
In file included from include/linux/page_ref.h:7:
include/linux/page-flags.h:163:21: warning: comparison of integers of different signs: 'const unsigned long' and 'long' [-Wsign-compare]
return page->flags == PAGE_POISON_PATTERN;
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
drivers/dma/ti/omap-dma.c:235:17: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (i = 0; i < d->sglen; i++) {
~ ^ ~~~~~~~~
drivers/dma/ti/omap-dma.c:1527:16: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (i = 0; i < od->dma_requests; i++) {
~ ^ ~~~~~~~~~~~~~~~~
>> drivers/dma/ti/omap-dma.c:1626:34: warning: unused variable 'omap_dma_match' [-Wunused-const-variable]
static const struct of_device_id omap_dma_match[] = {
^
10 warnings generated.
/usr/bin/as: unrecognized option '-EL'
clang-13: error: assembler command failed with exit code 1 (use -v to see invocation)
--
In file included from drivers/regulator/stm32-vrefbuf.c:9:
In file included from include/linux/bitfield.h:19:
In file included from arch/arm/include/uapi/asm/byteorder.h:22:
In file included from include/linux/byteorder/little_endian.h:11:
include/linux/byteorder/generic.h:195:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
include/linux/byteorder/generic.h:203:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
In file included from drivers/regulator/stm32-vrefbuf.c:10:
In file included from include/linux/clk.h:17:
In file included from include/linux/notifier.h:14:
In file included from include/linux/mutex.h:14:
In file included from ./arch/arm/include/generated/asm/current.h:1:
In file included from include/asm-generic/current.h:5:
include/linux/thread_info.h:141:29: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
if (unlikely(sz >= 0 && sz < bytes)) {
~~ ^ ~~~~~
include/linux/compiler.h:77:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
In file included from drivers/regulator/stm32-vrefbuf.c:10:
In file included from include/linux/clk.h:17:
In file included from include/linux/notifier.h:16:
In file included from include/linux/srcu.h:33:
In file included from include/linux/rcupdate.h:44:
In file included from include/linux/cpumask.h:12:
include/linux/bitmap.h:359:36: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
return find_first_bit(src, nbits) == nbits;
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
include/linux/bitmap.h:367:41: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
return find_first_zero_bit(src, nbits) == nbits;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
In file included from drivers/regulator/stm32-vrefbuf.c:13:
In file included from include/linux/module.h:13:
In file included from include/linux/kmod.h:22:
In file included from include/linux/umh.h:4:
In file included from include/linux/gfp.h:6:
include/linux/mmzone.h:988:44: warning: comparison of integers of different signs: 'int' and 'enum zone_type' [-Wsign-compare]
if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
include/linux/compiler.h:76:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
>> drivers/regulator/stm32-vrefbuf.c:183:34: warning: unused variable 'stm32_vrefbuf_of_match' [-Wunused-const-variable]
static const struct of_device_id stm32_vrefbuf_of_match[] = {
^
7 warnings generated.
/usr/bin/as: unrecognized option '-EL'
clang-13: error: assembler command failed with exit code 1 (use -v to see invocation)
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on NET && WIRELESS && (CFG80211_WEXT || WIRELESS_EXT
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on NET && WIRELESS && PROC_FS && WEXT_CORE
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
vim +47 arch/arm/mm/copypage-v4wb.c
d73e60b7144a86b Russell King 2008-10-31 12
d73e60b7144a86b Russell King 2008-10-31 13 /*
063b0a4207e43ac Russell King 2008-10-31 14 * ARMv4 optimised copy_user_highpage
d73e60b7144a86b Russell King 2008-10-31 15 *
d73e60b7144a86b Russell King 2008-10-31 16 * We flush the destination cache lines just before we write the data into the
d73e60b7144a86b Russell King 2008-10-31 17 * corresponding address. Since the Dcache is read-allocate, this removes the
d73e60b7144a86b Russell King 2008-10-31 18 * Dcache aliasing issue. The writes will be forwarded to the write buffer,
d73e60b7144a86b Russell King 2008-10-31 19 * and merged as appropriate.
d73e60b7144a86b Russell King 2008-10-31 20 *
d73e60b7144a86b Russell King 2008-10-31 21 * Note: We rely on all ARMv4 processors implementing the "invalidate D line"
d73e60b7144a86b Russell King 2008-10-31 22 * instruction. If your processor does not supply this, you have to write your
063b0a4207e43ac Russell King 2008-10-31 23 * own copy_user_highpage that does the right thing.
d73e60b7144a86b Russell King 2008-10-31 24 */
446c92b2901bedb Uwe Kleine-König 2009-03-12 25 static void __naked
063b0a4207e43ac Russell King 2008-10-31 26 v4wb_copy_user_page(void *kto, const void *kfrom)
d73e60b7144a86b Russell King 2008-10-31 27 {
d73e60b7144a86b Russell King 2008-10-31 28 asm("\
d73e60b7144a86b Russell King 2008-10-31 29 stmfd sp!, {r4, lr} @ 2\n\
9a40ac86152c9cf Khem Raj 2010-06-04 30 mov r2, %2 @ 1\n\
d73e60b7144a86b Russell King 2008-10-31 31 ldmia r1!, {r3, r4, ip, lr} @ 4\n\
d73e60b7144a86b Russell King 2008-10-31 32 1: mcr p15, 0, r0, c7, c6, 1 @ 1 invalidate D line\n\
d73e60b7144a86b Russell King 2008-10-31 33 stmia r0!, {r3, r4, ip, lr} @ 4\n\
d73e60b7144a86b Russell King 2008-10-31 34 ldmia r1!, {r3, r4, ip, lr} @ 4+1\n\
d73e60b7144a86b Russell King 2008-10-31 35 stmia r0!, {r3, r4, ip, lr} @ 4\n\
d73e60b7144a86b Russell King 2008-10-31 36 ldmia r1!, {r3, r4, ip, lr} @ 4\n\
d73e60b7144a86b Russell King 2008-10-31 37 mcr p15, 0, r0, c7, c6, 1 @ 1 invalidate D line\n\
d73e60b7144a86b Russell King 2008-10-31 38 stmia r0!, {r3, r4, ip, lr} @ 4\n\
d73e60b7144a86b Russell King 2008-10-31 39 ldmia r1!, {r3, r4, ip, lr} @ 4\n\
d73e60b7144a86b Russell King 2008-10-31 40 subs r2, r2, #1 @ 1\n\
d73e60b7144a86b Russell King 2008-10-31 41 stmia r0!, {r3, r4, ip, lr} @ 4\n\
d73e60b7144a86b Russell King 2008-10-31 42 ldmneia r1!, {r3, r4, ip, lr} @ 4\n\
d73e60b7144a86b Russell King 2008-10-31 43 bne 1b @ 1\n\
d73e60b7144a86b Russell King 2008-10-31 44 mcr p15, 0, r1, c7, c10, 4 @ 1 drain WB\n\
d73e60b7144a86b Russell King 2008-10-31 45 ldmfd sp!, {r4, pc} @ 3"
d73e60b7144a86b Russell King 2008-10-31 46 :
9a40ac86152c9cf Khem Raj 2010-06-04 @47 : "r" (kto), "r" (kfrom), "I" (PAGE_SIZE / 64));
d73e60b7144a86b Russell King 2008-10-31 48 }
d73e60b7144a86b Russell King 2008-10-31 49
:::::: The code at line 47 was first introduced by commit
:::::: 9a40ac86152c9cffd3dca482a15ddf9a8c5716b3 ARM: 6164/1: Add kto and kfrom to input operands list.
:::::: TO: Khem Raj <raj.khem(a)gmail.com>
:::::: CC: Russell King <rmk+kernel(a)arm.linux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[frank-w-bpi-r2-4.14:5.13-rc 6/17] cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.13-rc
head: 3dfc4a057833e2735df50d6514e606ba3ef2ac81
commit: 834f619e06cf865e2f0a8bd236f8ffee3da51705 [6/17] mt6625l: include wifi-code
config: arm-randconfig-r024-20210512 (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://github.com/frank-w/BPI-R2-4.14/commit/834f619e06cf865e2f0a8bd236f...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.13-rc
git checkout 834f619e06cf865e2f0a8bd236f8ffee3da51705
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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 >>):
>> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory [-Werror=missing-include-dirs]
>> cc1: error: drivers/misc/mediatek/connectivity/common/common_detect/../combo/linux/include: No such file or directory [-Werror=missing-include-dirs]
In file included from drivers/misc/mediatek/connectivity/common/common_detect/wmt_gpio.c:15:
>> drivers/misc/mediatek/connectivity/common/common_detect/wmt_gpio.h:24:10: fatal error: osal.h: No such file or directory
24 | #include "osal.h"
| ^~~~~~~~
cc1: all warnings being treated as errors
compilation terminated.
--
>> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory [-Werror=missing-include-dirs]
>> cc1: error: drivers/misc/mediatek/connectivity/common/common_detect/../combo/linux/include: No such file or directory [-Werror=missing-include-dirs]
cc1: all warnings being treated as errors
--
>> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory [-Werror=missing-include-dirs]
cc1: all warnings being treated as errors
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[congwang:bpf-timer 2/2] include/linux/spinlock_api_smp.h:59:38: warning: 't' is used uninitialized in this function
by kernel test robot
tree: https://github.com/congwang/linux.git bpf-timer
head: 321e1129c967c627a62c241a9c92325491053076
commit: 321e1129c967c627a62c241a9c92325491053076 [2/2] bpf: introduce bpf timer
config: s390-defconfig (attached as .config)
compiler: s390-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/congwang/linux/commit/321e1129c967c627a62c241a9c923254...
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang bpf-timer
git checkout 321e1129c967c627a62c241a9c92325491053076
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=s390
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 >>):
In file included from include/linux/spinlock.h:318,
from include/linux/debugobjects.h:6,
from include/linux/timer.h:8,
from include/linux/workqueue.h:9,
from include/linux/bpf.h:9,
from kernel/bpf/timer.c:1:
kernel/bpf/timer.c: In function 'timer_map_delete_elem':
>> include/linux/spinlock_api_smp.h:59:38: warning: 't' is used uninitialized in this function [-Wuninitialized]
59 | #define _raw_spin_lock_irqsave(lock) __raw_spin_lock_irqsave(lock)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/bpf/timer.c:106:25: note: 't' was declared here
106 | struct bpf_timer_list *t;
| ^
vim +/t +59 include/linux/spinlock_api_smp.h
892a7c67c12da6 Heiko Carstens 2009-08-31 57
6beb000923882f Thomas Gleixner 2009-11-09 58 #ifdef CONFIG_INLINE_SPIN_LOCK_IRQSAVE
9c1721aa4994f6 Thomas Gleixner 2009-12-03 @59 #define _raw_spin_lock_irqsave(lock) __raw_spin_lock_irqsave(lock)
892a7c67c12da6 Heiko Carstens 2009-08-31 60 #endif
892a7c67c12da6 Heiko Carstens 2009-08-31 61
:::::: The code at line 59 was first introduced by commit
:::::: 9c1721aa4994f6625decbd915241f3a94ee2fe67 locking: Cleanup the name space completely
:::::: TO: Thomas Gleixner <tglx(a)linutronix.de>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
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] staging: rtl8723bs: hal: Remove two set but unused variables
by kernel test robot
Hi "Fabio,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Fabio-M-De-Francesco/staging-rtl...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git f6d5d118462de2797f5925e04b826f00c66f6325
config: powerpc-allyesconfig (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://github.com/0day-ci/linux/commit/1a4e324a51c22525507e749a882606455...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Fabio-M-De-Francesco/staging-rtl8723bs-hal-Remove-two-set-but-unused-variables/20210512-162828
git checkout 1a4e324a51c22525507e749a8826064554e7ad9f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=powerpc
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/staging/rtl8723bs/hal/HalPhyRf_8723B.c: In function 'PHY_IQCalibrate_8723B':
>> drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c:1648:8: warning: variable 'StartTime' set but not used [-Wunused-but-set-variable]
1648 | u32 StartTime;
| ^~~~~~~~~
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c: In function 'PHY_LCCalibrate_8723B':
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c:1849:8: warning: variable 'StartTime' set but not used [-Wunused-but-set-variable]
1849 | u32 StartTime;
| ^~~~~~~~~
vim +/StartTime +1648 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c
554c0a3abf216c Hans de Goede 2017-03-29 1612
554c0a3abf216c Hans de Goede 2017-03-29 1613
554c0a3abf216c Hans de Goede 2017-03-29 1614
554c0a3abf216c Hans de Goede 2017-03-29 1615 /* IQK version:V2.5 20140123 */
554c0a3abf216c Hans de Goede 2017-03-29 1616 /* IQK is controlled by Is2ant, RF path */
554c0a3abf216c Hans de Goede 2017-03-29 1617 void PHY_IQCalibrate_8723B(
554c0a3abf216c Hans de Goede 2017-03-29 1618 struct adapter *padapter,
554c0a3abf216c Hans de Goede 2017-03-29 1619 bool bReCovery,
554c0a3abf216c Hans de Goede 2017-03-29 1620 bool bRestore,
554c0a3abf216c Hans de Goede 2017-03-29 1621 bool Is2ant, /* false:1ant, true:2-ant */
554c0a3abf216c Hans de Goede 2017-03-29 1622 u8 RF_Path /* 0:S1, 1:S0 */
554c0a3abf216c Hans de Goede 2017-03-29 1623 )
554c0a3abf216c Hans de Goede 2017-03-29 1624 {
554c0a3abf216c Hans de Goede 2017-03-29 1625 struct hal_com_data *pHalData = GET_HAL_DATA(padapter);
554c0a3abf216c Hans de Goede 2017-03-29 1626
f8010da6556d5c Marco Cesati 2021-03-17 1627 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv;
554c0a3abf216c Hans de Goede 2017-03-29 1628
554c0a3abf216c Hans de Goede 2017-03-29 1629 s32 result[4][8]; /* last is final result */
98ab51df76bf4a Michael Straube 2020-01-10 1630 u8 i, final_candidate;
554c0a3abf216c Hans de Goede 2017-03-29 1631 bool bPathAOK, bPathBOK;
1a4e324a51c225 Fabio M. De Francesco 2021-05-12 1632 s32 RegE94, RegE9C, RegEA4, RegEB4, RegEBC, RegEC4, RegTmp = 0;
554c0a3abf216c Hans de Goede 2017-03-29 1633 bool is12simular, is13simular, is23simular;
554c0a3abf216c Hans de Goede 2017-03-29 1634 bool bSingleTone = false, bCarrierSuppression = false;
554c0a3abf216c Hans de Goede 2017-03-29 1635 u32 IQK_BB_REG_92C[IQK_BB_REG_NUM] = {
554c0a3abf216c Hans de Goede 2017-03-29 1636 rOFDM0_XARxIQImbalance,
554c0a3abf216c Hans de Goede 2017-03-29 1637 rOFDM0_XBRxIQImbalance,
554c0a3abf216c Hans de Goede 2017-03-29 1638 rOFDM0_ECCAThreshold,
554c0a3abf216c Hans de Goede 2017-03-29 1639 rOFDM0_AGCRSSITable,
554c0a3abf216c Hans de Goede 2017-03-29 1640 rOFDM0_XATxIQImbalance,
554c0a3abf216c Hans de Goede 2017-03-29 1641 rOFDM0_XBTxIQImbalance,
554c0a3abf216c Hans de Goede 2017-03-29 1642 rOFDM0_XCTxAFE,
554c0a3abf216c Hans de Goede 2017-03-29 1643 rOFDM0_XDTxAFE,
554c0a3abf216c Hans de Goede 2017-03-29 1644 rOFDM0_RxIQExtAnta
554c0a3abf216c Hans de Goede 2017-03-29 1645 };
554c0a3abf216c Hans de Goede 2017-03-29 1646 /* u32 Path_SEL_BB = 0; */
554c0a3abf216c Hans de Goede 2017-03-29 1647 u32 GNT_BT_default;
554c0a3abf216c Hans de Goede 2017-03-29 @1648 u32 StartTime;
554c0a3abf216c Hans de Goede 2017-03-29 1649
941add8e3e63a4 Puranjay Mohan 2019-05-16 1650 if (!ODM_CheckPowerStatus(padapter))
554c0a3abf216c Hans de Goede 2017-03-29 1651 return;
554c0a3abf216c Hans de Goede 2017-03-29 1652
554c0a3abf216c Hans de Goede 2017-03-29 1653 if (!(pDM_Odm->SupportAbility & ODM_RF_CALIBRATION))
554c0a3abf216c Hans de Goede 2017-03-29 1654 return;
554c0a3abf216c Hans de Goede 2017-03-29 1655
554c0a3abf216c Hans de Goede 2017-03-29 1656 /* 20120213<Kordan> Turn on when continuous Tx to pass lab testing. (required by Edlu) */
554c0a3abf216c Hans de Goede 2017-03-29 1657 if (bSingleTone || bCarrierSuppression)
554c0a3abf216c Hans de Goede 2017-03-29 1658 return;
554c0a3abf216c Hans de Goede 2017-03-29 1659
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[congwang:bpf-timer 2/2] include/linux/spinlock.h:384:24: warning: 't' is used uninitialized in this function
by kernel test robot
tree: https://github.com/congwang/linux.git bpf-timer
head: 321e1129c967c627a62c241a9c92325491053076
commit: 321e1129c967c627a62c241a9c92325491053076 [2/2] bpf: introduce bpf timer
config: h8300-randconfig-r012-20210512 (attached as .config)
compiler: h8300-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/congwang/linux/commit/321e1129c967c627a62c241a9c923254...
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang bpf-timer
git checkout 321e1129c967c627a62c241a9c92325491053076
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=h8300
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 >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/timer.h:5,
from include/linux/workqueue.h:9,
from include/linux/bpf.h:9,
from kernel/bpf/timer.c:1:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:89:50: warning: ordered comparison of pointer with null pointer [-Wextra]
89 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from include/linux/debugobjects.h:6,
from include/linux/timer.h:8,
from include/linux/workqueue.h:9,
from include/linux/bpf.h:9,
from kernel/bpf/timer.c:1:
kernel/bpf/timer.c: In function 'timer_map_delete_elem':
>> include/linux/spinlock.h:384:24: warning: 't' is used uninitialized in this function [-Wuninitialized]
384 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \
| ^~~~~~~~~~~~~~
kernel/bpf/timer.c:106:25: note: 't' was declared here
106 | struct bpf_timer_list *t;
| ^
vim +/t +384 include/linux/spinlock.h
c2f21ce2e31286 Thomas Gleixner 2009-12-02 381
c2f21ce2e31286 Thomas Gleixner 2009-12-02 382 #define spin_lock_irqsave(lock, flags) \
c2f21ce2e31286 Thomas Gleixner 2009-12-02 383 do { \
c2f21ce2e31286 Thomas Gleixner 2009-12-02 @384 raw_spin_lock_irqsave(spinlock_check(lock), flags); \
c2f21ce2e31286 Thomas Gleixner 2009-12-02 385 } while (0)
c2f21ce2e31286 Thomas Gleixner 2009-12-02 386
:::::: The code at line 384 was first introduced by commit
:::::: c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 locking: Implement new raw_spinlock
:::::: TO: Thomas Gleixner <tglx(a)linutronix.de>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[congwang:bpf-timer 2/2] kernel/bpf/timer.c:72:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
by kernel test robot
tree: https://github.com/congwang/linux.git bpf-timer
head: 321e1129c967c627a62c241a9c92325491053076
commit: 321e1129c967c627a62c241a9c92325491053076 [2/2] bpf: introduce bpf timer
config: i386-randconfig-s002-20210512 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/congwang/linux/commit/321e1129c967c627a62c241a9c923254...
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang bpf-timer
git checkout 321e1129c967c627a62c241a9c92325491053076
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 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 >>)
>> kernel/bpf/timer.c:72:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> kernel/bpf/timer.c:72:13: sparse: void [noderef] __rcu *
>> kernel/bpf/timer.c:72:13: sparse: void *
kernel/bpf/timer.c:90:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/bpf/timer.c:90:13: sparse: void [noderef] __rcu *
kernel/bpf/timer.c:90:13: sparse: void *
kernel/bpf/timer.c:111:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/bpf/timer.c:111:13: sparse: void [noderef] __rcu *
kernel/bpf/timer.c:111:13: sparse: void *
kernel/bpf/timer.c:111:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/bpf/timer.c:111:13: sparse: void [noderef] __rcu *
kernel/bpf/timer.c:111:13: sparse: void *
kernel/bpf/timer.c:212:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/bpf/timer.c:212:13: sparse: void [noderef] __rcu *
kernel/bpf/timer.c:212:13: sparse: void *
kernel/bpf/timer.c:230:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/bpf/timer.c:230:9: sparse: void [noderef] __rcu *
kernel/bpf/timer.c:230:9: sparse: void *
vim +72 kernel/bpf/timer.c
60
61 static void *timer_map_lookup_elem(struct bpf_map *map, void *key)
62 {
63 struct bpf_array *array = container_of(map, struct bpf_array, map);
64 struct bpf_timer_list *t;
65 u32 index = *(u32 *)key;
66 void *ret = NULL;
67
68 if (unlikely(index >= array->map.max_entries))
69 return NULL;
70
71 rcu_read_lock();
> 72 t = rcu_dereference(array->ptrs[index]);
73 if (t)
74 ret = &t->expires;
75 rcu_read_unlock();
76 return ret;
77 }
78
---
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 v3 2/2] clocksource: Add support for Xilinx AXI Timer
by kernel test robot
Hi Sean,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/timers/core]
[also build test ERROR on pwm/for-next linux/master linus/master v5.13-rc1 next-20210511]
[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/Sean-Anderson/dt-bindings-pwm-Ad...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 2d036dfa5f10df9782f5278fc591d79d283c1fad
config: mips-randconfig-r012-20210512 (attached as .config)
compiler: mips64el-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/8e9195e8da4d8ea7fd88d14fd95d95ba2...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sean-Anderson/dt-bindings-pwm-Add-Xilinx-AXI-Timer/20210512-031347
git checkout 8e9195e8da4d8ea7fd88d14fd95d95ba21008aef
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/clocksource/timer-xilinx.c: In function 'xilinx_ioread32be':
>> drivers/clocksource/timer-xilinx.c:136:20: warning: passing argument 1 of 'ioread32be' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
136 | return ioread32be(addr);
| ^~~~
In file included from arch/mips/include/asm/io.h:28,
from arch/mips/include/asm/mmiowb.h:5,
from include/linux/spinlock.h:61,
from include/linux/rwsem.h:16,
from include/linux/notifier.h:15,
from include/linux/clk.h:14,
from drivers/clocksource/timer-xilinx.c:16:
include/asm-generic/iomap.h:33:32: note: expected 'const void *' but argument is of type 'const volatile void *'
33 | extern unsigned int ioread32be(const void __iomem *);
| ^~~~~~~~~~~~~~~~~~~~
drivers/clocksource/timer-xilinx.c: In function 'xilinx_iowrite32be':
>> drivers/clocksource/timer-xilinx.c:141:21: warning: passing argument 2 of 'iowrite32be' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
141 | iowrite32be(value, addr);
| ^~~~
In file included from arch/mips/include/asm/io.h:28,
from arch/mips/include/asm/mmiowb.h:5,
from include/linux/spinlock.h:61,
from include/linux/rwsem.h:16,
from include/linux/notifier.h:15,
from include/linux/clk.h:14,
from drivers/clocksource/timer-xilinx.c:16:
include/asm-generic/iomap.h:54:30: note: expected 'void *' but argument is of type 'volatile void *'
54 | extern void iowrite32be(u32, void __iomem *);
| ^~~~~~~~~~~~~~
drivers/clocksource/timer-xilinx.c: In function 'xilinx_timer_init':
>> drivers/clocksource/timer-xilinx.c:447:13: error: assignment to 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} from incompatible pointer type 'unsigned int (*)(const void *)' [-Werror=incompatible-pointer-types]
447 | priv->read = ioread32;
| ^
>> drivers/clocksource/timer-xilinx.c:448:14: error: assignment to 'void (*)(u32, volatile void *)' {aka 'void (*)(unsigned int, volatile void *)'} from incompatible pointer type 'void (*)(u32, void *)' {aka 'void (*)(unsigned int, void *)'} [-Werror=incompatible-pointer-types]
448 | priv->write = iowrite32;
| ^
cc1: some warnings being treated as errors
vim +447 drivers/clocksource/timer-xilinx.c
425
426 static struct xilinx_timer_priv *xilinx_timer_init(struct device *dev,
427 struct device_node *np)
428 {
429 bool pwm;
430 int i, ret;
431 struct xilinx_timer_priv *priv;
432 u32 one_timer, tcsr0;
433
434 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
435 if (!priv)
436 return ERR_PTR(-ENOMEM);
437
438 priv->regs = of_iomap(np, 0);
439 if (!priv->regs) {
440 ret = -ENXIO;
441 goto err_priv;
442 } else if (IS_ERR(priv->regs)) {
443 ret = PTR_ERR(priv->regs);
444 goto err_priv;
445 }
446
> 447 priv->read = ioread32;
> 448 priv->write = iowrite32;
449 /*
450 * We aren't using the interrupts yet, so use ENIT to detect endianness
451 */
452 tcsr0 = xilinx_timer_read(priv, TCSR0);
453 if (swab32(tcsr0) & TCSR_ENIT) {
454 ret = xilinx_timer_err(np, -EOPNOTSUPP,
455 "cannot determine endianness\n");
456 goto err_priv;
457 }
458
459 xilinx_timer_write(priv, tcsr0 | TCSR_ENIT, TCSR0);
460 if (!(xilinx_timer_read(priv, TCSR0) & TCSR_ENIT)) {
461 priv->read = xilinx_ioread32be;
462 priv->write = xilinx_iowrite32be;
463 }
464
465 /*
466 * For backwards compatibility, allow xlnx,one-timer-only = <bool>;
467 * However, the preferred way is to use the xlnx,single-timer flag.
468 */
469 one_timer = of_property_read_bool(np, "xlnx,single-timer");
470 if (!one_timer) {
471 ret = of_property_read_u32(np, "xlnx,one-timer-only", &one_timer);
472 if (ret) {
473 ret = xilinx_timer_err(np, ret, "xlnx,one-timer-only");
474 goto err_priv;
475 }
476 }
477
478 pwm = of_property_read_bool(np, "xlnx,pwm");
479 if (one_timer && pwm) {
480 ret = xilinx_timer_err(np, -EINVAL,
481 "pwm mode not possible with one timer\n");
482 goto err_priv;
483 }
484
485 priv->flags = FIELD_PREP(XILINX_TIMER_ONE, one_timer) |
486 FIELD_PREP(XILINX_TIMER_PWM, pwm);
487
488 for (i = 0; pwm && i < 2; i++) {
489 char int_fmt[] = "xlnx,gen%u-assert";
490 char bool_fmt[] = "xlnx,gen%u-active-low";
491 char buf[max(sizeof(int_fmt), sizeof(bool_fmt))];
492 u32 gen;
493
494 /*
495 * Allow xlnx,gen?-assert = <bool>; for backwards
496 * compatibility. However, the preferred way is to use the
497 * xlnx,gen?-active-low flag.
498 */
499 snprintf(buf, sizeof(buf), bool_fmt, i);
500 gen = !of_property_read_bool(np, buf);
501 if (gen) {
502 snprintf(buf, sizeof(buf), int_fmt, i);
503 ret = of_property_read_u32(np, buf, &gen);
504 if (ret && ret != -EINVAL) {
505 xilinx_timer_err(np, ret, "%s\n", buf);
506 goto err_priv;
507 }
508 }
509
510 if (!gen) {
511 ret = xilinx_timer_err(np, -EINVAL,
512 "generateout%u must be active high\n",
513 i);
514 goto err_priv;
515 }
516 }
517
518 ret = of_property_read_u32(np, "xlnx,count-width", &priv->width);
519 if (ret) {
520 xilinx_timer_err(np, ret, "xlnx,count-width\n");
521 goto err_priv;
522 } else if (priv->width < 8 || priv->width > 32) {
523 ret = xilinx_timer_err(np, -EINVAL, "invalid counter width\n");
524 goto err_priv;
525 }
526
527 priv->clk = xilinx_timer_clock_init(np, priv);
528 if (IS_ERR(priv->clk)) {
529 ret = xilinx_timer_err(np, PTR_ERR(priv->clk), "clock\n");
530 goto err_priv;
531 }
532
533 ret = clk_prepare_enable(priv->clk);
534 if (ret) {
535 xilinx_timer_err(np, ret, "clock enable failed\n");
536 goto err_clk;
537 }
538 clk_rate_exclusive_get(priv->clk);
539
540 if (pwm) {
541 ret = xilinx_pwm_init(dev, priv);
542 } else {
543 ret = xilinx_clocksource_init(priv);
544 if (!ret && !one_timer) {
545 ret = xilinx_clockevent_init(np, priv);
546 if (ret)
547 priv->flags |= XILINX_TIMER_ONE;
548 }
549 }
550
551 if (!ret)
552 return priv;
553
554 clk_rate_exclusive_put(priv->clk);
555 clk_disable_unprepare(priv->clk);
556 err_clk:
557 if (priv->flags & XILINX_TIMER_CLK)
558 clk_unregister_fixed_rate(priv->clk);
559 else
560 clk_put(priv->clk);
561 err_priv:
562 kfree(priv);
563 return ERR_PTR(ret);
564 }
565
---
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 v4 06/24] mpi3mr: add support of event handling part-1
by kernel test robot
Hi Kashyap,
I love your patch! Yet something to improve:
[auto build test ERROR on mkp-scsi/for-next]
[also build test ERROR on scsi/for-next v5.13-rc1 next-20210511]
[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/Kashyap-Desai/Introducing-mpi3mr...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: csky-allyesconfig (attached as .config)
compiler: csky-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/78dec0086068df04260a681b710121cef...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kashyap-Desai/Introducing-mpi3mr-driver/20210512-035400
git checkout 78dec0086068df04260a681b710121cefb92c0b0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=csky
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 drivers/scsi/mpi3mr/mpi/mpi30_api.h:15,
from drivers/scsi/mpi3mr/mpi3mr.h:42,
from drivers/scsi/mpi3mr/mpi3mr_os.c:10:
>> drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h:422:51: error: 'mpi3_man9_rsrc_num_resources' undeclared here (not in a function); did you mean 'mpi3_man9_resources'?
422 | struct _mpi3_man9_rsrc_entry resource[mpi3_man9_rsrc_num_resources];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| mpi3_man9_resources
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +422 drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h
396
397 #define MPI3_MAN9_MIN_OUTSTANDING_REQS (1)
398 #define MPI3_MAN9_MAX_OUTSTANDING_REQS (65000)
399 #define MPI3_MAN9_MIN_TARGET_CMDS (0)
400 #define MPI3_MAN9_MAX_TARGET_CMDS (65535)
401 #define MPI3_MAN9_MIN_SAS_TARGETS (0)
402 #define MPI3_MAN9_MAX_SAS_TARGETS (65535)
403 #define MPI3_MAN9_MIN_PCIE_TARGETS (0)
404 #define MPI3_MAN9_MIN_INITIATORS (0)
405 #define MPI3_MAN9_MAX_INITIATORS (65535)
406 #define MPI3_MAN9_MIN_ENCLOSURES (0)
407 #define MPI3_MAN9_MAX_ENCLOSURES (65535)
408 #define MPI3_MAN9_MIN_ENCLOSURE_PHYS (0)
409 #define MPI3_MAN9_MIN_EXPANDERS (0)
410 #define MPI3_MAN9_MAX_EXPANDERS (65535)
411 #define MPI3_MAN9_MIN_PCIE_SWITCHES (0)
412 struct _mpi3_man_page9 {
413 struct _mpi3_config_page_header header;
414 u8 num_resources;
415 u8 reserved09;
416 __le16 reserved0a;
417 __le32 reserved0c;
418 __le32 reserved10;
419 __le32 reserved14;
420 __le32 reserved18;
421 __le32 reserved1c;
> 422 struct _mpi3_man9_rsrc_entry resource[mpi3_man9_rsrc_num_resources];
423 };
424
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months