[linux-nvme:nvme-5.9-rc 14/14] include/uapi/linux/swab.h:120:2: warning: 'buflen' is used uninitialized in this function
kernel test robot
lkp at intel.com
Thu Aug 27 15:38:14 EDT 2020
tree: git://git.infradead.org/nvme.git nvme-5.9-rc
head: cd83b396e350d2f13bd2ad81565255f77a13aa3a
commit: cd83b396e350d2f13bd2ad81565255f77a13aa3a [14/14] nvme: fix error handling in nvme_ns_report_zones
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-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 cd83b396e350d2f13bd2ad81565255f77a13aa3a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/swab.h:5,
from include/uapi/linux/byteorder/big_endian.h:13,
from include/linux/byteorder/big_endian.h:5,
from arch/sparc/include/uapi/asm/byteorder.h:5,
from arch/sparc/include/asm/bitops_64.h:16,
from arch/sparc/include/asm/bitops.h:5,
from include/linux/bitops.h:29,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/sparc/include/asm/bug.h:25,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from arch/sparc/include/asm/current.h:15,
from include/linux/sched.h:12,
from include/linux/blkdev.h:5,
from drivers/nvme/host/zns.c:6:
drivers/nvme/host/zns.c: In function 'nvme_ns_report_zones':
>> include/uapi/linux/swab.h:120:2: warning: 'buflen' is used uninitialized in this function [-Wuninitialized]
120 | __fswab32(x))
| ^~~~~~~~~
git remote add linux-nvme git://git.infradead.org/nvme.git
git fetch --no-tags linux-nvme nvme-5.9-rc
git checkout cd83b396e350d2f13bd2ad81565255f77a13aa3a
vim +/buflen +120 include/uapi/linux/swab.h
607ca46e97a1b6 David Howells 2012-10-13 109
607ca46e97a1b6 David Howells 2012-10-13 110 /**
607ca46e97a1b6 David Howells 2012-10-13 111 * __swab32 - return a byteswapped 32-bit value
607ca46e97a1b6 David Howells 2012-10-13 112 * @x: value to byteswap
607ca46e97a1b6 David Howells 2012-10-13 113 */
7322dd755e7dd3 Arnd Bergmann 2016-05-05 114 #ifdef __HAVE_BUILTIN_BSWAP32__
7322dd755e7dd3 Arnd Bergmann 2016-05-05 115 #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
7322dd755e7dd3 Arnd Bergmann 2016-05-05 116 #else
607ca46e97a1b6 David Howells 2012-10-13 117 #define __swab32(x) \
607ca46e97a1b6 David Howells 2012-10-13 118 (__builtin_constant_p((__u32)(x)) ? \
607ca46e97a1b6 David Howells 2012-10-13 119 ___constant_swab32(x) : \
607ca46e97a1b6 David Howells 2012-10-13 @120 __fswab32(x))
7322dd755e7dd3 Arnd Bergmann 2016-05-05 121 #endif
607ca46e97a1b6 David Howells 2012-10-13 122
:::::: The code at line 120 was first introduced by commit
:::::: 607ca46e97a1b6594b29647d98a32d545c24bdff UAPI: (Scripted) Disintegrate include/linux
:::::: TO: David Howells <dhowells at redhat.com>
:::::: CC: David Howells <dhowells at redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 66748 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-nvme/attachments/20200828/7c3b332a/attachment-0001.gz>
More information about the Linux-nvme
mailing list