linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 1200/1892] net/core/sock_diag.c:210:17: sparse: sparse: Using plain integer as NULL pointer
@ 2024-01-25 16:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-25 16:06 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: oe-kbuild-all, Linux Memory Management List, Paolo Abeni,
	Guillaume Nault, Kuniyuki Iwashima, Willem de Bruijn

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   01af33cc9894b4489fb68fa35c40e9fe85df63dc
commit: 1d55a6974756cf3979efd2cc68bcece611a44053 [1200/1892] sock_diag: allow concurrent operations
config: hexagon-randconfig-r121-20240125 (https://download.01.org/0day-ci/archive/20240125/202401252355.PhD9im8z-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce: (https://download.01.org/0day-ci/archive/20240125/202401252355.PhD9im8z-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401252355.PhD9im8z-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> net/core/sock_diag.c:210:17: sparse: sparse: Using plain integer as NULL pointer

vim +210 net/core/sock_diag.c

   202	
   203	int sock_diag_register(const struct sock_diag_handler *hndl)
   204	{
   205		int family = hndl->family;
   206	
   207		if (family >= AF_MAX)
   208			return -EINVAL;
   209	
 > 210		return !cmpxchg((const struct sock_diag_handler **)
   211					&sock_diag_handlers[family],
   212				NULL, hndl) ? 0 : -EBUSY;
   213	}
   214	EXPORT_SYMBOL_GPL(sock_diag_register);
   215	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-25 16:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-25 16:06 [linux-next:master 1200/1892] net/core/sock_diag.c:210:17: sparse: sparse: Using plain integer as NULL pointer kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox