lkml.org 
[lkml]   [2021]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[linux-stable-rc:linux-5.10.y 4013/4144] drivers/ata/pata_cs5520.c:98:19: warning: initialized field overwritten
Hi Julian,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head: 5f894e4a8758db7af6eeb43311c0e9314871b031
commit: 955da2b5cd9855b186f14b71ddb1703d5144193c [4013/4144] lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS
config: csky-buildonly-randconfig-r004-20210812 (attached as .config)
compiler: csky-linux-gcc (GCC) 10.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
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=955da2b5cd9855b186f14b71ddb1703d5144193c
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.10.y
git checkout 955da2b5cd9855b186f14b71ddb1703d5144193c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=csky

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/ata/pata_cs5520.c:98:19: warning: initialized field overwritten [-Woverride-init]
98 | .sg_tablesize = LIBATA_DUMB_MAX_PRD,
| ^~~~~~~~~~~~~~~~~~~
drivers/ata/pata_cs5520.c:98:19: note: (near initialization for 'cs5520_sht.sg_tablesize')
--
In function 'sky2_name',
inlined from 'sky2_probe.part.0' at drivers/net/ethernet/marvell/sky2.c:5049:2:
>> drivers/net/ethernet/marvell/sky2.c:4903:3: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation]
4903 | strncpy(buf, name[chipid - CHIP_ID_YUKON_XL], sz);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT


vim +98 drivers/ata/pata_cs5520.c

669a5db411d85a Jeff Garzik 2006-08-29 95
669a5db411d85a Jeff Garzik 2006-08-29 96 static struct scsi_host_template cs5520_sht = {
68d1d07b510bb5 Tejun Heo 2008-03-25 97 ATA_BMDMA_SHT(DRV_NAME),
d26fc9551a15fd Alan Cox 2007-07-06 @98 .sg_tablesize = LIBATA_DUMB_MAX_PRD,
669a5db411d85a Jeff Garzik 2006-08-29 99 };
669a5db411d85a Jeff Garzik 2006-08-29 100

:::::: The code at line 98 was first introduced by commit
:::::: d26fc9551a15fdad0d5de8376a78816b8af44f00 libata: Support chips with 64K PRD quirk

:::::: TO: Alan Cox <alan@lxorguk.ukuu.org.uk>
:::::: CC: Jeff Garzik <jeff@garzik.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-08-12 16:48    [W:0.052 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site