[linux-next:master 1200/1892] net/core/sock_diag.c:210:17: sparse: sparse: Using plain integer as NULL pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401252355.PhD9im8z-lkp@xxxxxxxxx/

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux