include/linux/unaligned/le_memmove.h:7:19: error: redefinition of 'get_unaligned_le16'

From: kbuild test robot
Date: Mon Feb 10 2020 - 19:31:37 EST


Hi Stephen,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
commit: 60fb8a8e93ca94e752a509bb3f6f74068ccca739 platform/chrome: wilco_ec: Allow wilco to be compiled in COMPILE_TEST
date: 3 weeks ago
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.5.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 60fb8a8e93ca94e752a509bb3f6f74068ccca739
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=ia64

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from drivers/platform/chrome/wilco_ec/properties.c:8:0:
>> include/linux/unaligned/le_memmove.h:7:19: error: redefinition of 'get_unaligned_le16'
static inline u16 get_unaligned_le16(const void *p)
^~~~~~~~~~~~~~~~~~
In file included from arch/ia64/include/asm/unaligned.h:5:0,
from arch/ia64/include/asm/io.h:23,
from arch/ia64/include/asm/smp.h:21,
from include/linux/smp.h:68,
from include/linux/percpu.h:7,
from include/linux/arch_topology.h:9,
from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/platform_data/wilco-ec.h:11,
from drivers/platform/chrome/wilco_ec/properties.c:6:
include/linux/unaligned/le_struct.h:7:19: note: previous definition of 'get_unaligned_le16' was here
static inline u16 get_unaligned_le16(const void *p)
^~~~~~~~~~~~~~~~~~
In file included from drivers/platform/chrome/wilco_ec/properties.c:8:0:
include/linux/unaligned/le_memmove.h:12:19: error: redefinition of 'get_unaligned_le32'
static inline u32 get_unaligned_le32(const void *p)
^~~~~~~~~~~~~~~~~~
In file included from arch/ia64/include/asm/unaligned.h:5:0,
from arch/ia64/include/asm/io.h:23,
from arch/ia64/include/asm/smp.h:21,
from include/linux/smp.h:68,
from include/linux/percpu.h:7,
from include/linux/arch_topology.h:9,
from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/platform_data/wilco-ec.h:11,
from drivers/platform/chrome/wilco_ec/properties.c:6:
include/linux/unaligned/le_struct.h:12:19: note: previous definition of 'get_unaligned_le32' was here
static inline u32 get_unaligned_le32(const void *p)
^~~~~~~~~~~~~~~~~~
In file included from drivers/platform/chrome/wilco_ec/properties.c:8:0:
>> include/linux/unaligned/le_memmove.h:17:19: error: redefinition of 'get_unaligned_le64'
static inline u64 get_unaligned_le64(const void *p)
^~~~~~~~~~~~~~~~~~
In file included from arch/ia64/include/asm/unaligned.h:5:0,
from arch/ia64/include/asm/io.h:23,
from arch/ia64/include/asm/smp.h:21,
from include/linux/smp.h:68,
from include/linux/percpu.h:7,
from include/linux/arch_topology.h:9,
from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/platform_data/wilco-ec.h:11,
from drivers/platform/chrome/wilco_ec/properties.c:6:
include/linux/unaligned/le_struct.h:17:19: note: previous definition of 'get_unaligned_le64' was here
static inline u64 get_unaligned_le64(const void *p)
^~~~~~~~~~~~~~~~~~
In file included from drivers/platform/chrome/wilco_ec/properties.c:8:0:
>> include/linux/unaligned/le_memmove.h:22:20: error: redefinition of 'put_unaligned_le16'
static inline void put_unaligned_le16(u16 val, void *p)
^~~~~~~~~~~~~~~~~~
In file included from arch/ia64/include/asm/unaligned.h:5:0,
from arch/ia64/include/asm/io.h:23,
from arch/ia64/include/asm/smp.h:21,
from include/linux/smp.h:68,
from include/linux/percpu.h:7,
from include/linux/arch_topology.h:9,
from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/platform_data/wilco-ec.h:11,
from drivers/platform/chrome/wilco_ec/properties.c:6:
include/linux/unaligned/le_struct.h:22:20: note: previous definition of 'put_unaligned_le16' was here
static inline void put_unaligned_le16(u16 val, void *p)
^~~~~~~~~~~~~~~~~~
In file included from drivers/platform/chrome/wilco_ec/properties.c:8:0:
>> include/linux/unaligned/le_memmove.h:27:20: error: redefinition of 'put_unaligned_le32'
static inline void put_unaligned_le32(u32 val, void *p)
^~~~~~~~~~~~~~~~~~
In file included from arch/ia64/include/asm/unaligned.h:5:0,
from arch/ia64/include/asm/io.h:23,
from arch/ia64/include/asm/smp.h:21,
from include/linux/smp.h:68,
from include/linux/percpu.h:7,
from include/linux/arch_topology.h:9,
from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/platform_data/wilco-ec.h:11,
from drivers/platform/chrome/wilco_ec/properties.c:6:
include/linux/unaligned/le_struct.h:27:20: note: previous definition of 'put_unaligned_le32' was here
static inline void put_unaligned_le32(u32 val, void *p)
^~~~~~~~~~~~~~~~~~
In file included from drivers/platform/chrome/wilco_ec/properties.c:8:0:
>> include/linux/unaligned/le_memmove.h:32:20: error: redefinition of 'put_unaligned_le64'
static inline void put_unaligned_le64(u64 val, void *p)
^~~~~~~~~~~~~~~~~~
In file included from arch/ia64/include/asm/unaligned.h:5:0,
from arch/ia64/include/asm/io.h:23,
from arch/ia64/include/asm/smp.h:21,
from include/linux/smp.h:68,
from include/linux/percpu.h:7,
from include/linux/arch_topology.h:9,
from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/platform_data/wilco-ec.h:11,
from drivers/platform/chrome/wilco_ec/properties.c:6:
include/linux/unaligned/le_struct.h:32:20: note: previous definition of 'put_unaligned_le64' was here
static inline void put_unaligned_le64(u64 val, void *p)
^~~~~~~~~~~~~~~~~~

vim +/get_unaligned_le16 +7 include/linux/unaligned/le_memmove.h

064106a91be5e7 Harvey Harrison 2008-04-29 6
064106a91be5e7 Harvey Harrison 2008-04-29 @7 static inline u16 get_unaligned_le16(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29 8 {
064106a91be5e7 Harvey Harrison 2008-04-29 9 return __get_unaligned_memmove16((const u8 *)p);
064106a91be5e7 Harvey Harrison 2008-04-29 10 }
064106a91be5e7 Harvey Harrison 2008-04-29 11
064106a91be5e7 Harvey Harrison 2008-04-29 12 static inline u32 get_unaligned_le32(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29 13 {
064106a91be5e7 Harvey Harrison 2008-04-29 14 return __get_unaligned_memmove32((const u8 *)p);
064106a91be5e7 Harvey Harrison 2008-04-29 15 }
064106a91be5e7 Harvey Harrison 2008-04-29 16
064106a91be5e7 Harvey Harrison 2008-04-29 @17 static inline u64 get_unaligned_le64(const void *p)
064106a91be5e7 Harvey Harrison 2008-04-29 18 {
064106a91be5e7 Harvey Harrison 2008-04-29 19 return __get_unaligned_memmove64((const u8 *)p);
064106a91be5e7 Harvey Harrison 2008-04-29 20 }
064106a91be5e7 Harvey Harrison 2008-04-29 21
064106a91be5e7 Harvey Harrison 2008-04-29 @22 static inline void put_unaligned_le16(u16 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29 23 {
064106a91be5e7 Harvey Harrison 2008-04-29 24 __put_unaligned_memmove16(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29 25 }
064106a91be5e7 Harvey Harrison 2008-04-29 26
064106a91be5e7 Harvey Harrison 2008-04-29 @27 static inline void put_unaligned_le32(u32 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29 28 {
064106a91be5e7 Harvey Harrison 2008-04-29 29 __put_unaligned_memmove32(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29 30 }
064106a91be5e7 Harvey Harrison 2008-04-29 31
064106a91be5e7 Harvey Harrison 2008-04-29 @32 static inline void put_unaligned_le64(u64 val, void *p)
064106a91be5e7 Harvey Harrison 2008-04-29 33 {
064106a91be5e7 Harvey Harrison 2008-04-29 34 __put_unaligned_memmove64(val, p);
064106a91be5e7 Harvey Harrison 2008-04-29 35 }
064106a91be5e7 Harvey Harrison 2008-04-29 36

:::::: The code at line 7 was first introduced by commit
:::::: 064106a91be5e76cb42c1ddf5d3871e3a1bd2a23 kernel: add common infrastructure for unaligned access

:::::: TO: Harvey Harrison <harvey.harrison@xxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip