From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6800920894919627820==" MIME-Version: 1.0 From: Greg Kroah-Hartman To: kbuild-all@lists.01.org Subject: Re: [staging:staging-testing 222/222] drivers/ide/ide-gd.c:362:10: sparse: warning: Initializer entry defined twice Date: Wed, 18 Mar 2020 07:08:31 +0100 Message-ID: <20200318060831.GA1595360@kroah.com> In-Reply-To: <202003180724.owQ2TGg8%lkp@intel.com> List-Id: --===============6800920894919627820== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Mar 18, 2020 at 07:24:29AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.gi= t staging-testing > head: ba839b32d6f76a68919ed838e9375c47ca05a91a > commit: ba839b32d6f76a68919ed838e9375c47ca05a91a [222/222] staging: media= : hantro: remove parentheses > reproduce: > # apt-get install sparse > # sparse version: = > git checkout ba839b32d6f76a68919ed838e9375c47ca05a91a > make ARCH=3Dx86_64 allmodconfig > make C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' > = > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot > = > All warnings (new ones prefixed by >>): > = > >> drivers/ide/ide-gd.c:362:10: sparse: warning: Initializer entry define= d twice > drivers/ide/ide-gd.c:364:10: sparse: also defined here > -- > >> drivers/scsi/sr.c:689:10: sparse: warning: Initializer entry defined t= wice > drivers/scsi/sr.c:691:10: sparse: also defined here > -- > >> drivers/block/paride/pcd.c:277:10: sparse: warning: Initializer entry = defined twice > drivers/block/paride/pcd.c:279:10: sparse: also defined here > -- > >> sound/soc/codecs/rt1015.c:844:24: sparse: warning: symbol 'rt1015_aif_= dai_ops' was not declared. Should it be static? > >> sound/soc/codecs/rt1015.c:849:27: sparse: warning: symbol 'rt1015_dai'= was not declared. Should it be static? > -- > >> net/netfilter/nft_set_pipapo.c:739:6: sparse: warning: symbol 'nft_pip= apo_get' was not declared. Should it be static? > = > vim +362 drivers/ide/ide-gd.c > = > c103d6ee69f93e Arnd Bergmann 2019-03-15 357 = > 83d5cde47dedf0 Alexey Dobriyan 2009-09-21 358 static const st= ruct block_device_operations ide_gd_ops =3D { > 5fef0e5c028394 Bartlomiej Zolnierkiewicz 2008-10-17 359 .owner =3D T= HIS_MODULE, > 6e9624b8caec29 Arnd Bergmann 2010-08-07 360 .open =3D id= e_gd_unlocked_open, > b2f21e057dfbaa Al Viro 2008-10-16 361 .release =3D = ide_gd_release, > 8a6cfeb6deca3a Arnd Bergmann 2010-07-08 @362 .ioctl =3D i= de_gd_ioctl, > c103d6ee69f93e Arnd Bergmann 2019-03-15 363 #ifdef CONFIG_C= OMPAT > c103d6ee69f93e Arnd Bergmann 2019-03-15 364 .ioctl =3D i= de_gd_compat_ioctl, > c103d6ee69f93e Arnd Bergmann 2019-03-15 365 #endif > 5fef0e5c028394 Bartlomiej Zolnierkiewicz 2008-10-17 366 .getgeo =3D = ide_gd_getgeo, > 5b03a1b140e13a Tejun Heo 2011-03-09 367 .check_events = =3D ide_gd_check_events, > c3e33e043f5e9c Tejun Heo 2010-05-15 368 .unlock_native= _capacity =3D ide_gd_unlock_native_capacity, > 5fef0e5c028394 Bartlomiej Zolnierkiewicz 2008-10-17 369 .revalidate_di= sk =3D ide_gd_revalidate_disk > 5fef0e5c028394 Bartlomiej Zolnierkiewicz 2008-10-17 370 }; > 5fef0e5c028394 Bartlomiej Zolnierkiewicz 2008-10-17 371 = > = > :::::: The code at line 362 was first introduced by commit > :::::: 8a6cfeb6deca3a8fefd639d898b0d163c0b5d368 block: push down BKL into= .locked_ioctl Why is 0-day starting to spit out sparse warnings for things that have nothing to do with the specific patch, or tree? False-positive errors are the worst, please fix. greg k-h --===============6800920894919627820==--