arch/powerpc/kernel/traps.c:1160:19: error: unused function '__parse_fpscr'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f40ddce88593482919761f74910f42f4b84c004b
commit: 7d68c89169508064c460a1208f38ed0589d226fa powerpc/32s: Allow deselecting CONFIG_PPC_FPU on mpc832x
date: 3 months ago
config: powerpc-randconfig-r026-20210218 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7d68c89169508064c460a1208f38ed0589d226fa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/powerpc/kernel/traps.c:1160:19: error: unused function '__parse_fpscr' [-Werror,-Wunused-function]
static inline int __parse_fpscr(unsigned long fpscr)
^
1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LEDS_TRIGGER_DISK
Depends on NEW_LEDS && LEDS_TRIGGERS && (IDE_GD_ATA || ATA
Selected by
- ADB_PMU_LED_DISK && MACINTOSH_DRIVERS && ADB_PMU_LED && LEDS_CLASS
vim +/__parse_fpscr +1160 arch/powerpc/kernel/traps.c
14cf11af6cf608 Paul Mackerras 2005-09-26 1159
5fad293bcbd48d Kumar Gala 2007-02-07 @1160 static inline int __parse_fpscr(unsigned long fpscr)
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1161 {
aeb1c0f6ff18f5 Eric W. Biederman 2018-04-17 1162 int ret = FPE_FLTUNK;
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1163
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1164 /* Invalid operation */
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1165 if ((fpscr & FPSCR_VE) && (fpscr & FPSCR_VX))
5fad293bcbd48d Kumar Gala 2007-02-07 1166 ret = FPE_FLTINV;
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1167
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1168 /* Overflow */
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1169 else if ((fpscr & FPSCR_OE) && (fpscr & FPSCR_OX))
5fad293bcbd48d Kumar Gala 2007-02-07 1170 ret = FPE_FLTOVF;
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1171
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1172 /* Underflow */
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1173 else if ((fpscr & FPSCR_UE) && (fpscr & FPSCR_UX))
5fad293bcbd48d Kumar Gala 2007-02-07 1174 ret = FPE_FLTUND;
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1175
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1176 /* Divide by zero */
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1177 else if ((fpscr & FPSCR_ZE) && (fpscr & FPSCR_ZX))
5fad293bcbd48d Kumar Gala 2007-02-07 1178 ret = FPE_FLTDIV;
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1179
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1180 /* Inexact result */
dc1c1ca3dcd94c Stephen Rothwell 2005-10-01 1181 else if ((fpscr & FPSCR_XE) && (fpscr & FPSCR_XX))
5fad293bcbd48d Kumar Gala 2007-02-07 1182 ret = FPE_FLTRES;
5fad293bcbd48d Kumar Gala 2007-02-07 1183
5fad293bcbd48d Kumar Gala 2007-02-07 1184 return ret;
5fad293bcbd48d Kumar Gala 2007-02-07 1185 }
5fad293bcbd48d Kumar Gala 2007-02-07 1186
:::::: The code at line 1160 was first introduced by commit
:::::: 5fad293bcbd48d9a2370020cf60e4b4a42559b12 [POWERPC] Fixup error handling when emulating a floating point instruction
:::::: TO: Kumar Gala <galak(a)kernel.crashing.org>
:::::: CC: Kumar Gala <galak(a)kernel.crashing.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[ti:ti-linux-5.4.y 8675/13391] include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared
by kernel test robot
Hi WingMan,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head: 26692c45bd67ced28dc36459ce28adea53187341
commit: e804afb5449b93d5b543a1685b0b2fab328873fc [8675/13391] net: packet: pass on redundant net info in packet_recvmsg
config: alpha-randconfig-r011-20210218 (attached as .config)
compiler: alpha-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 remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-linux-5.4.y
git checkout e804afb5449b93d5b543a1685b0b2fab328873fc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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/net/cls_cgroup.h:14,
from net/socket.c:95:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/socket.c: In function '__sys_getsockopt':
net/socket.c:2113:6: warning: variable 'max_optlen' set but not used [-Wunused-but-set-variable]
2113 | int max_optlen;
| ^~~~~~~~~~
--
In file included from net/appletalk/aarp.c:28:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
--
In file included from include/linux/atmdev.h:13,
from net/atm/resources.c:15:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/atm/resources.c: At top level:
net/atm/resources.c:446:7: warning: no previous prototype for 'atm_dev_seq_start' [-Wmissing-prototypes]
446 | void *atm_dev_seq_start(struct seq_file *seq, loff_t *pos)
| ^~~~~~~~~~~~~~~~~
net/atm/resources.c:452:6: warning: no previous prototype for 'atm_dev_seq_stop' [-Wmissing-prototypes]
452 | void atm_dev_seq_stop(struct seq_file *seq, void *v)
| ^~~~~~~~~~~~~~~~
net/atm/resources.c:457:7: warning: no previous prototype for 'atm_dev_seq_next' [-Wmissing-prototypes]
457 | void *atm_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos)
| ^~~~~~~~~~~~~~~~
--
In file included from include/net/bluetooth/bluetooth.h:29,
from net/bluetooth/l2cap_core.c:37:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/bluetooth/l2cap_core.c: In function 'l2cap_connect':
net/bluetooth/l2cap_core.c:3872:41: warning: comparison is always false due to limited range of data type [-Wtype-limits]
3872 | if (scid < L2CAP_CID_DYN_START || scid > L2CAP_CID_DYN_END) {
| ^
--
In file included from include/net/bluetooth/bluetooth.h:29,
from net/bluetooth/smp.c:32:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/bluetooth/smp.c: In function 'smp_irk_matches':
net/bluetooth/smp.c:505:18: warning: variable 'smp' set but not used [-Wunused-but-set-variable]
505 | struct smp_dev *smp;
| ^~~
net/bluetooth/smp.c: In function 'smp_generate_rpa':
net/bluetooth/smp.c:526:18: warning: variable 'smp' set but not used [-Wunused-but-set-variable]
526 | struct smp_dev *smp;
| ^~~
--
In file included from net/nfc/nci/../nfc.h:14,
from net/nfc/nci/hci.c:13:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/nfc/nci/hci.c: In function 'nci_hci_resp_received':
net/nfc/nci/hci.c:369:5: warning: variable 'status' set but not used [-Wunused-but-set-variable]
369 | u8 status = result;
| ^~~~~~
vim +/SCM_REDUNDANT +2457 include/net/sock.h
2449
2450 static inline void sock_recv_redundant_info(struct msghdr *msg, struct sock *sk,
2451 struct sk_buff *skb)
2452 {
2453 struct skb_redundant_info *sred;
2454
2455 sred = skb_redinfo(skb);
2456 if (sred->lsdu_size)
> 2457 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
2458 }
2459
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
mm/hmm.c:333:15: sparse: sparse: cast to non-scalar
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f40ddce88593482919761f74910f42f4b84c004b
commit: dee081bf8f824cabeb7c7495367d5dad0a444eb1 READ_ONCE: Drop pointer qualifiers when reading from scalar types
date: 10 months ago
config: alpha-randconfig-s032-20210218 (attached as .config)
compiler: alpha-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-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout dee081bf8f824cabeb7c7495367d5dad0a444eb1
# 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=alpha
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 >>)"
>> mm/hmm.c:333:15: sparse: sparse: cast to non-scalar
>> mm/hmm.c:333:15: sparse: sparse: cast from non-scalar
vim +333 mm/hmm.c
53f5c3f489ecdd Jérôme Glisse 2018-04-10 318
53f5c3f489ecdd Jérôme Glisse 2018-04-10 319 static int hmm_vma_walk_pmd(pmd_t *pmdp,
53f5c3f489ecdd Jérôme Glisse 2018-04-10 320 unsigned long start,
53f5c3f489ecdd Jérôme Glisse 2018-04-10 321 unsigned long end,
53f5c3f489ecdd Jérôme Glisse 2018-04-10 322 struct mm_walk *walk)
53f5c3f489ecdd Jérôme Glisse 2018-04-10 323 {
53f5c3f489ecdd Jérôme Glisse 2018-04-10 324 struct hmm_vma_walk *hmm_vma_walk = walk->private;
53f5c3f489ecdd Jérôme Glisse 2018-04-10 325 struct hmm_range *range = hmm_vma_walk->range;
2288a9a68175ce Jason Gunthorpe 2020-03-05 326 uint64_t *pfns = &range->pfns[(start - range->start) >> PAGE_SHIFT];
2288a9a68175ce Jason Gunthorpe 2020-03-05 327 unsigned long npages = (end - start) >> PAGE_SHIFT;
2288a9a68175ce Jason Gunthorpe 2020-03-05 328 unsigned long addr = start;
53f5c3f489ecdd Jérôme Glisse 2018-04-10 329 pte_t *ptep;
d08faca018c461 Jérôme Glisse 2018-10-30 330 pmd_t pmd;
53f5c3f489ecdd Jérôme Glisse 2018-04-10 331
53f5c3f489ecdd Jérôme Glisse 2018-04-10 332 again:
d08faca018c461 Jérôme Glisse 2018-10-30 @333 pmd = READ_ONCE(*pmdp);
d08faca018c461 Jérôme Glisse 2018-10-30 334 if (pmd_none(pmd))
b7a16c7ad790d0 Steven Price 2020-02-03 335 return hmm_vma_walk_hole(start, end, -1, walk);
53f5c3f489ecdd Jérôme Glisse 2018-04-10 336
d08faca018c461 Jérôme Glisse 2018-10-30 337 if (thp_migration_supported() && is_pmd_migration_entry(pmd)) {
a3eb13c1579ba9 Jason Gunthorpe 2020-03-27 338 if (hmm_range_need_fault(hmm_vma_walk, pfns, npages, 0)) {
d08faca018c461 Jérôme Glisse 2018-10-30 339 hmm_vma_walk->last = addr;
d2e8d551165ccb Ralph Campbell 2019-07-25 340 pmd_migration_entry_wait(walk->mm, pmdp);
73231612dc7c90 Jérôme Glisse 2019-05-13 341 return -EBUSY;
d08faca018c461 Jérôme Glisse 2018-10-30 342 }
7d082987e5e562 Jason Gunthorpe 2020-03-04 343 return hmm_pfns_fill(start, end, range, HMM_PFN_NONE);
2288a9a68175ce Jason Gunthorpe 2020-03-05 344 }
2288a9a68175ce Jason Gunthorpe 2020-03-05 345
2288a9a68175ce Jason Gunthorpe 2020-03-05 346 if (!pmd_present(pmd)) {
a3eb13c1579ba9 Jason Gunthorpe 2020-03-27 347 if (hmm_range_need_fault(hmm_vma_walk, pfns, npages, 0))
2288a9a68175ce Jason Gunthorpe 2020-03-05 348 return -EFAULT;
d28c2c9a487708 Ralph Campbell 2019-11-04 349 return hmm_pfns_fill(start, end, range, HMM_PFN_ERROR);
2288a9a68175ce Jason Gunthorpe 2020-03-05 350 }
d08faca018c461 Jérôme Glisse 2018-10-30 351
d08faca018c461 Jérôme Glisse 2018-10-30 352 if (pmd_devmap(pmd) || pmd_trans_huge(pmd)) {
53f5c3f489ecdd Jérôme Glisse 2018-04-10 353 /*
d2e8d551165ccb Ralph Campbell 2019-07-25 354 * No need to take pmd_lock here, even if some other thread
53f5c3f489ecdd Jérôme Glisse 2018-04-10 355 * is splitting the huge pmd we will get that event through
53f5c3f489ecdd Jérôme Glisse 2018-04-10 356 * mmu_notifier callback.
53f5c3f489ecdd Jérôme Glisse 2018-04-10 357 *
d2e8d551165ccb Ralph Campbell 2019-07-25 358 * So just read pmd value and check again it's a transparent
53f5c3f489ecdd Jérôme Glisse 2018-04-10 359 * huge or device mapping one and compute corresponding pfn
53f5c3f489ecdd Jérôme Glisse 2018-04-10 360 * values.
53f5c3f489ecdd Jérôme Glisse 2018-04-10 361 */
53f5c3f489ecdd Jérôme Glisse 2018-04-10 362 pmd = pmd_read_atomic(pmdp);
53f5c3f489ecdd Jérôme Glisse 2018-04-10 363 barrier();
53f5c3f489ecdd Jérôme Glisse 2018-04-10 364 if (!pmd_devmap(pmd) && !pmd_trans_huge(pmd))
53f5c3f489ecdd Jérôme Glisse 2018-04-10 365 goto again;
53f5c3f489ecdd Jérôme Glisse 2018-04-10 366
2288a9a68175ce Jason Gunthorpe 2020-03-05 367 return hmm_vma_handle_pmd(walk, addr, end, pfns, pmd);
53f5c3f489ecdd Jérôme Glisse 2018-04-10 368 }
53f5c3f489ecdd Jérôme Glisse 2018-04-10 369
d08faca018c461 Jérôme Glisse 2018-10-30 370 /*
d2e8d551165ccb Ralph Campbell 2019-07-25 371 * We have handled all the valid cases above ie either none, migration,
d08faca018c461 Jérôme Glisse 2018-10-30 372 * huge or transparent huge. At this point either it is a valid pmd
d08faca018c461 Jérôme Glisse 2018-10-30 373 * entry pointing to pte directory or it is a bad pmd that will not
d08faca018c461 Jérôme Glisse 2018-10-30 374 * recover.
d08faca018c461 Jérôme Glisse 2018-10-30 375 */
2288a9a68175ce Jason Gunthorpe 2020-03-05 376 if (pmd_bad(pmd)) {
a3eb13c1579ba9 Jason Gunthorpe 2020-03-27 377 if (hmm_range_need_fault(hmm_vma_walk, pfns, npages, 0))
2288a9a68175ce Jason Gunthorpe 2020-03-05 378 return -EFAULT;
d28c2c9a487708 Ralph Campbell 2019-11-04 379 return hmm_pfns_fill(start, end, range, HMM_PFN_ERROR);
2288a9a68175ce Jason Gunthorpe 2020-03-05 380 }
53f5c3f489ecdd Jérôme Glisse 2018-04-10 381
53f5c3f489ecdd Jérôme Glisse 2018-04-10 382 ptep = pte_offset_map(pmdp, addr);
2288a9a68175ce Jason Gunthorpe 2020-03-05 383 for (; addr < end; addr += PAGE_SIZE, ptep++, pfns++) {
53f5c3f489ecdd Jérôme Glisse 2018-04-10 384 int r;
53f5c3f489ecdd Jérôme Glisse 2018-04-10 385
2288a9a68175ce Jason Gunthorpe 2020-03-05 386 r = hmm_vma_handle_pte(walk, addr, end, pmdp, ptep, pfns);
53f5c3f489ecdd Jérôme Glisse 2018-04-10 387 if (r) {
dfdc22078f3f06 Jason Gunthorpe 2020-02-28 388 /* hmm_vma_handle_pte() did pte_unmap() */
53f5c3f489ecdd Jérôme Glisse 2018-04-10 389 hmm_vma_walk->last = addr;
53f5c3f489ecdd Jérôme Glisse 2018-04-10 390 return r;
53f5c3f489ecdd Jérôme Glisse 2018-04-10 391 }
da4c3c735ea4dc Jérôme Glisse 2017-09-08 392 }
da4c3c735ea4dc Jérôme Glisse 2017-09-08 393 pte_unmap(ptep - 1);
da4c3c735ea4dc Jérôme Glisse 2017-09-08 394
53f5c3f489ecdd Jérôme Glisse 2018-04-10 395 hmm_vma_walk->last = addr;
da4c3c735ea4dc Jérôme Glisse 2017-09-08 396 return 0;
da4c3c735ea4dc Jérôme Glisse 2017-09-08 397 }
da4c3c735ea4dc Jérôme Glisse 2017-09-08 398
:::::: The code at line 333 was first introduced by commit
:::::: d08faca018c4618068e54dfef4f1d71230feff38 mm/hmm: properly handle migration pmd
:::::: TO: Jérôme Glisse <jglisse(a)redhat.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f40ddce88593482919761f74910f42f4b84c004b
commit: c1d55d50139bea6bfe964458272a93dd899efb83 asm-generic/io.h: Fix sparse warnings on big-endian architectures
date: 7 months ago
config: microblaze-randconfig-s032-20210218 (attached as .config)
compiler: microblaze-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-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c1d55d50139bea6bfe964458272a93dd899efb83
# 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=microblaze
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/atm/horizon.c:1135:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[usertype] tx_addr @@ got void [noderef] __user *iov_base @@
drivers/atm/horizon.c:1135:22: sparse: expected void *[usertype] tx_addr
drivers/atm/horizon.c:1135:22: sparse: got void [noderef] __user *iov_base
drivers/atm/horizon.c:1173:49: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int [usertype] data @@ got restricted __be32 [usertype] @@
drivers/atm/horizon.c:1173:49: sparse: expected unsigned int [usertype] data
drivers/atm/horizon.c:1173:49: sparse: got restricted __be32 [usertype]
drivers/atm/horizon.c:1177:48: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int [usertype] data @@ got restricted __be32 [usertype] @@
drivers/atm/horizon.c:1177:48: sparse: expected unsigned int [usertype] data
drivers/atm/horizon.c:1177:48: sparse: got restricted __be32 [usertype]
drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
drivers/atm/horizon.c:369:10: sparse: sparse: cast to restricted __le16
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:361:10: sparse: sparse: cast to restricted __le32
drivers/atm/horizon.c:357:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/atm/horizon.c:357:9: sparse: expected unsigned int [usertype] value
drivers/atm/horizon.c:357:9: sparse: got restricted __le32 [usertype]
>> drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
drivers/atm/horizon.c:365:9: sparse: expected unsigned short [usertype] value
drivers/atm/horizon.c:365:9: sparse: got restricted __le16 [usertype]
drivers/atm/horizon.c:361:10: sparse: sparse: too many warnings
vim +365 drivers/atm/horizon.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 354
^1da177e4c3f41 Linus Torvalds 2005-04-16 355 /* Read / Write Horizon registers */
^1da177e4c3f41 Linus Torvalds 2005-04-16 356 static inline void wr_regl (const hrz_dev * dev, unsigned char reg, u32 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @357 outl (cpu_to_le32 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16 358 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 359
^1da177e4c3f41 Linus Torvalds 2005-04-16 360 static inline u32 rd_regl (const hrz_dev * dev, unsigned char reg) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 361 return le32_to_cpu (inl (dev->iobase + reg));
^1da177e4c3f41 Linus Torvalds 2005-04-16 362 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 363
^1da177e4c3f41 Linus Torvalds 2005-04-16 364 static inline void wr_regw (const hrz_dev * dev, unsigned char reg, u16 data) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @365 outw (cpu_to_le16 (data), dev->iobase + reg);
^1da177e4c3f41 Linus Torvalds 2005-04-16 366 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 367
:::::: The code at line 365 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[jgunthorpe:rdma_addr_space 206/208] drivers/infiniband/hw/mlx5/mr.c:628:6: warning: no previous prototype for function 'mlx5_mr_cache_free'
by kernel test robot
tree: https://github.com/jgunthorpe/linux rdma_addr_space
head: 332a60a1fb7cbb5217d390271fc512441d6c30ab
commit: f2276372b32b7497741ceb9814c4ac4fc55f79a1 [206/208] RDMA/mlx5: Consolidate MR destruction to mlx5_ib_dereg_mr()
config: powerpc64-randconfig-r006-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/jgunthorpe/linux/commit/f2276372b32b7497741ceb9814c4ac...
git remote add jgunthorpe https://github.com/jgunthorpe/linux
git fetch --no-tags jgunthorpe rdma_addr_space
git checkout f2276372b32b7497741ceb9814c4ac4fc55f79a1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
>> drivers/infiniband/hw/mlx5/mr.c:628:6: warning: no previous prototype for function 'mlx5_mr_cache_free' [-Wmissing-prototypes]
void mlx5_mr_cache_free(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr)
^
drivers/infiniband/hw/mlx5/mr.c:628:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mlx5_mr_cache_free(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr)
^
static
1 warning generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
vim +/mlx5_mr_cache_free +628 drivers/infiniband/hw/mlx5/mr.c
e126ba97dba9ed Eli Cohen 2013-07-07 627
49780d42dfc9ec Artemy Kovalyov 2017-01-18 @628 void mlx5_mr_cache_free(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr)
e126ba97dba9ed Eli Cohen 2013-07-07 629 {
b91e1751fbcee7 Jason Gunthorpe 2020-03-10 630 struct mlx5_cache_ent *ent = mr->cache_ent;
e126ba97dba9ed Eli Cohen 2013-07-07 631
746b5583c1a48a Eli Cohen 2013-10-23 632 spin_lock_irq(&ent->lock);
e126ba97dba9ed Eli Cohen 2013-07-07 633 list_add_tail(&mr->list, &ent->head);
7c8691a396bd20 Jason Gunthorpe 2020-03-10 634 ent->available_mrs++;
ad2d3ef46d2a88 Jason Gunthorpe 2020-03-10 635 queue_adjust_cache_locked(ent);
746b5583c1a48a Eli Cohen 2013-10-23 636 spin_unlock_irq(&ent->lock);
e126ba97dba9ed Eli Cohen 2013-07-07 637 }
e126ba97dba9ed Eli Cohen 2013-07-07 638
:::::: The code at line 628 was first introduced by commit
:::::: 49780d42dfc9ec0f4090c32ca59688449da1a1cd IB/mlx5: Expose MR cache for mlx5_ib
:::::: TO: Artemy Kovalyov <artemyko(a)mellanox.com>
:::::: CC: Doug Ledford <dledford(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
h8300-linux-ld: section .softirqentry.text LMA overlaps section .init.data LMA
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f40ddce88593482919761f74910f42f4b84c004b
commit: a8ea8bdd9df92a0e5db5b43900abb7a288b8a53e lib/mpi: Extend the MPI library
date: 5 months ago
config: h8300-randconfig-r031-20210217 (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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a8ea8bdd9df92a0e5db5b43900abb7a288b8a53e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
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 >>):
h8300-linux-ld: section .init.text LMA [00000000004595e0,0000000000486377] overlaps section .text LMA [000000000000025c,0000000000487077]
>> h8300-linux-ld: section .softirqentry.text LMA [0000000000487078,00000000004872bd] overlaps section .init.data LMA [0000000000486400,00000000004c9a7b]
h8300-linux-ld: section .data VMA [0000000000400000,00000000004595df] overlaps section .text VMA [000000000000025c,0000000000487077]
>> h8300-linux-ld: section .bss VMA [00000000004c9a80,0000000000543397] overlaps section .rodata VMA [00000000004872c0,000000000095c79f]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
arch/mips/include/asm/mach-rc32434/rb.h:15:14: error: expected identifier before '(' token
by kernel test robot
Hi Mauro,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f40ddce88593482919761f74910f42f4b84c004b
commit: 5c57ae64e8bccc693a96b4bbd9b20cc5890aeb69 media: i2c/Kconfig: use sub-menus for I2C support
date: 10 months ago
config: mips-randconfig-r014-20210218 (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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 5c57ae64e8bccc693a96b4bbd9b20cc5890aeb69
# 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 error/warnings (new ones prefixed by >>):
In file included from arch/mips/include/asm/mach-rc32434/irq.h:8,
from arch/mips/include/asm/irq.h:18,
from include/linux/irq.h:23,
from include/linux/gpio/driver.h:7,
from include/asm-generic/gpio.h:11,
from include/linux/gpio.h:62,
from drivers/media/i2c/s5k6aa.c:15:
>> arch/mips/include/asm/mach-rc32434/rb.h:15:14: error: expected identifier before '(' token
15 | #define RST (1 << 15)
| ^
drivers/media/i2c/s5k6aa.c:180:2: note: in expansion of macro 'RST'
180 | RST,
| ^~~
>> drivers/media/i2c/s5k6aa.c:235:26: error: 'GPIO_NUM' undeclared here (not in a function)
235 | struct s5k6aa_gpio gpio[GPIO_NUM];
| ^~~~~~~~
drivers/media/i2c/s5k6aa.c: In function 's5k6aa_gpio_set_value':
>> drivers/media/i2c/s5k6aa.c:812:59: warning: parameter 'id' set but not used [-Wunused-but-set-parameter]
812 | static int s5k6aa_gpio_set_value(struct s5k6aa *priv, int id, u32 val)
| ~~~~^~
drivers/media/i2c/s5k6aa.c: In function 's5k6aa_gpio_deassert':
drivers/media/i2c/s5k6aa.c:828:1: warning: control reaches end of non-void function [-Wreturn-type]
828 | }
| ^
drivers/media/i2c/s5k6aa.c: In function 's5k6aa_gpio_assert':
drivers/media/i2c/s5k6aa.c:823:1: warning: control reaches end of non-void function [-Wreturn-type]
823 | }
| ^
--
In file included from arch/mips/include/asm/mach-rc32434/irq.h:8,
from arch/mips/include/asm/irq.h:18,
from include/linux/irq.h:23,
from include/linux/gpio/driver.h:7,
from include/asm-generic/gpio.h:11,
from include/linux/gpio.h:62,
from drivers/media/i2c/s5k4ecgx.c:18:
>> arch/mips/include/asm/mach-rc32434/rb.h:15:14: error: expected identifier before '(' token
15 | #define RST (1 << 15)
| ^
drivers/media/i2c/s5k4ecgx.c:176:2: note: in expansion of macro 'RST'
176 | RST,
| ^~~
>> drivers/media/i2c/s5k4ecgx.c:193:28: error: 'GPIO_NUM' undeclared here (not in a function)
193 | struct s5k4ecgx_gpio gpio[GPIO_NUM];
| ^~~~~~~~
drivers/media/i2c/s5k4ecgx.c: In function 's5k4ecgx_gpio_set_value':
drivers/media/i2c/s5k4ecgx.c:457:63: warning: parameter 'id' set but not used [-Wunused-but-set-parameter]
457 | static int s5k4ecgx_gpio_set_value(struct s5k4ecgx *priv, int id, u32 val)
| ~~~~^~
In file included from include/linux/bits.h:23,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from include/linux/clk.h:13,
from drivers/media/i2c/s5k4ecgx.c:13:
drivers/media/i2c/s5k4ecgx.c: In function 's5k4ecgx_free_gpios':
>> include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/compiler.h:357:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
357 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:47:59: note: in expansion of macro '__must_be_array'
47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/media/i2c/s5k4ecgx.c:860:18: note: in expansion of macro 'ARRAY_SIZE'
860 | for (i = 0; i < ARRAY_SIZE(priv->gpio); i++) {
| ^~~~~~~~~~
vim +15 arch/mips/include/asm/mach-rc32434/rb.h
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 11
3c8cf8caa5b217 include/asm-mips/mach-rc32434/rb.h Florian Fainelli 2008-08-22 12 #define REGBASE 0x18000000
3c8cf8caa5b217 include/asm-mips/mach-rc32434/rb.h Florian Fainelli 2008-08-22 13 #define IDT434_REG_BASE ((volatile void *) KSEG1ADDR(REGBASE))
606a083b1e1a35 include/asm-mips/mach-rc32434/rb.h Florian Fainelli 2008-08-23 14 #define UART0BASE 0x58000
606a083b1e1a35 include/asm-mips/mach-rc32434/rb.h Florian Fainelli 2008-08-23 @15 #define RST (1 << 15)
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 16 #define DEV0BASE 0x010000
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 17 #define DEV0MASK 0x010004
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 18 #define DEV0C 0x010008
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 19 #define DEV0T 0x01000C
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 20 #define DEV1BASE 0x010010
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 21 #define DEV1MASK 0x010014
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 22 #define DEV1C 0x010018
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 23 #define DEV1TC 0x01001C
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 24 #define DEV2BASE 0x010020
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 25 #define DEV2MASK 0x010024
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 26 #define DEV2C 0x010028
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 27 #define DEV2TC 0x01002C
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 28 #define DEV3BASE 0x010030
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 29 #define DEV3MASK 0x010034
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 30 #define DEV3C 0x010038
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 31 #define DEV3TC 0x01003C
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 32 #define BTCS 0x010040
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 33 #define BTCOMPARE 0x010044
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 34 #define GPIOBASE 0x050000
1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 35 /* Offsets relative to GPIOBASE */
1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 36 #define GPIOFUNC 0x00
1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 37 #define GPIOCFG 0x04
1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 38 #define GPIOD 0x08
1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 39 #define GPIOILEVEL 0x0C
1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 40 #define GPIOISTAT 0x10
1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 41 #define GPIONMIEN 0x14
1b432840d0a474 arch/mips/include/asm/mach-rc32434/rb.h Florian Fainelli 2008-10-31 42 #define IMASK6 0x38
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 43 #define LO_WPX (1 << 0)
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 44 #define LO_ALE (1 << 1)
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 45 #define LO_CLE (1 << 2)
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 46 #define LO_CEX (1 << 3)
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 47 #define LO_FOFF (1 << 5)
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 48 #define LO_SPICS (1 << 6)
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 49 #define LO_ULED (1 << 7)
73b4390fb23456 include/asm-mips/mach-rc32434/rb.h Ralf Baechle 2008-07-16 50
:::::: The code at line 15 was first introduced by commit
:::::: 606a083b1e1a357cb66454e4581b80f1a67d8368 MIPS: RB532: Cleanup the headers again
:::::: TO: Florian Fainelli <florian(a)openwrt.org>
:::::: CC: Ralf Baechle <ralf(a)linux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[freescale-fslc:pr/261 8321/17088] drivers/spi/spi-nxp-fspi.c:1193:12: error: use of undeclared identifier 'nxp_fspi_pm_ops'; did you mean
by kernel test robot
tree: https://github.com/Freescale/linux-fslc pr/261
head: ce0c0d68c7bb912d832bb73b60cdd380a3d8b966
commit: 2c4cf9ce2fcf9581d6625025b76ae73f77dde922 [8321/17088] MLK-23644: spi: spi-nxp-fspi: enable runtime pm for fspi
config: x86_64-randconfig-a004-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# https://github.com/Freescale/linux-fslc/commit/2c4cf9ce2fcf9581d6625025b7...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/261
git checkout 2c4cf9ce2fcf9581d6625025b76ae73f77dde922
# 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 errors (new ones prefixed by >>):
>> drivers/spi/spi-nxp-fspi.c:1193:12: error: use of undeclared identifier 'nxp_fspi_pm_ops'; did you mean 'nxp_fspi_mem_ops'?
.pm = &nxp_fspi_pm_ops,
^~~~~~~~~~~~~~~
nxp_fspi_mem_ops
drivers/spi/spi-nxp-fspi.c:997:44: note: 'nxp_fspi_mem_ops' declared here
static const struct spi_controller_mem_ops nxp_fspi_mem_ops = {
^
>> drivers/spi/spi-nxp-fspi.c:1193:11: error: incompatible pointer types initializing 'const struct dev_pm_ops *' with an expression of type 'const struct spi_controller_mem_ops *' [-Werror,-Wincompatible-pointer-types]
.pm = &nxp_fspi_pm_ops,
^~~~~~~~~~~~~~~~
2 errors generated.
vim +1193 drivers/spi/spi-nxp-fspi.c
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1188
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1189 static struct platform_driver nxp_fspi_driver = {
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1190 .driver = {
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1191 .name = "nxp-fspi",
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1192 .of_match_table = nxp_fspi_dt_ids,
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 @1193 .pm = &nxp_fspi_pm_ops,
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1194 },
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1195 .probe = nxp_fspi_probe,
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1196 .remove = nxp_fspi_remove,
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1197 };
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1198 module_platform_driver(nxp_fspi_driver);
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 1199
:::::: The code at line 1193 was first introduced by commit
:::::: a5356aef6a907c2e2aed0caaa2b88b6021394471 spi: spi-mem: Add driver for NXP FlexSPI controller
:::::: TO: Yogesh Narayan Gaur <yogeshnarayan.gaur(a)nxp.com>
:::::: CC: Mark Brown <broonie(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[jgunthorpe:rdma_addr_space 206/208] drivers/infiniband/hw/mlx5/mr.c:628:6: warning: no previous prototype for 'mlx5_mr_cache_free'
by kernel test robot
tree: https://github.com/jgunthorpe/linux rdma_addr_space
head: 332a60a1fb7cbb5217d390271fc512441d6c30ab
commit: f2276372b32b7497741ceb9814c4ac4fc55f79a1 [206/208] RDMA/mlx5: Consolidate MR destruction to mlx5_ib_dereg_mr()
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/jgunthorpe/linux/commit/f2276372b32b7497741ceb9814c4ac...
git remote add jgunthorpe https://github.com/jgunthorpe/linux
git fetch --no-tags jgunthorpe rdma_addr_space
git checkout f2276372b32b7497741ceb9814c4ac4fc55f79a1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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/infiniband/hw/mlx5/mr.c:628:6: warning: no previous prototype for 'mlx5_mr_cache_free' [-Wmissing-prototypes]
628 | void mlx5_mr_cache_free(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr)
| ^~~~~~~~~~~~~~~~~~
vim +/mlx5_mr_cache_free +628 drivers/infiniband/hw/mlx5/mr.c
e126ba97dba9ed Eli Cohen 2013-07-07 627
49780d42dfc9ec Artemy Kovalyov 2017-01-18 @628 void mlx5_mr_cache_free(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr)
e126ba97dba9ed Eli Cohen 2013-07-07 629 {
b91e1751fbcee7 Jason Gunthorpe 2020-03-10 630 struct mlx5_cache_ent *ent = mr->cache_ent;
e126ba97dba9ed Eli Cohen 2013-07-07 631
746b5583c1a48a Eli Cohen 2013-10-23 632 spin_lock_irq(&ent->lock);
e126ba97dba9ed Eli Cohen 2013-07-07 633 list_add_tail(&mr->list, &ent->head);
7c8691a396bd20 Jason Gunthorpe 2020-03-10 634 ent->available_mrs++;
ad2d3ef46d2a88 Jason Gunthorpe 2020-03-10 635 queue_adjust_cache_locked(ent);
746b5583c1a48a Eli Cohen 2013-10-23 636 spin_unlock_irq(&ent->lock);
e126ba97dba9ed Eli Cohen 2013-07-07 637 }
e126ba97dba9ed Eli Cohen 2013-07-07 638
:::::: The code at line 628 was first introduced by commit
:::::: 49780d42dfc9ec0f4090c32ca59688449da1a1cd IB/mlx5: Expose MR cache for mlx5_ib
:::::: TO: Artemy Kovalyov <artemyko(a)mellanox.com>
:::::: CC: Doug Ledford <dledford(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months