All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm:dm-5.8 55/57] include/linux/device-mapper.h:626:2: error: #endif without #if
@ 2020-05-14 21:15 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-05-14 21:15 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: dm-devel, kbuild-all, Mike Snitzer

[-- Attachment #1: Type: text/plain, Size: 6845 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 53857 bytes --]

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dm:dm-5.8 55/57] include/linux/device-mapper.h:626:2: error: #endif without #if
@ 2020-05-14 21:15 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-05-14 21:15 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6987 bytes --]

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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 53857 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dm:dm-5.8 55/57] include/linux/device-mapper.h:626:2: error: #endif without #if
  2020-05-14 21:15 ` kbuild test robot
@ 2020-05-14 21:33   ` Mike Snitzer
  -1 siblings, 0 replies; 4+ messages in thread
From: Mike Snitzer @ 2020-05-14 21:33 UTC (permalink / raw)
  To: kbuild test robot; +Cc: dm-devel, kbuild-all

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dm:dm-5.8 55/57] include/linux/device-mapper.h:626:2: error: #endif without #if
@ 2020-05-14 21:33   ` Mike Snitzer
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Snitzer @ 2020-05-14 21:33 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 7393 bytes --]

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(a)lists.01.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-14 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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:15 ` kbuild test robot
2020-05-14 21:33 ` Mike Snitzer
2020-05-14 21:33   ` Mike Snitzer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.