[dm-devel] [dm:dm-5.8 55/57] include/linux/device-mapper.h:626:2: error: #endif without #if

kbuild test robot lkp at intel.com
Thu May 14 21:15:04 UTC 2020


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 at 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 at ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds at ppc970.osdl.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 53857 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20200515/0391b917/attachment.gz>


More information about the dm-devel mailing list