mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Stephen Boyd <swboyd@chromium.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Enric Balletbo i Serra <enric.balletbo@collabora.com>
Subject: include/linux/unaligned/le_memmove.h:7:19: error: redefinition of 'get_unaligned_le16'
Date: Tue, 11 Feb 2020 08:31:12 +0800	[thread overview]
Message-ID: <202002110850.gNLQDGOk%lkp@intel.com> (raw)

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

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@intel.com>

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@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 55633 bytes --]

                 reply	other threads:[~2020-02-11  0:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202002110850.gNLQDGOk%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=enric.balletbo@collabora.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=swboyd@chromium.org \
    /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

all inboxes | Powered by JetHome®