[linux-next:master 602/871] drivers/base//regmap/regmap-mmio.c:283:2: error: duplicate case value

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   c7434d8b9ebe7f2d27268e9341a59ded3d7b2e92
commit: 548fe15c491eb306e4e9c78cefc243651d4a0494 [602/871] Kbuild: always define endianess in kconfig.h
config: m32r-allmodconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 7.2.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 548fe15c491eb306e4e9c78cefc243651d4a0494
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All error/warnings (new ones prefixed by >>):

   In file included from arch/m32r/include/uapi/asm/byteorder.h:8:0,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/clk.h:16,
                    from drivers/base//regmap/regmap-mmio.c:19:
   include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp]
    #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN
     ^~~~~~~
   drivers/base//regmap/regmap-mmio.c: In function 'regmap_mmio_gen_context':
>> drivers/base//regmap/regmap-mmio.c:283:2: error: duplicate case value
     case REGMAP_ENDIAN_NATIVE:
     ^~~~
   drivers/base//regmap/regmap-mmio.c:255:2: note: previously used here
     case REGMAP_ENDIAN_NATIVE:
     ^~~~
--
   In file included from arch/m32r/include/uapi/asm/byteorder.h:8:0,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp]
    #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN
     ^~~~~~~
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:15:0: warning: "__constant_htonl" redefined
    #define __constant_htonl(x) ((__force __be32)___constant_swab32((x)))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:15:0: note: this is the location of the previous definition
    #define __constant_htonl(x) ((__force __be32)(__u32)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:16:0: warning: "__constant_ntohl" redefined
    #define __constant_ntohl(x) ___constant_swab32((__force __be32)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:16:0: note: this is the location of the previous definition
    #define __constant_ntohl(x) ((__force __u32)(__be32)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:17:0: warning: "__constant_htons" redefined
    #define __constant_htons(x) ((__force __be16)___constant_swab16((x)))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:17:0: note: this is the location of the previous definition
    #define __constant_htons(x) ((__force __be16)(__u16)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:18:0: warning: "__constant_ntohs" redefined
    #define __constant_ntohs(x) ___constant_swab16((__force __be16)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:18:0: note: this is the location of the previous definition
    #define __constant_ntohs(x) ((__force __u16)(__be16)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:19:0: warning: "__constant_cpu_to_le64" redefined
    #define __constant_cpu_to_le64(x) ((__force __le64)(__u64)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:19:0: note: this is the location of the previous definition
    #define __constant_cpu_to_le64(x) ((__force __le64)___constant_swab64((x)))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:20:0: warning: "__constant_le64_to_cpu" redefined
    #define __constant_le64_to_cpu(x) ((__force __u64)(__le64)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:20:0: note: this is the location of the previous definition
    #define __constant_le64_to_cpu(x) ___constant_swab64((__force __u64)(__le64)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:21:0: warning: "__constant_cpu_to_le32" redefined
    #define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:21:0: note: this is the location of the previous definition
    #define __constant_cpu_to_le32(x) ((__force __le32)___constant_swab32((x)))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:22:0: warning: "__constant_le32_to_cpu" redefined
    #define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:22:0: note: this is the location of the previous definition
    #define __constant_le32_to_cpu(x) ___constant_swab32((__force __u32)(__le32)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:23:0: warning: "__constant_cpu_to_le16" redefined
    #define __constant_cpu_to_le16(x) ((__force __le16)(__u16)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:23:0: note: this is the location of the previous definition
    #define __constant_cpu_to_le16(x) ((__force __le16)___constant_swab16((x)))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:24:0: warning: "__constant_le16_to_cpu" redefined
    #define __constant_le16_to_cpu(x) ((__force __u16)(__le16)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:24:0: note: this is the location of the previous definition
    #define __constant_le16_to_cpu(x) ___constant_swab16((__force __u16)(__le16)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:25:0: warning: "__constant_cpu_to_be64" redefined
    #define __constant_cpu_to_be64(x) ((__force __be64)___constant_swab64((x)))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:25:0: note: this is the location of the previous definition
    #define __constant_cpu_to_be64(x) ((__force __be64)(__u64)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:26:0: warning: "__constant_be64_to_cpu" redefined
    #define __constant_be64_to_cpu(x) ___constant_swab64((__force __u64)(__be64)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:26:0: note: this is the location of the previous definition
    #define __constant_be64_to_cpu(x) ((__force __u64)(__be64)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:27:0: warning: "__constant_cpu_to_be32" redefined
    #define __constant_cpu_to_be32(x) ((__force __be32)___constant_swab32((x)))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:27:0: note: this is the location of the previous definition
    #define __constant_cpu_to_be32(x) ((__force __be32)(__u32)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:28:0: warning: "__constant_be32_to_cpu" redefined
    #define __constant_be32_to_cpu(x) ___constant_swab32((__force __u32)(__be32)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:28:0: note: this is the location of the previous definition
    #define __constant_be32_to_cpu(x) ((__force __u32)(__be32)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:29:0: warning: "__constant_cpu_to_be16" redefined
    #define __constant_cpu_to_be16(x) ((__force __be16)___constant_swab16((x)))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:29:0: note: this is the location of the previous definition
    #define __constant_cpu_to_be16(x) ((__force __be16)(__u16)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:30:0: warning: "__constant_be16_to_cpu" redefined
    #define __constant_be16_to_cpu(x) ___constant_swab16((__force __u16)(__be16)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:30:0: note: this is the location of the previous definition
    #define __constant_be16_to_cpu(x) ((__force __u16)(__be16)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:31:0: warning: "__cpu_to_le64" redefined
    #define __cpu_to_le64(x) ((__force __le64)(__u64)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:31:0: note: this is the location of the previous definition
    #define __cpu_to_le64(x) ((__force __le64)__swab64((x)))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:32:0: warning: "__le64_to_cpu" redefined
    #define __le64_to_cpu(x) ((__force __u64)(__le64)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:32:0: note: this is the location of the previous definition
    #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:33:0: warning: "__cpu_to_le32" redefined
    #define __cpu_to_le32(x) ((__force __le32)(__u32)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:33:0: note: this is the location of the previous definition
    #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
>> include/uapi/linux/byteorder/little_endian.h:34:0: warning: "__le32_to_cpu" redefined
    #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
    
   In file included from include/linux/byteorder/big_endian.h:5:0,
                    from arch/m32r/include/uapi/asm/byteorder.h:8,
                    from arch/m32r/include/asm/bitops.h:22,
                    from include/linux/bitops.h:38,
                    from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/rculist.h:10,
                    from include/linux/sched/signal.h:5,
                    from drivers/staging//rtl8723bs/include/drv_types.h:26,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
   include/uapi/linux/byteorder/big_endian.h:34:0: note: this is the location of the previous definition
    #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
    
   In file included from include/linux/byteorder/little_endian.h:5:0,
                    from drivers/staging//rtl8723bs/include/rtw_byteorder.h:19,
                    from drivers/staging//rtl8723bs/include/drv_types.h:30,
                    from drivers/staging//rtl8723bs/core/rtw_ap.c:17:
..

vim +283 drivers/base//regmap/regmap-mmio.c

45f5ff810 Stephen Warren      2012-04-04  219  
878ec67b3 Philipp Zabel       2013-02-14  220  static struct regmap_mmio_context *regmap_mmio_gen_context(struct device *dev,
878ec67b3 Philipp Zabel       2013-02-14  221  					const char *clk_id,
878ec67b3 Philipp Zabel       2013-02-14  222  					void __iomem *regs,
45f5ff810 Stephen Warren      2012-04-04  223  					const struct regmap_config *config)
45f5ff810 Stephen Warren      2012-04-04  224  {
45f5ff810 Stephen Warren      2012-04-04  225  	struct regmap_mmio_context *ctx;
f01ee60ff Stephen Warren      2012-04-09  226  	int min_stride;
878ec67b3 Philipp Zabel       2013-02-14  227  	int ret;
45f5ff810 Stephen Warren      2012-04-04  228  
451485ba6 Xiubo Li            2014-03-28  229  	ret = regmap_mmio_regbits_check(config->reg_bits);
451485ba6 Xiubo Li            2014-03-28  230  	if (ret)
451485ba6 Xiubo Li            2014-03-28  231  		return ERR_PTR(ret);
45f5ff810 Stephen Warren      2012-04-04  232  
45f5ff810 Stephen Warren      2012-04-04  233  	if (config->pad_bits)
45f5ff810 Stephen Warren      2012-04-04  234  		return ERR_PTR(-EINVAL);
45f5ff810 Stephen Warren      2012-04-04  235  
75fb0aaea Xiubo Li            2015-12-03  236  	min_stride = regmap_mmio_get_min_stride(config->val_bits);
75fb0aaea Xiubo Li            2015-12-03  237  	if (min_stride < 0)
75fb0aaea Xiubo Li            2015-12-03  238  		return ERR_PTR(min_stride);
45f5ff810 Stephen Warren      2012-04-04  239  
f01ee60ff Stephen Warren      2012-04-09  240  	if (config->reg_stride < min_stride)
f01ee60ff Stephen Warren      2012-04-09  241  		return ERR_PTR(-EINVAL);
f01ee60ff Stephen Warren      2012-04-09  242  
463351194 Dimitris Papastamos 2012-07-18  243  	ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
45f5ff810 Stephen Warren      2012-04-04  244  	if (!ctx)
45f5ff810 Stephen Warren      2012-04-04  245  		return ERR_PTR(-ENOMEM);
45f5ff810 Stephen Warren      2012-04-04  246  
45f5ff810 Stephen Warren      2012-04-04  247  	ctx->regs = regs;
45f5ff810 Stephen Warren      2012-04-04  248  	ctx->val_bytes = config->val_bits / 8;
6b8e090ec Stephen Warren      2013-11-25  249  	ctx->clk = ERR_PTR(-ENODEV);
45f5ff810 Stephen Warren      2012-04-04  250  
0dbdb76c0 Mark Brown          2016-03-29  251  	switch (regmap_get_val_endian(dev, &regmap_mmio, config)) {
922a9f936 Mark Brown          2016-01-27  252  	case REGMAP_ENDIAN_DEFAULT:
922a9f936 Mark Brown          2016-01-27  253  	case REGMAP_ENDIAN_LITTLE:
922a9f936 Mark Brown          2016-01-27  254  #ifdef __LITTLE_ENDIAN
922a9f936 Mark Brown          2016-01-27  255  	case REGMAP_ENDIAN_NATIVE:
922a9f936 Mark Brown          2016-01-27  256  #endif
922a9f936 Mark Brown          2016-01-27  257  		switch (config->val_bits) {
922a9f936 Mark Brown          2016-01-27  258  		case 8:
922a9f936 Mark Brown          2016-01-27  259  			ctx->reg_read = regmap_mmio_read8;
922a9f936 Mark Brown          2016-01-27  260  			ctx->reg_write = regmap_mmio_write8;
922a9f936 Mark Brown          2016-01-27  261  			break;
922a9f936 Mark Brown          2016-01-27  262  		case 16:
922a9f936 Mark Brown          2016-01-27  263  			ctx->reg_read = regmap_mmio_read16le;
922a9f936 Mark Brown          2016-01-27  264  			ctx->reg_write = regmap_mmio_write16le;
922a9f936 Mark Brown          2016-01-27  265  			break;
922a9f936 Mark Brown          2016-01-27  266  		case 32:
922a9f936 Mark Brown          2016-01-27  267  			ctx->reg_read = regmap_mmio_read32le;
922a9f936 Mark Brown          2016-01-27  268  			ctx->reg_write = regmap_mmio_write32le;
922a9f936 Mark Brown          2016-01-27  269  			break;
922a9f936 Mark Brown          2016-01-27  270  #ifdef CONFIG_64BIT
922a9f936 Mark Brown          2016-01-27  271  		case 64:
922a9f936 Mark Brown          2016-01-27  272  			ctx->reg_read = regmap_mmio_read64le;
922a9f936 Mark Brown          2016-01-27  273  			ctx->reg_write = regmap_mmio_write64le;
922a9f936 Mark Brown          2016-01-27  274  			break;
922a9f936 Mark Brown          2016-01-27  275  #endif
922a9f936 Mark Brown          2016-01-27  276  		default:
922a9f936 Mark Brown          2016-01-27  277  			ret = -EINVAL;
922a9f936 Mark Brown          2016-01-27  278  			goto err_free;
922a9f936 Mark Brown          2016-01-27  279  		}
922a9f936 Mark Brown          2016-01-27  280  		break;
922a9f936 Mark Brown          2016-01-27  281  	case REGMAP_ENDIAN_BIG:
922a9f936 Mark Brown          2016-01-27  282  #ifdef __BIG_ENDIAN
922a9f936 Mark Brown          2016-01-27 @283  	case REGMAP_ENDIAN_NATIVE:
922a9f936 Mark Brown          2016-01-27  284  #endif
922a9f936 Mark Brown          2016-01-27  285  		switch (config->val_bits) {
922a9f936 Mark Brown          2016-01-27  286  		case 8:
922a9f936 Mark Brown          2016-01-27  287  			ctx->reg_read = regmap_mmio_read8;
922a9f936 Mark Brown          2016-01-27  288  			ctx->reg_write = regmap_mmio_write8;
922a9f936 Mark Brown          2016-01-27  289  			break;
922a9f936 Mark Brown          2016-01-27  290  		case 16:
922a9f936 Mark Brown          2016-01-27  291  			ctx->reg_read = regmap_mmio_read16be;
922a9f936 Mark Brown          2016-01-27  292  			ctx->reg_write = regmap_mmio_write16be;
922a9f936 Mark Brown          2016-01-27  293  			break;
922a9f936 Mark Brown          2016-01-27  294  		case 32:
922a9f936 Mark Brown          2016-01-27  295  			ctx->reg_read = regmap_mmio_read32be;
922a9f936 Mark Brown          2016-01-27  296  			ctx->reg_write = regmap_mmio_write32be;
922a9f936 Mark Brown          2016-01-27  297  			break;
922a9f936 Mark Brown          2016-01-27  298  		default:
922a9f936 Mark Brown          2016-01-27  299  			ret = -EINVAL;
922a9f936 Mark Brown          2016-01-27  300  			goto err_free;
922a9f936 Mark Brown          2016-01-27  301  		}
922a9f936 Mark Brown          2016-01-27  302  		break;
922a9f936 Mark Brown          2016-01-27  303  	default:
922a9f936 Mark Brown          2016-01-27  304  		ret = -EINVAL;
922a9f936 Mark Brown          2016-01-27  305  		goto err_free;
922a9f936 Mark Brown          2016-01-27  306  	}
922a9f936 Mark Brown          2016-01-27  307  
878ec67b3 Philipp Zabel       2013-02-14  308  	if (clk_id == NULL)
45f5ff810 Stephen Warren      2012-04-04  309  		return ctx;
878ec67b3 Philipp Zabel       2013-02-14  310  
878ec67b3 Philipp Zabel       2013-02-14  311  	ctx->clk = clk_get(dev, clk_id);
878ec67b3 Philipp Zabel       2013-02-14  312  	if (IS_ERR(ctx->clk)) {
878ec67b3 Philipp Zabel       2013-02-14  313  		ret = PTR_ERR(ctx->clk);
878ec67b3 Philipp Zabel       2013-02-14  314  		goto err_free;
878ec67b3 Philipp Zabel       2013-02-14  315  	}
878ec67b3 Philipp Zabel       2013-02-14  316  
878ec67b3 Philipp Zabel       2013-02-14  317  	ret = clk_prepare(ctx->clk);
878ec67b3 Philipp Zabel       2013-02-14  318  	if (ret < 0) {
878ec67b3 Philipp Zabel       2013-02-14  319  		clk_put(ctx->clk);
878ec67b3 Philipp Zabel       2013-02-14  320  		goto err_free;
878ec67b3 Philipp Zabel       2013-02-14  321  	}
878ec67b3 Philipp Zabel       2013-02-14  322  
878ec67b3 Philipp Zabel       2013-02-14  323  	return ctx;
878ec67b3 Philipp Zabel       2013-02-14  324  
878ec67b3 Philipp Zabel       2013-02-14  325  err_free:
878ec67b3 Philipp Zabel       2013-02-14  326  	kfree(ctx);
878ec67b3 Philipp Zabel       2013-02-14  327  
878ec67b3 Philipp Zabel       2013-02-14  328  	return ERR_PTR(ret);
45f5ff810 Stephen Warren      2012-04-04  329  }
45f5ff810 Stephen Warren      2012-04-04  330  

:::::: The code at line 283 was first introduced by commit
:::::: 922a9f936e40001f9b921379aab90047d5990923 regmap: mmio: Convert to regmap_bus and fix accessor usage

:::::: TO: Mark Brown <broonie@xxxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

---
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 ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux