Re: [PATCH] usb: wusbcore: Use put_unaligned_le32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Himanshu,

[auto build test ERROR on usb/usb-testing]
[also build test ERROR on v4.14-rc3 next-20170929]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Himanshu-Jha/usb-wusbcore-Use-put_unaligned_le32/20171007-041544
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   In file included from arch/ia64/include/asm/unaligned.h:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/le_struct.h:6:19: error: redefinition of 'get_unaligned_le16'
    static inline u16 get_unaligned_le16(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:7:28: note: previous definition of 'get_unaligned_le16' was here
    static __always_inline u16 get_unaligned_le16(const void *p)
                               ^~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/unaligned.h:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/le_struct.h:11:19: error: redefinition of 'get_unaligned_le32'
    static inline u32 get_unaligned_le32(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:12:28: note: previous definition of 'get_unaligned_le32' was here
    static __always_inline u32 get_unaligned_le32(const void *p)
                               ^~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/unaligned.h:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/le_struct.h:16:19: error: redefinition of 'get_unaligned_le64'
    static inline u64 get_unaligned_le64(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:17:28: note: previous definition of 'get_unaligned_le64' was here
    static __always_inline u64 get_unaligned_le64(const void *p)
                               ^~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/unaligned.h:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/le_struct.h:21:20: error: redefinition of 'put_unaligned_le16'
    static inline void put_unaligned_le16(u16 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:37:29: note: previous definition of 'put_unaligned_le16' was here
    static __always_inline void put_unaligned_le16(u16 val, void *p)
                                ^~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/unaligned.h:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/le_struct.h:26:20: error: redefinition of 'put_unaligned_le32'
    static inline void put_unaligned_le32(u32 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:42:29: note: previous definition of 'put_unaligned_le32' was here
    static __always_inline void put_unaligned_le32(u32 val, void *p)
                                ^~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/unaligned.h:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/le_struct.h:31:20: error: redefinition of 'put_unaligned_le64'
    static inline void put_unaligned_le64(u64 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:47:29: note: previous definition of 'put_unaligned_le64' was here
    static __always_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:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/be_byteshift.h:40:19: error: redefinition of 'get_unaligned_be16'
    static inline u16 get_unaligned_be16(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:22:28: note: previous definition of 'get_unaligned_be16' was here
    static __always_inline u16 get_unaligned_be16(const void *p)
                               ^~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/unaligned.h:5:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/be_byteshift.h:45:19: error: redefinition of 'get_unaligned_be32'
    static inline u32 get_unaligned_be32(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:27:28: note: previous definition of 'get_unaligned_be32' was here
    static __always_inline u32 get_unaligned_be32(const void *p)
                               ^~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/unaligned.h:5:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/be_byteshift.h:50:19: error: redefinition of 'get_unaligned_be64'
    static inline u64 get_unaligned_be64(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:32:28: note: previous definition of 'get_unaligned_be64' was here
    static __always_inline u64 get_unaligned_be64(const void *p)
                               ^~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/unaligned.h:5:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/be_byteshift.h:55:20: error: redefinition of 'put_unaligned_be16'
    static inline void put_unaligned_be16(u16 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:52:29: note: previous definition of 'put_unaligned_be16' was here
    static __always_inline void put_unaligned_be16(u16 val, void *p)
                                ^~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/unaligned.h:5:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/be_byteshift.h:60:20: error: redefinition of 'put_unaligned_be32'
    static inline void put_unaligned_be32(u32 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:57:29: note: previous definition of 'put_unaligned_be32' was here
    static __always_inline void put_unaligned_be32(u32 val, void *p)
                                ^~~~~~~~~~~~~~~~~~
   In file included from arch/ia64/include/asm/unaligned.h:5:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:63,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from drivers/usb//wusbcore/security.c:27:
>> include/linux/unaligned/be_byteshift.h:65:20: error: redefinition of 'put_unaligned_be64'
    static inline void put_unaligned_be64(u64 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/usb//wusbcore/security.c:25:0:
   include/linux/unaligned/access_ok.h:62:29: note: previous definition of 'put_unaligned_be64' was here
    static __always_inline void put_unaligned_be64(u64 val, void *p)
                                ^~~~~~~~~~~~~~~~~~

vim +/put_unaligned_le32 +26 include/linux/unaligned/le_struct.h

064106a9 Harvey Harrison 2008-04-29   5  
064106a9 Harvey Harrison 2008-04-29  @6  static inline u16 get_unaligned_le16(const void *p)
064106a9 Harvey Harrison 2008-04-29   7  {
064106a9 Harvey Harrison 2008-04-29   8  	return __get_unaligned_cpu16((const u8 *)p);
064106a9 Harvey Harrison 2008-04-29   9  }
064106a9 Harvey Harrison 2008-04-29  10  
064106a9 Harvey Harrison 2008-04-29 @11  static inline u32 get_unaligned_le32(const void *p)
064106a9 Harvey Harrison 2008-04-29  12  {
064106a9 Harvey Harrison 2008-04-29  13  	return __get_unaligned_cpu32((const u8 *)p);
064106a9 Harvey Harrison 2008-04-29  14  }
064106a9 Harvey Harrison 2008-04-29  15  
064106a9 Harvey Harrison 2008-04-29 @16  static inline u64 get_unaligned_le64(const void *p)
064106a9 Harvey Harrison 2008-04-29  17  {
064106a9 Harvey Harrison 2008-04-29  18  	return __get_unaligned_cpu64((const u8 *)p);
064106a9 Harvey Harrison 2008-04-29  19  }
064106a9 Harvey Harrison 2008-04-29  20  
064106a9 Harvey Harrison 2008-04-29 @21  static inline void put_unaligned_le16(u16 val, void *p)
064106a9 Harvey Harrison 2008-04-29  22  {
064106a9 Harvey Harrison 2008-04-29  23  	__put_unaligned_cpu16(val, p);
064106a9 Harvey Harrison 2008-04-29  24  }
064106a9 Harvey Harrison 2008-04-29  25  
064106a9 Harvey Harrison 2008-04-29 @26  static inline void put_unaligned_le32(u32 val, void *p)
064106a9 Harvey Harrison 2008-04-29  27  {
064106a9 Harvey Harrison 2008-04-29  28  	__put_unaligned_cpu32(val, p);
064106a9 Harvey Harrison 2008-04-29  29  }
064106a9 Harvey Harrison 2008-04-29  30  
064106a9 Harvey Harrison 2008-04-29 @31  static inline void put_unaligned_le64(u64 val, void *p)
064106a9 Harvey Harrison 2008-04-29  32  {
064106a9 Harvey Harrison 2008-04-29  33  	__put_unaligned_cpu64(val, p);
064106a9 Harvey Harrison 2008-04-29  34  }
064106a9 Harvey Harrison 2008-04-29  35  

:::::: The code at line 26 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 kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux