From: Mike Snitzer <snitzer@redhat.com>
To: kbuild test robot <lkp@intel.com>
Cc: dm-devel@redhat.com, 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 [thread overview]
Message-ID: <20200514213326.GA661@redhat.com> (raw)
In-Reply-To: <202005150550.wsVhyFma%lkp@intel.com>
Sorry about that, now fixed.
On Thu, May 14 2020 at 5:15pm -0400,
kbuild test robot <lkp@intel.com> 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 <lkp@intel.com>
>
> 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 <torvalds@ppc970.osdl.org>
> :::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
prev parent reply other threads:[~2020-05-14 21:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-14 21:15 [dm:dm-5.8 55/57] include/linux/device-mapper.h:626:2: error: #endif without #if kbuild test robot
2020-05-14 21:33 ` Mike Snitzer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200514213326.GA661@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=lkp@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox