From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [dm:dm-5.8 55/57] include/linux/device-mapper.h:626:2: error: #endif without #if Date: Thu, 14 May 2020 17:33:26 -0400 Message-ID: <20200514213326.GA661@redhat.com> References: <202005150550.wsVhyFma%lkp@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <202005150550.wsVhyFma%lkp@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com Content-Disposition: inline To: kbuild test robot Cc: dm-devel@redhat.com, kbuild-all@lists.01.org List-Id: dm-devel.ids Sorry about that, now fixed. On Thu, May 14 2020 at 5:15pm -0400, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git dm-5.8 > head: 2e374fada9514fe10561a41838a52dc05f0317b4 > commit: 6e1746c86200d4cd2562abe0a4b2892e3be04271 [55/57] dm: use dynamic debug instead of compile-time config option > config: sh-allmodconfig (attached as .config) > compiler: sh4-linux-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 6e1746c86200d4cd2562abe0a4b2892e3be04271 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sh > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kbuild test robot > > All errors (new ones prefixed by >>, old ones prefixed by <<): > > In file included from drivers/md/dm.h:14, > from drivers/md/dm-uevent.c:14: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > -- > In file included from drivers/md/dm.h:14, > from drivers/md/dm-linear.c:7: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > In file included from drivers/md/dm-linear.c:14: > >> include/linux/device-mapper.h:616:24: error: redefinition of 'to_sector' > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-linear.c:7: > include/linux/device-mapper.h:616:24: note: previous definition of 'to_sector' was here > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm-linear.c:14: > >> include/linux/device-mapper.h:621:29: error: redefinition of 'to_bytes' > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-linear.c:7: > include/linux/device-mapper.h:621:29: note: previous definition of 'to_bytes' was here > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm-linear.c:14: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > -- > In file included from drivers/md/dm-snap.c:8: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-snap.c:22: > >> include/linux/device-mapper.h:616:24: error: redefinition of 'to_sector' > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm-snap.c:8: > include/linux/device-mapper.h:616:24: note: previous definition of 'to_sector' was here > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-snap.c:22: > >> include/linux/device-mapper.h:621:29: error: redefinition of 'to_bytes' > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm-snap.c:8: > include/linux/device-mapper.h:621:29: note: previous definition of 'to_bytes' was here > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-snap.c:22: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > In file included from drivers/md/dm-exception-store.h:15, > from drivers/md/dm-snap.c:24: > >> include/linux/device-mapper.h:616:24: error: redefinition of 'to_sector' > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-snap.c:22: > include/linux/device-mapper.h:616:24: note: previous definition of 'to_sector' was here > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm-exception-store.h:15, > from drivers/md/dm-snap.c:24: > >> include/linux/device-mapper.h:621:29: error: redefinition of 'to_bytes' > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-snap.c:22: > include/linux/device-mapper.h:621:29: note: previous definition of 'to_bytes' was here > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm-exception-store.h:15, > from drivers/md/dm-snap.c:24: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > -- > In file included from drivers/md/dm-zoned.h:13, > from drivers/md/dm-zoned-metadata.c:8: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > drivers/md/dm-zoned-metadata.c: In function 'dmz_write_sb': > drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid' [-Werror=implicit-function-declaration] > 779 | export_uuid(sb->dmz_uuid, &zmd->uuid); > | ^~~~~~~~~~~ > drivers/md/dm-zoned-metadata.c: In function 'dmz_check_sb': > drivers/md/dm-zoned-metadata.c:1015:3: error: implicit declaration of function 'import_uuid' [-Werror=implicit-function-declaration] > 1015 | import_uuid(&sb_uuid, sb->dmz_uuid); > | ^~~~~~~~~~~ > cc1: some warnings being treated as errors > > vim +626 include/linux/device-mapper.h > > 56a67df7660396 Mike Snitzer 2010-08-12 615 > 0bdb50c531f737 NeilBrown 2019-01-06 @616 static inline sector_t to_sector(unsigned long long n) > 0da336e5fab75c Alasdair G Kergon 2008-04-24 617 { > 0da336e5fab75c Alasdair G Kergon 2008-04-24 618 return (n >> SECTOR_SHIFT); > 0da336e5fab75c Alasdair G Kergon 2008-04-24 619 } > 0da336e5fab75c Alasdair G Kergon 2008-04-24 620 > 0da336e5fab75c Alasdair G Kergon 2008-04-24 @621 static inline unsigned long to_bytes(sector_t n) > 0da336e5fab75c Alasdair G Kergon 2008-04-24 622 { > 0da336e5fab75c Alasdair G Kergon 2008-04-24 623 return (n << SECTOR_SHIFT); > 0da336e5fab75c Alasdair G Kergon 2008-04-24 624 } > 0da336e5fab75c Alasdair G Kergon 2008-04-24 625 > ^1da177e4c3f41 Linus Torvalds 2005-04-16 @626 #endif /* _LINUX_DEVICE_MAPPER_H */ > > :::::: The code at line 626 was first introduced by commit > :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 > > :::::: TO: Linus Torvalds > :::::: CC: Linus Torvalds > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6252466037195624204==" MIME-Version: 1.0 From: Mike Snitzer To: kbuild-all@lists.01.org Subject: Re: [dm:dm-5.8 55/57] include/linux/device-mapper.h:626:2: error: #endif without #if Date: Thu, 14 May 2020 17:33:26 -0400 Message-ID: <20200514213326.GA661@redhat.com> In-Reply-To: <202005150550.wsVhyFma%lkp@intel.com> List-Id: --===============6252466037195624204== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sorry about that, now fixed. On Thu, May 14 2020 at 5:15pm -0400, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/lin= ux-dm.git dm-5.8 > head: 2e374fada9514fe10561a41838a52dc05f0317b4 > commit: 6e1746c86200d4cd2562abe0a4b2892e3be04271 [55/57] dm: use dynamic = debug instead of compile-time config option > config: sh-allmodconfig (attached as .config) > compiler: sh4-linux-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 6e1746c86200d4cd2562abe0a4b2892e3be04271 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=3D$HOME/0day GCC_VERSION=3D9.3.0 make.cross= ARCH=3Dsh = > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kbuild test robot > = > All errors (new ones prefixed by >>, old ones prefixed by <<): > = > In file included from drivers/md/dm.h:14, > from drivers/md/dm-uevent.c:14: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > -- > In file included from drivers/md/dm.h:14, > from drivers/md/dm-linear.c:7: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > In file included from drivers/md/dm-linear.c:14: > >> include/linux/device-mapper.h:616:24: error: redefinition of 'to_secto= r' > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-linear.c:7: > include/linux/device-mapper.h:616:24: note: previous definition of 'to_se= ctor' was here > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm-linear.c:14: > >> include/linux/device-mapper.h:621:29: error: redefinition of 'to_bytes' > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-linear.c:7: > include/linux/device-mapper.h:621:29: note: previous definition of 'to_by= tes' was here > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm-linear.c:14: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > -- > In file included from drivers/md/dm-snap.c:8: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-snap.c:22: > >> include/linux/device-mapper.h:616:24: error: redefinition of 'to_secto= r' > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm-snap.c:8: > include/linux/device-mapper.h:616:24: note: previous definition of 'to_se= ctor' was here > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-snap.c:22: > >> include/linux/device-mapper.h:621:29: error: redefinition of 'to_bytes' > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm-snap.c:8: > include/linux/device-mapper.h:621:29: note: previous definition of 'to_by= tes' was here > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-snap.c:22: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > In file included from drivers/md/dm-exception-store.h:15, > from drivers/md/dm-snap.c:24: > >> include/linux/device-mapper.h:616:24: error: redefinition of 'to_secto= r' > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-snap.c:22: > include/linux/device-mapper.h:616:24: note: previous definition of 'to_se= ctor' was here > 616 | static inline sector_t to_sector(unsigned long long n) > | ^~~~~~~~~ > In file included from drivers/md/dm-exception-store.h:15, > from drivers/md/dm-snap.c:24: > >> include/linux/device-mapper.h:621:29: error: redefinition of 'to_bytes' > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm.h:14, > from drivers/md/dm-snap.c:22: > include/linux/device-mapper.h:621:29: note: previous definition of 'to_by= tes' was here > 621 | static inline unsigned long to_bytes(sector_t n) > | ^~~~~~~~ > In file included from drivers/md/dm-exception-store.h:15, > from drivers/md/dm-snap.c:24: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > -- > In file included from drivers/md/dm-zoned.h:13, > from drivers/md/dm-zoned-metadata.c:8: > >> include/linux/device-mapper.h:626:2: error: #endif without #if > 626 | #endif /* _LINUX_DEVICE_MAPPER_H */ > | ^~~~~ > drivers/md/dm-zoned-metadata.c: In function 'dmz_write_sb': > drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of func= tion 'export_uuid' [-Werror=3Dimplicit-function-declaration] > 779 | export_uuid(sb->dmz_uuid, &zmd->uuid); > | ^~~~~~~~~~~ > drivers/md/dm-zoned-metadata.c: In function 'dmz_check_sb': > drivers/md/dm-zoned-metadata.c:1015:3: error: implicit declaration of fun= ction 'import_uuid' [-Werror=3Dimplicit-function-declaration] > 1015 | import_uuid(&sb_uuid, sb->dmz_uuid); > | ^~~~~~~~~~~ > cc1: some warnings being treated as errors > = > vim +626 include/linux/device-mapper.h > = > 56a67df7660396 Mike Snitzer 2010-08-12 615 = > 0bdb50c531f737 NeilBrown 2019-01-06 @616 static inline sector_t = to_sector(unsigned long long n) > 0da336e5fab75c Alasdair G Kergon 2008-04-24 617 { > 0da336e5fab75c Alasdair G Kergon 2008-04-24 618 return (n >> SECTOR_SH= IFT); > 0da336e5fab75c Alasdair G Kergon 2008-04-24 619 } > 0da336e5fab75c Alasdair G Kergon 2008-04-24 620 = > 0da336e5fab75c Alasdair G Kergon 2008-04-24 @621 static inline unsigned = long to_bytes(sector_t n) > 0da336e5fab75c Alasdair G Kergon 2008-04-24 622 { > 0da336e5fab75c Alasdair G Kergon 2008-04-24 623 return (n << SECTOR_SH= IFT); > 0da336e5fab75c Alasdair G Kergon 2008-04-24 624 } > 0da336e5fab75c Alasdair G Kergon 2008-04-24 625 = > ^1da177e4c3f41 Linus Torvalds 2005-04-16 @626 #endif /* _LINUX_DEVICE= _MAPPER_H */ > = > :::::: The code at line 626 was first introduced by commit > :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 > = > :::::: TO: Linus Torvalds > :::::: CC: Linus Torvalds > = > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6252466037195624204==--