[arm:cex7 88/106] arch/sh/include/asm/io.h:32:43: warning: 'px_is' may be used uninitialized in this function
From: kbuild test robot <hidden>
Date: 2020-05-27 01:03:21
Also in:
oe-kbuild-all
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git cex7
head: 96bd73e4644e76befe9ab998e070a679ae08388c
commit: 04d1ec3ed831580aadbdac12b36b6158ad80dad4 [88/106] ahci: qoriq: workaround for errata A-379364 on lx2160a
config: sh-allmodconfig (attached as .config)
compiler: sh4-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 04d1ec3ed831580aadbdac12b36b6158ad80dad4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <redacted>
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from drivers/ata/ahci_qoriq.c:19:
drivers/ata/ahci.h:384:16: warning: initialized field overwritten [-Woverride-init]
384 | .can_queue = AHCI_MAX_CMDS, | ^~~~~~~~~~~~~
drivers/ata/ahci_qoriq.c:304:2: note: in expansion of macro 'AHCI_SHT'
304 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:384:16: note: (near initialization for 'ahci_qoriq_sht.can_queue')
384 | .can_queue = AHCI_MAX_CMDS, | ^~~~~~~~~~~~~
drivers/ata/ahci_qoriq.c:304:2: note: in expansion of macro 'AHCI_SHT'
304 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:388:17: warning: initialized field overwritten [-Woverride-init]
388 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/ahci_qoriq.c:304:2: note: in expansion of macro 'AHCI_SHT'
304 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
drivers/ata/ahci.h:388:17: note: (near initialization for 'ahci_qoriq_sht.sdev_attrs')
388 | .sdev_attrs = ahci_sdev_attrs
| ^~~~~~~~~~~~~~~
drivers/ata/ahci_qoriq.c:304:2: note: in expansion of macro 'AHCI_SHT'
304 | AHCI_SHT(DRV_NAME),
| ^~~~~~~~
In file included from include/linux/io.h:13,
from include/linux/of_address.h:7,
from drivers/ata/ahci_qoriq.c:14:
drivers/ata/ahci_qoriq.c: In function 'ahci_qoriq_hardreset':quoted
arch/sh/include/asm/io.h:32:43: warning: 'px_is' may be used uninitialized in this function [-Wmaybe-uninitialized]
32 | #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = (v)) | ^ drivers/ata/ahci_qoriq.c:229:14: note: 'px_is' was declared here 229 | u32 px_cmd, px_is, px_val; | ^~~~~ In file included from include/linux/io.h:13, from include/linux/of_address.h:7, from drivers/ata/ahci_qoriq.c:14:
quoted
arch/sh/include/asm/io.h:32:43: warning: 'px_cmd' may be used uninitialized in this function [-Wmaybe-uninitialized]
32 | #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = (v)) | ^ drivers/ata/ahci_qoriq.c:229:6: note: 'px_cmd' was declared here 229 | u32 px_cmd, px_is, px_val; | ^~~~~~ vim +/px_is +32 arch/sh/include/asm/io.h b66c1a3919abb4 include/asm-sh/io.h Paul Mundt 2006-01-16 29 14866543ad2201 arch/sh/include/asm/io.h Paul Mundt 2008-10-04 30 #define __raw_writeb(v,a) (__chk_io_ptr(a), *(volatile u8 __force *)(a) = (v)) 14866543ad2201 arch/sh/include/asm/io.h Paul Mundt 2008-10-04 31 #define __raw_writew(v,a) (__chk_io_ptr(a), *(volatile u16 __force *)(a) = (v)) 14866543ad2201 arch/sh/include/asm/io.h Paul Mundt 2008-10-04 @32 #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = (v)) 14866543ad2201 arch/sh/include/asm/io.h Paul Mundt 2008-10-04 33 #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v)) 14866543ad2201 arch/sh/include/asm/io.h Paul Mundt 2008-10-04 34 :::::: The code at line 32 was first introduced by commit :::::: 14866543ad22014a0b12e10657a917eb6b487248 sh: More I/O routine overhauling. :::::: TO: Paul Mundt [off-list ref] :::::: CC: Paul Mundt [off-list ref] --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Attachments
- .config.gz [application/gzip] 53892 bytes
- (unnamed) [text/plain] 176 bytes · preview