[iio:testing 25/36] drivers/iio/proximity/sx9310.c:557:25: warning: Clarify calculation precedence for '&' and
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git testing
head: 4f9a05eff1263f96157471d75a8f3c9362947b06
commit: 1b996912c849d921a1763f817723d419be561803 [25/36] iio: sx9310: Use long instead of int for channel bitmaps
compiler: xtensa-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>
cppcheck warnings: (new ones prefixed by >>)
>> drivers/iio/proximity/sx9310.c:557:25: warning: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
dir = val & BIT(chan) ? IIO_EV_DIR_FALLING : IIO_EV_DIR_RISING;
^
vim +557 drivers/iio/proximity/sx9310.c
531
532 static void sx9310_push_events(struct iio_dev *indio_dev)
533 {
534 int ret;
535 unsigned int val, chan;
536 struct sx9310_data *data = iio_priv(indio_dev);
537 s64 timestamp = iio_get_time_ns(indio_dev);
538 unsigned long prox_changed;
539
540 /* Read proximity state on all channels */
541 ret = regmap_read(data->regmap, SX9310_REG_STAT0, &val);
542 if (ret < 0) {
543 dev_err(&data->client->dev, "i2c transfer error in irq\n");
544 return;
545 }
546
547 /*
548 * Only iterate over channels with changes on proximity status that have
549 * events enabled.
550 */
551 prox_changed = (data->chan_prox_stat ^ val) & data->chan_event;
552
553 for_each_set_bit(chan, &prox_changed, SX9310_NUM_CHANNELS) {
554 int dir;
555 u64 ev;
556
> 557 dir = val & BIT(chan) ? IIO_EV_DIR_FALLING : IIO_EV_DIR_RISING;
558 ev = IIO_UNMOD_EVENT_CODE(IIO_PROXIMITY, chan,
559 IIO_EV_TYPE_THRESH, dir);
560
561 iio_push_event(indio_dev, ev, timestamp);
562 }
563 data->chan_prox_stat = val;
564 }
565
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
include/linux/spinlock.h:408:9: sparse: sparse: context imbalance in 'destroy_id_handler_unlock' - wrong count at exit
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a81c1c7db9bd5de0bd38cd5acc44bb22b99150
commit: f6a9d47ae6854980fc4b1676f1fe9f9fa45ea4e2 RDMA/cma: Execute rdma_cm destruction from a handler properly
date: 11 days ago
config: openrisc-randconfig-s032-20200810 (attached as .config)
compiler: or1k-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.2-118-ge1578773-dirty
git checkout f6a9d47ae6854980fc4b1676f1fe9f9fa45ea4e2
# 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=openrisc
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/infiniband/core/cma.c: note: in included file (through include/linux/swait.h, include/linux/completion.h):
>> include/linux/spinlock.h:408:9: sparse: sparse: context imbalance in 'destroy_id_handler_unlock' - wrong count at exit
drivers/infiniband/core/cma.c:1876:6: sparse: sparse: context imbalance in 'rdma_destroy_id' - unexpected unlock
drivers/infiniband/core/cma.c:2016:17: sparse: sparse: context imbalance in 'cma_ib_handler' - unexpected unlock
drivers/infiniband/core/cma.c:2207:17: sparse: sparse: context imbalance in 'cma_ib_req_handler' - unexpected unlock
drivers/infiniband/core/cma.c:2331:17: sparse: sparse: context imbalance in 'cma_iw_handler' - unexpected unlock
drivers/infiniband/core/cma.c:2379:17: sparse: sparse: context imbalance in 'iw_conn_req_handler' - unexpected unlock
drivers/infiniband/core/cma.c:2647:17: sparse: sparse: context imbalance in 'cma_work_handler' - unexpected unlock
drivers/infiniband/core/cma.c:2670:17: sparse: sparse: context imbalance in 'cma_ndev_work_handler' - unexpected unlock
drivers/infiniband/core/cma.c:3154:17: sparse: sparse: context imbalance in 'addr_handler' - unexpected unlock
drivers/infiniband/core/cma.c:3808:17: sparse: sparse: context imbalance in 'cma_sidr_rep_handler' - unexpected unlock
drivers/infiniband/core/cma.c:4339:17: sparse: sparse: context imbalance in 'cma_ib_mc_handler' - unexpected unlock
vim +/destroy_id_handler_unlock +408 include/linux/spinlock.h
c2f21ce2e31286 Thomas Gleixner 2009-12-02 405
3490565b633c70 Denys Vlasenko 2015-07-13 406 static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)
c2f21ce2e31286 Thomas Gleixner 2009-12-02 407 {
c2f21ce2e31286 Thomas Gleixner 2009-12-02 @408 raw_spin_unlock_irqrestore(&lock->rlock, flags);
c2f21ce2e31286 Thomas Gleixner 2009-12-02 409 }
c2f21ce2e31286 Thomas Gleixner 2009-12-02 410
:::::: The code at line 408 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
2 years, 1 month
arch/sparc/include/asm/cmpxchg_64.h:161:50: sparse: sparse: cast truncates bits from constant value (5f0ecafe becomes fe)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a81c1c7db9bd5de0bd38cd5acc44bb22b99150
commit: 47e4937a4a7ca4184fd282791dfee76c6799966a erofs: move erofs out of staging
date: 12 months ago
config: sparc64-randconfig-s032-20200810 (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.2-118-ge1578773-dirty
git checkout 47e4937a4a7ca4184fd282791dfee76c6799966a
# 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=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
fs/erofs/zdata.c: note: in included file (through arch/sparc/include/asm/cmpxchg.h, arch/sparc/include/asm/atomic_64.h, arch/sparc/include/asm/atomic.h, ...):
>> arch/sparc/include/asm/cmpxchg_64.h:161:50: sparse: sparse: cast truncates bits from constant value (5f0ecafe becomes fe)
>> arch/sparc/include/asm/cmpxchg_64.h:161:50: sparse: sparse: cast truncates bits from constant value (5f0ecafe becomes fe)
>> arch/sparc/include/asm/cmpxchg_64.h:161:55: sparse: sparse: cast truncates bits from constant value (5f0edead becomes ad)
vim +161 arch/sparc/include/asm/cmpxchg_64.h
d550bbd40c0e10 David Howells 2012-03-28 155
d550bbd40c0e10 David Howells 2012-03-28 156 static inline unsigned long
d550bbd40c0e10 David Howells 2012-03-28 157 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size)
d550bbd40c0e10 David Howells 2012-03-28 158 {
d550bbd40c0e10 David Howells 2012-03-28 159 switch (size) {
a12ee2349312d7 Babu Moger 2017-05-24 160 case 1:
a12ee2349312d7 Babu Moger 2017-05-24 @161 return __cmpxchg_u8(ptr, old, new);
d550bbd40c0e10 David Howells 2012-03-28 162 case 4:
d550bbd40c0e10 David Howells 2012-03-28 163 return __cmpxchg_u32(ptr, old, new);
d550bbd40c0e10 David Howells 2012-03-28 164 case 8:
d550bbd40c0e10 David Howells 2012-03-28 165 return __cmpxchg_u64(ptr, old, new);
d550bbd40c0e10 David Howells 2012-03-28 166 }
d550bbd40c0e10 David Howells 2012-03-28 167 __cmpxchg_called_with_bad_pointer();
d550bbd40c0e10 David Howells 2012-03-28 168 return old;
d550bbd40c0e10 David Howells 2012-03-28 169 }
d550bbd40c0e10 David Howells 2012-03-28 170
:::::: The code at line 161 was first introduced by commit
:::::: a12ee2349312d7112b9b7c6ac2e70c5ec2ca334e arch/sparc: Introduce cmpxchg_u8 SPARC
:::::: TO: Babu Moger <babu.moger(a)oracle.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[lkundrak-linux-mmp:lr/ariel 37/38] drivers/gpu/drm/panel/panel-simple.c:2146:38: warning: unused variable 'innolux_n116bge_mode'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git lr/ariel
head: 24ec55bb8323514fe97fc1335b6bc6a9a36cd48d
commit: b8f842af659e5ef9c7132effce2a041fdd589e01 [37/38] xrefresh
config: x86_64-randconfig-a006-20200809 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0b90a08f7722980f6074c6eada8022242408cdb4)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout b8f842af659e5ef9c7132effce2a041fdd589e01
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
>> drivers/gpu/drm/panel/panel-simple.c:2146:38: warning: unused variable 'innolux_n116bge_mode' [-Wunused-const-variable]
static const struct drm_display_mode innolux_n116bge_mode = {
^
1 warning generated.
vim +/innolux_n116bge_mode +2146 drivers/gpu/drm/panel/panel-simple.c
fe0da14debcba4 Lubomir Rintel 2018-12-13 2145
fe0da14debcba4 Lubomir Rintel 2018-12-13 @2146 static const struct drm_display_mode innolux_n116bge_mode = {
fe0da14debcba4 Lubomir Rintel 2018-12-13 2147 .clock = 76420,
fe0da14debcba4 Lubomir Rintel 2018-12-13 2148 .hdisplay = 1366,
fe0da14debcba4 Lubomir Rintel 2018-12-13 2149 .hsync_start = 1366 + 136,
fe0da14debcba4 Lubomir Rintel 2018-12-13 2150 .hsync_end = 1366 + 136 + 30,
fe0da14debcba4 Lubomir Rintel 2018-12-13 2151 .htotal = 1366 + 136 + 30 + 60,
fe0da14debcba4 Lubomir Rintel 2018-12-13 2152 .vdisplay = 768,
fe0da14debcba4 Lubomir Rintel 2018-12-13 2153 .vsync_start = 768 + 8,
fe0da14debcba4 Lubomir Rintel 2018-12-13 2154 .vsync_end = 768 + 8 + 12,
fe0da14debcba4 Lubomir Rintel 2018-12-13 2155 .vtotal = 768 + 8 + 12 + 12,
fe0da14debcba4 Lubomir Rintel 2018-12-13 2156 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
fe0da14debcba4 Lubomir Rintel 2018-12-13 2157 };
fe0da14debcba4 Lubomir Rintel 2018-12-13 2158
:::::: The code at line 2146 was first introduced by commit
:::::: fe0da14debcba4855471901ea88fb26fcf0590ac drm/panel: simple: Add support for Innolux LS075AT011
:::::: TO: Lubomir Rintel <lkundrak(a)v3.sk>
:::::: CC: Lubomir Rintel <lkundrak(a)v3.sk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[linux-stable-rc:linux-4.14.y 9243/9999] fs/proc/vmcore.c:171:1: warning: no previous prototype for 'copy_oldmem_page_encrypted'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.14.y
head: e1f7d50ae3a3ec342e87a9b1ce6787bfb8b3c08b
commit: 27647dde3018985379d58feacf2fc3f11e91b478 [9243/9999] proc/vmcore: Fix i386 build error of missing copy_oldmem_page_encrypted()
config: mips-randconfig-r005-20200809 (attached as .config)
compiler: mipsel-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
git checkout 27647dde3018985379d58feacf2fc3f11e91b478
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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/workqueue.h:9,
from include/linux/srcu.h:34,
from include/linux/notifier.h:16,
from include/linux/memory_hotplug.h:7,
from include/linux/mmzone.h:782,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from fs/proc/vmcore.c:10:
include/linux/timer.h: In function 'timer_setup':
include/linux/timer.h:179:23: warning: cast between incompatible function types from 'void (*)(struct timer_list *)' to 'void (*)(long unsigned int)' [-Wcast-function-type]
179 | __setup_timer(timer, (TIMER_FUNC_TYPE)callback,
| ^
include/linux/timer.h:144:25: note: in definition of macro '__setup_timer'
144 | (_timer)->function = (_fn); \
| ^~~
fs/proc/vmcore.c: At top level:
>> fs/proc/vmcore.c:171:1: warning: no previous prototype for 'copy_oldmem_page_encrypted' [-Wmissing-prototypes]
171 | copy_oldmem_page_encrypted(unsigned long pfn, char *buf, size_t csize,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/copy_oldmem_page_encrypted +171 fs/proc/vmcore.c
166
167 /*
168 * Architectures which support memory encryption override this.
169 */
170 ssize_t __weak
> 171 copy_oldmem_page_encrypted(unsigned long pfn, char *buf, size_t csize,
172 unsigned long offset, int userbuf)
173 {
174 return copy_oldmem_page(pfn, buf, csize, offset, userbuf);
175 }
176
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[rppt:memblock/iterators-cleanup/v3 12/17] arch/powerpc/mm/kasan/kasan_init_32.c:150:3: error: 'ret' undeclared; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git memblock/iterators-cleanup/v3
head: f0d593460d044672ca2ea065efc283e30dd23ef1
commit: 01b2e0673f21479222dd0f387b5b73ec037d8096 [12/17] arch, drivers: replace for_each_membock() with for_each_mem_range()
config: powerpc64-randconfig-r026-20200810 (attached as .config)
compiler: powerpc-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
git checkout 01b2e0673f21479222dd0f387b5b73ec037d8096
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
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/powerpc/mm/kasan/kasan_init_32.c: In function 'kasan_init':
>> arch/powerpc/mm/kasan/kasan_init_32.c:150:3: error: 'ret' undeclared (first use in this function); did you mean 'net'?
150 | ret = kasan_init_region(__va(base), top - base);
| ^~~
| net
arch/powerpc/mm/kasan/kasan_init_32.c:150:3: note: each undeclared identifier is reported only once for each function it appears in
vim +150 arch/powerpc/mm/kasan/kasan_init_32.c
41ea93cf7ba4e0 Christophe Leroy 2020-07-02 138
41ea93cf7ba4e0 Christophe Leroy 2020-07-02 139 void __init kasan_init(void)
41ea93cf7ba4e0 Christophe Leroy 2020-07-02 140 {
01b2e0673f2147 Mike Rapoport 2020-07-26 141 phys_addr_t base, end;
01b2e0673f2147 Mike Rapoport 2020-07-26 142 u64 i;
2edb16efc899f9 Christophe Leroy 2019-04-26 143
01b2e0673f2147 Mike Rapoport 2020-07-26 144 for_each_mem_range(i, &base, &end) {
01b2e0673f2147 Mike Rapoport 2020-07-26 145 phys_addr_t top = min(end, total_lowmem);
2edb16efc899f9 Christophe Leroy 2019-04-26 146
2edb16efc899f9 Christophe Leroy 2019-04-26 147 if (base >= top)
2edb16efc899f9 Christophe Leroy 2019-04-26 148 continue;
2edb16efc899f9 Christophe Leroy 2019-04-26 149
2edb16efc899f9 Christophe Leroy 2019-04-26 @150 ret = kasan_init_region(__va(base), top - base);
2edb16efc899f9 Christophe Leroy 2019-04-26 151 if (ret)
2edb16efc899f9 Christophe Leroy 2019-04-26 152 panic("kasan: kasan_init_region() failed");
2edb16efc899f9 Christophe Leroy 2019-04-26 153 }
ec97d022f621c6 Christophe Leroy 2020-05-19 154
2edb16efc899f9 Christophe Leroy 2019-04-26 155 kasan_remap_early_shadow_ro();
2edb16efc899f9 Christophe Leroy 2019-04-26 156
2edb16efc899f9 Christophe Leroy 2019-04-26 157 clear_page(kasan_early_shadow_page);
2edb16efc899f9 Christophe Leroy 2019-04-26 158
2edb16efc899f9 Christophe Leroy 2019-04-26 159 /* At this point kasan is fully initialized. Enable error messages */
2edb16efc899f9 Christophe Leroy 2019-04-26 160 init_task.kasan_depth = 0;
2edb16efc899f9 Christophe Leroy 2019-04-26 161 pr_info("KASAN init done\n");
2edb16efc899f9 Christophe Leroy 2019-04-26 162 }
2edb16efc899f9 Christophe Leroy 2019-04-26 163
:::::: The code at line 150 was first introduced by commit
:::::: 2edb16efc899f9c232e2d880930b855e4cf55df4 powerpc/32: Add KASAN support
:::::: TO: Christophe Leroy <christophe.leroy(a)c-s.fr>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[rppt:memblock/iterators-cleanup/v3 12/17] arch/s390/mm/vmem.c:561:3: error: implicit declaration of function 'vmem_add_mem'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git memblock/iterators-cleanup/v3
head: f0d593460d044672ca2ea065efc283e30dd23ef1
commit: 01b2e0673f21479222dd0f387b5b73ec037d8096 [12/17] arch, drivers: replace for_each_membock() with for_each_mem_range()
config: s390-allyesconfig (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
git checkout 01b2e0673f21479222dd0f387b5b73ec037d8096
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/s390/mm/vmem.c: In function 'vmem_map_init':
>> arch/s390/mm/vmem.c:561:3: error: implicit declaration of function 'vmem_add_mem'; did you mean 'vmem_add_range'? [-Werror=implicit-function-declaration]
561 | vmem_add_mem(start, end - start);
| ^~~~~~~~~~~~
| vmem_add_range
cc1: some warnings being treated as errors
vim +561 arch/s390/mm/vmem.c
549
550 /*
551 * map whole physical memory to virtual memory (identity mapping)
552 * we reserve enough space in the vmalloc area for vmemmap to hotplug
553 * additional memory segments.
554 */
555 void __init vmem_map_init(void)
556 {
557 phys_addr_t start, end;
558 u64 i;
559
560 for_each_mem_range(i, &start, &end)
> 561 vmem_add_mem(start, end - start);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids'
by kernel test robot
Hi Baolin,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a81c1c7db9bd5de0bd38cd5acc44bb22b99150
commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST
date: 5 months ago
config: x86_64-randconfig-a004-20200810 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0b90a08f7722980f6074c6eada8022242408cdb4)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
>> drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids' [-Wunused-const-variable]
static const struct of_device_id sirf_hwpinlock_ids[] = {
^
1 warning generated.
vim +/sirf_hwpinlock_ids +87 drivers/hwspinlock/sirf_hwspinlock.c
cc16d664e21ef6 Wei Chen 2015-05-26 86
cc16d664e21ef6 Wei Chen 2015-05-26 @87 static const struct of_device_id sirf_hwpinlock_ids[] = {
cc16d664e21ef6 Wei Chen 2015-05-26 88 { .compatible = "sirf,hwspinlock", },
cc16d664e21ef6 Wei Chen 2015-05-26 89 {},
cc16d664e21ef6 Wei Chen 2015-05-26 90 };
cc16d664e21ef6 Wei Chen 2015-05-26 91 MODULE_DEVICE_TABLE(of, sirf_hwpinlock_ids);
cc16d664e21ef6 Wei Chen 2015-05-26 92
:::::: The code at line 87 was first introduced by commit
:::::: cc16d664e21ef640faaf51e9952384cf90b92d9f hwspinlock: add a CSR atlas7 driver
:::::: TO: Wei Chen <wei.chen(a)csr.com>
:::::: CC: Ohad Ben-Cohen <ohad(a)wizery.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[rppt:memblock/iterators-cleanup/v3 12/17] arch/s390/mm/vmem.c:561:3: error: implicit declaration of function 'vmem_add_mem'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git memblock/iterators-cleanup/v3
head: f0d593460d044672ca2ea065efc283e30dd23ef1
commit: 01b2e0673f21479222dd0f387b5b73ec037d8096 [12/17] arch, drivers: replace for_each_membock() with for_each_mem_range()
config: s390-randconfig-r003-20200810 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0b90a08f7722980f6074c6eada8022242408cdb4)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
git checkout 01b2e0673f21479222dd0f387b5b73ec037d8096
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
^
In file included from arch/s390/mm/vmem.c:7:
In file included from include/linux/memblock.h:14:
In file included from arch/s390/include/asm/dma.h:5:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
^
In file included from arch/s390/mm/vmem.c:7:
In file included from include/linux/memblock.h:14:
In file included from arch/s390/include/asm/dma.h:5:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
^
In file included from arch/s390/mm/vmem.c:7:
In file included from include/linux/memblock.h:14:
In file included from arch/s390/include/asm/dma.h:5:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from arch/s390/mm/vmem.c:7:
In file included from include/linux/memblock.h:14:
In file included from arch/s390/include/asm/dma.h:5:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from arch/s390/mm/vmem.c:7:
In file included from include/linux/memblock.h:14:
In file included from arch/s390/include/asm/dma.h:5:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:46: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew(cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:46: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel(cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
arch/s390/mm/vmem.c:519:6: warning: no previous prototype for function 'vmemmap_free' [-Wmissing-prototypes]
void vmemmap_free(unsigned long start, unsigned long end,
^
arch/s390/mm/vmem.c:519:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void vmemmap_free(unsigned long start, unsigned long end,
^
static
>> arch/s390/mm/vmem.c:561:3: error: implicit declaration of function 'vmem_add_mem' [-Werror,-Wimplicit-function-declaration]
vmem_add_mem(start, end - start);
^
21 warnings and 1 error generated.
vim +/vmem_add_mem +561 arch/s390/mm/vmem.c
549
550 /*
551 * map whole physical memory to virtual memory (identity mapping)
552 * we reserve enough space in the vmalloc area for vmemmap to hotplug
553 * additional memory segments.
554 */
555 void __init vmem_map_init(void)
556 {
557 phys_addr_t start, end;
558 u64 i;
559
560 for_each_mem_range(i, &start, &end)
> 561 vmem_add_mem(start, end - start);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[rppt:memblock/iterators-cleanup/v3 16/17] WARNING: modpost: vmlinux.o(.text+0xc): Section mismatch in reference from the function nexthop_find_by_id() to the variable .meminit.data:memblock
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git memblock/iterators-cleanup/v3
head: f0d593460d044672ca2ea065efc283e30dd23ef1
commit: 0aceec0b635f55f8968ec5e42fe4e66b6a55e71d [16/17] memblock: implement for_each_reserved_mem_region() using __next_mem_region()
config: parisc-randconfig-c003-20200810 (attached as .config)
compiler: hppa-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
git checkout 0aceec0b635f55f8968ec5e42fe4e66b6a55e71d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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+0xc): Section mismatch in reference from the function nexthop_find_by_id() to the variable .meminit.data:memblock
The function nexthop_find_by_id() references
the variable __meminitdata memblock.
This is often because nexthop_find_by_id lacks a __meminitdata
annotation or the annotation of memblock is wrong.
--
>> WARNING: modpost: vmlinux.o(.text+0x10): Section mismatch in reference from the function __mincore_unmapped_range() to the variable .meminit.data:memblock
The function __mincore_unmapped_range() references
the variable __meminitdata memblock.
This is often because __mincore_unmapped_range lacks a __meminitdata
annotation or the annotation of memblock is wrong.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month