[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202411091538.PGSTqUBi-lkp@intel.com>
Date: Sat, 9 Nov 2024 16:00:08 +0800
From: kernel test robot <lkp@...el.com>
To: Eric Dumazet <edumazet@...gle.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Paolo Abeni <pabeni@...hat.com>,
Guillaume Nault <gnault@...hat.com>,
Kuniyuki Iwashima <kuniyu@...zon.com>,
Willem de Bruijn <willemb@...gle.com>
Subject: net/ipv4/inet_diag.c:1511:17: sparse: sparse: Using plain integer as
NULL pointer
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: da4373fbcf006deda90e5e6a87c499e0ff747572
commit: 223f55196bbdb182a9b8de6108a0834b5e5e832e inet_diag: allow concurrent operations
date: 10 months ago
config: hexagon-randconfig-r112-20241109 (https://download.01.org/0day-ci/archive/20241109/202411091538.PGSTqUBi-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713)
reproduce: (https://download.01.org/0day-ci/archive/20241109/202411091538.PGSTqUBi-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411091538.PGSTqUBi-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> net/ipv4/inet_diag.c:1511:17: sparse: sparse: Using plain integer as NULL pointer
vim +1511 net/ipv4/inet_diag.c
1503
1504 int inet_diag_register(const struct inet_diag_handler *h)
1505 {
1506 const __u16 type = h->idiag_type;
1507
1508 if (type >= IPPROTO_MAX)
1509 return -EINVAL;
1510
> 1511 return !cmpxchg((const struct inet_diag_handler **)&inet_diag_table[type],
1512 NULL, h) ? 0 : -EEXIST;
1513 }
1514 EXPORT_SYMBOL_GPL(inet_diag_register);
1515
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists