lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201609221405.W3PbeWEW%fengguang.wu@intel.com>
Date:   Thu, 22 Sep 2016 14:50:10 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Pratyush Anand <pratyush.anand@...il.com>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>
Subject: include/linux/unaligned/access_ok.h:7:19: error: redefinition of
 'get_unaligned_le16'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7d1e042314619115153a0f6f06e4552c09a50e13
commit: e34cadde3be793f179107228243242ccabdbb57c Pratyush Anand has moved
date:   1 year, 3 months ago
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout e34cadde3be793f179107228243242ccabdbb57c
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   In file included from drivers/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/le_struct.h:6:19: note: previous definition of 'get_unaligned_le16' was here
    static inline u16 get_unaligned_le16(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/le_struct.h:11:19: note: previous definition of 'get_unaligned_le32' was here
    static inline u32 get_unaligned_le32(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/le_struct.h:16:19: note: previous definition of 'get_unaligned_le64' was here
    static inline u64 get_unaligned_le64(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.h:22:19: error: redefinition of 'get_unaligned_be16'
    static 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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/be_byteshift.h:40:19: note: previous definition of 'get_unaligned_be16' was here
    static inline u16 get_unaligned_be16(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.h:27:19: error: redefinition of 'get_unaligned_be32'
    static 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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/be_byteshift.h:45:19: note: previous definition of 'get_unaligned_be32' was here
    static inline u32 get_unaligned_be32(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.h:32:19: error: redefinition of 'get_unaligned_be64'
    static 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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/be_byteshift.h:50:19: note: previous definition of 'get_unaligned_be64' was here
    static inline u64 get_unaligned_be64(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.h:37: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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/le_struct.h:21: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/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.h:42: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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/le_struct.h:26: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/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.h:47: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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/le_struct.h:31:20: note: previous definition of 'put_unaligned_le64' was here
    static inline void put_unaligned_le64(u64 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.h:52:20: error: redefinition of 'put_unaligned_be16'
    static 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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/be_byteshift.h:55:20: note: previous definition of 'put_unaligned_be16' was here
    static inline void put_unaligned_be16(u16 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.h:57:20: error: redefinition of 'put_unaligned_be32'
    static 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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/be_byteshift.h:60:20: note: previous definition of 'put_unaligned_be32' was here
    static inline void put_unaligned_be32(u32 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/firmware.c:27:0:
>> include/linux/unaligned/access_ok.h:62:20: error: redefinition of 'put_unaligned_be64'
    static inline void put_unaligned_be64(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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/firmware.h:6,
                    from drivers/nfc/nxp-nci/firmware.c:25:
   include/linux/unaligned/be_byteshift.h:65:20: note: previous definition of 'put_unaligned_be64' was here
    static inline void put_unaligned_be64(u64 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
--
   In file included from drivers/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/le_struct.h:6:19: note: previous definition of 'get_unaligned_le16' was here
    static inline u16 get_unaligned_le16(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/le_struct.h:11:19: note: previous definition of 'get_unaligned_le32' was here
    static inline u32 get_unaligned_le32(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/le_struct.h:16:19: note: previous definition of 'get_unaligned_le64' was here
    static inline u64 get_unaligned_le64(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.h:22:19: error: redefinition of 'get_unaligned_be16'
    static 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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/be_byteshift.h:40:19: note: previous definition of 'get_unaligned_be16' was here
    static inline u16 get_unaligned_be16(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.h:27:19: error: redefinition of 'get_unaligned_be32'
    static 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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/be_byteshift.h:45:19: note: previous definition of 'get_unaligned_be32' was here
    static inline u32 get_unaligned_be32(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.h:32:19: error: redefinition of 'get_unaligned_be64'
    static 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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/be_byteshift.h:50:19: note: previous definition of 'get_unaligned_be64' was here
    static inline u64 get_unaligned_be64(const void *p)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.h:37: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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/le_struct.h:21: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/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.h:42: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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/le_struct.h:26: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/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.h:47: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:4:0,
                    from arch/ia64/include/asm/io.h:22,
                    from arch/ia64/include/asm/smp.h:20,
                    from include/linux/smp.h:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/le_struct.h:31:20: note: previous definition of 'put_unaligned_le64' was here
    static inline void put_unaligned_le64(u64 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.h:52:20: error: redefinition of 'put_unaligned_be16'
    static 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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/be_byteshift.h:55:20: note: previous definition of 'put_unaligned_be16' was here
    static inline void put_unaligned_be16(u16 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.h:57:20: error: redefinition of 'put_unaligned_be32'
    static 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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/be_byteshift.h:60:20: note: previous definition of 'put_unaligned_be32' was here
    static inline void put_unaligned_be32(u32 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from drivers/nfc/nxp-nci/i2c.c:39:0:
>> include/linux/unaligned/access_ok.h:62:20: error: redefinition of 'put_unaligned_be64'
    static inline void put_unaligned_be64(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:59,
                    from include/linux/topology.h:33,
                    from include/linux/gfp.h:8,
                    from include/linux/slab.h:14,
                    from include/linux/resource_ext.h:19,
                    from include/linux/acpi.h:30,
                    from drivers/nfc/nxp-nci/i2c.c:28:
   include/linux/unaligned/be_byteshift.h:65:20: note: previous definition of 'put_unaligned_be64' was here
    static inline void put_unaligned_be64(u64 val, void *p)
                       ^~~~~~~~~~~~~~~~~~
   drivers/nfc/nxp-nci/i2c.c:436:34: warning: 'of_nxp_nci_i2c_match' defined but not used [-Wunused-const-variable=]
    static const struct of_device_id of_nxp_nci_i2c_match[] = {
                                     ^~~~~~~~~~~~~~~~~~~~

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

064106a9 Harvey Harrison 2008-04-29   1  #ifndef _LINUX_UNALIGNED_ACCESS_OK_H
064106a9 Harvey Harrison 2008-04-29   2  #define _LINUX_UNALIGNED_ACCESS_OK_H
064106a9 Harvey Harrison 2008-04-29   3  
064106a9 Harvey Harrison 2008-04-29   4  #include <linux/kernel.h>
064106a9 Harvey Harrison 2008-04-29   5  #include <asm/byteorder.h>
064106a9 Harvey Harrison 2008-04-29   6  
064106a9 Harvey Harrison 2008-04-29  @7  static inline u16 get_unaligned_le16(const void *p)
064106a9 Harvey Harrison 2008-04-29   8  {
064106a9 Harvey Harrison 2008-04-29   9  	return le16_to_cpup((__le16 *)p);
064106a9 Harvey Harrison 2008-04-29  10  }
064106a9 Harvey Harrison 2008-04-29  11  
064106a9 Harvey Harrison 2008-04-29 @12  static inline u32 get_unaligned_le32(const void *p)
064106a9 Harvey Harrison 2008-04-29  13  {
064106a9 Harvey Harrison 2008-04-29  14  	return le32_to_cpup((__le32 *)p);
064106a9 Harvey Harrison 2008-04-29  15  }
064106a9 Harvey Harrison 2008-04-29  16  
064106a9 Harvey Harrison 2008-04-29 @17  static inline u64 get_unaligned_le64(const void *p)
064106a9 Harvey Harrison 2008-04-29  18  {
064106a9 Harvey Harrison 2008-04-29  19  	return le64_to_cpup((__le64 *)p);
064106a9 Harvey Harrison 2008-04-29  20  }
064106a9 Harvey Harrison 2008-04-29  21  
064106a9 Harvey Harrison 2008-04-29 @22  static inline u16 get_unaligned_be16(const void *p)
064106a9 Harvey Harrison 2008-04-29  23  {
064106a9 Harvey Harrison 2008-04-29  24  	return be16_to_cpup((__be16 *)p);
064106a9 Harvey Harrison 2008-04-29  25  }
064106a9 Harvey Harrison 2008-04-29  26  
064106a9 Harvey Harrison 2008-04-29 @27  static inline u32 get_unaligned_be32(const void *p)
064106a9 Harvey Harrison 2008-04-29  28  {
064106a9 Harvey Harrison 2008-04-29  29  	return be32_to_cpup((__be32 *)p);
064106a9 Harvey Harrison 2008-04-29  30  }
064106a9 Harvey Harrison 2008-04-29  31  
064106a9 Harvey Harrison 2008-04-29 @32  static inline u64 get_unaligned_be64(const void *p)
064106a9 Harvey Harrison 2008-04-29  33  {
064106a9 Harvey Harrison 2008-04-29  34  	return be64_to_cpup((__be64 *)p);
064106a9 Harvey Harrison 2008-04-29  35  }
064106a9 Harvey Harrison 2008-04-29  36  
064106a9 Harvey Harrison 2008-04-29 @37  static inline void put_unaligned_le16(u16 val, void *p)
064106a9 Harvey Harrison 2008-04-29  38  {
064106a9 Harvey Harrison 2008-04-29  39  	*((__le16 *)p) = cpu_to_le16(val);
064106a9 Harvey Harrison 2008-04-29  40  }
064106a9 Harvey Harrison 2008-04-29  41  
064106a9 Harvey Harrison 2008-04-29 @42  static inline void put_unaligned_le32(u32 val, void *p)
064106a9 Harvey Harrison 2008-04-29  43  {
064106a9 Harvey Harrison 2008-04-29  44  	*((__le32 *)p) = cpu_to_le32(val);
064106a9 Harvey Harrison 2008-04-29  45  }
064106a9 Harvey Harrison 2008-04-29  46  
064106a9 Harvey Harrison 2008-04-29 @47  static inline void put_unaligned_le64(u64 val, void *p)
064106a9 Harvey Harrison 2008-04-29  48  {
064106a9 Harvey Harrison 2008-04-29  49  	*((__le64 *)p) = cpu_to_le64(val);
064106a9 Harvey Harrison 2008-04-29  50  }
064106a9 Harvey Harrison 2008-04-29  51  
064106a9 Harvey Harrison 2008-04-29 @52  static inline void put_unaligned_be16(u16 val, void *p)
064106a9 Harvey Harrison 2008-04-29  53  {
064106a9 Harvey Harrison 2008-04-29  54  	*((__be16 *)p) = cpu_to_be16(val);
064106a9 Harvey Harrison 2008-04-29  55  }
064106a9 Harvey Harrison 2008-04-29  56  
064106a9 Harvey Harrison 2008-04-29 @57  static inline void put_unaligned_be32(u32 val, void *p)
064106a9 Harvey Harrison 2008-04-29  58  {
064106a9 Harvey Harrison 2008-04-29  59  	*((__be32 *)p) = cpu_to_be32(val);
064106a9 Harvey Harrison 2008-04-29  60  }
064106a9 Harvey Harrison 2008-04-29  61  
064106a9 Harvey Harrison 2008-04-29 @62  static inline void put_unaligned_be64(u64 val, void *p)
064106a9 Harvey Harrison 2008-04-29  63  {
064106a9 Harvey Harrison 2008-04-29  64  	*((__be64 *)p) = cpu_to_be64(val);
064106a9 Harvey Harrison 2008-04-29  65  }

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

:::::: TO: Harvey Harrison <harvey.harrison@...il.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (41467 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ