tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 
master
head:   eaa72dc47488d599439cd0fd0f8c4f1bcb3906bb
commit: 69d2ea9c798983c4a7157278ec84ff969d1cd8e8 [427/429] net: bcmgenet: Use 
correct I/O accessors
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 69d2ea9c798983c4a7157278ec84ff969d1cd8e8
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net//ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_ext_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion 
of macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:692:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(ext, GENET_EXT_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net//ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:692:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(ext, GENET_EXT_OFF);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net//ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_umac_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion 
of macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:693:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(umac, GENET_UMAC_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net//ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:693:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(umac, GENET_UMAC_OFF);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net//ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_sys_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion 
of macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:694:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(sys, GENET_SYS_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net//ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:694:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(sys, GENET_SYS_OFF);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net//ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_intrl2_0_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion 
of macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:697:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(intrl2_0, GENET_INTRL2_0_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net//ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:697:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(intrl2_0, GENET_INTRL2_0_OFF);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net//ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_intrl2_1_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion 
of macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:698:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(intrl2_1, GENET_INTRL2_1_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net//ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:698:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(intrl2_1, GENET_INTRL2_1_OFF);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net//ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_hfb_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion 
of macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:701:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(hfb, priv->hw_params->hfb_offset);
    ^~~~~~~~~~~~~~
   In file included from drivers/net//ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:701:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(hfb, priv->hw_params->hfb_offset);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net//ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_hfb_reg_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion 
of macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:704:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(hfb_reg, priv->hw_params->hfb_reg_offset);
    ^~~~~~~~~~~~~~
   In file included from drivers/net//ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:704:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(hfb_reg, priv->hw_params->hfb_reg_offset);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net//ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_rbuf_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion 
of macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:707:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(rbuf, GENET_RBUF_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net//ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net//ethernet/broadcom/genet/bcmgenet.h:707:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(rbuf, GENET_RBUF_OFF);
    ^~~~~~~~~~~~~~
--
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net/ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_ext_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion of 
macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:692:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(ext, GENET_EXT_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net/ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:692:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(ext, GENET_EXT_OFF);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net/ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_umac_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion of 
macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:693:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(umac, GENET_UMAC_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net/ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:693:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(umac, GENET_UMAC_OFF);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net/ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_sys_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion of 
macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:694:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(sys, GENET_SYS_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net/ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:694:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(sys, GENET_SYS_OFF);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net/ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_intrl2_0_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion of 
macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:697:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(intrl2_0, GENET_INTRL2_0_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net/ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:697:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(intrl2_0, GENET_INTRL2_0_OFF);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net/ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_intrl2_1_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion of 
macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:698:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(intrl2_1, GENET_INTRL2_1_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net/ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:698:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(intrl2_1, GENET_INTRL2_1_OFF);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net/ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_hfb_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion of 
macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:701:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(hfb, priv->hw_params->hfb_offset);
    ^~~~~~~~~~~~~~
   In file included from drivers/net/ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:701:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(hfb, priv->hw_params->hfb_offset);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net/ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_hfb_reg_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion of 
macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:704:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(hfb_reg, priv->hw_params->hfb_reg_offset);
    ^~~~~~~~~~~~~~
   In file included from drivers/net/ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:704:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(hfb_reg, priv->hw_params->hfb_reg_offset);
    ^~~~~~~~~~~~~~
   In file included from include/linux/io.h:25:0,
                    from include/linux/irq.h:24,
                    from arch/sh/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from drivers/net/ethernet/broadcom/genet/bcmgenet.c:18:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 
'bcmgenet_rbuf_writel':
>> arch/sh/include/asm/io.h:30:43: warning: 'return' with a value, in function 
>> returning void
    #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = 
(v))
                              
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion of 
macro '__raw_writel'
      return __raw_writel(val, priv->base + offset + off); \
             ^~~~~~~~~~~~
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:707:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(rbuf, GENET_RBUF_OFF);
    ^~~~~~~~~~~~~~
   In file included from drivers/net/ethernet/broadcom/genet/bcmgenet.c:49:0:
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:683:20: note: declared here
    static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
                       ^
   drivers/net/ethernet/broadcom/genet/bcmgenet.h:707:1: note: in expansion of 
macro 'GENET_IO_MACRO'
    GENET_IO_MACRO(rbuf, GENET_RBUF_OFF);
    ^~~~~~~~~~~~~~

vim +/return +30 arch/sh/include/asm/io.h

b66c1a39 include/asm-sh/io.h      Paul Mundt 2006-01-16  27  
14866543 arch/sh/include/asm/io.h Paul Mundt 2008-10-04  28  #define 
__raw_writeb(v,a)  (__chk_io_ptr(a), *(volatile u8  __force *)(a) = (v))
14866543 arch/sh/include/asm/io.h Paul Mundt 2008-10-04  29  #define 
__raw_writew(v,a)  (__chk_io_ptr(a), *(volatile u16 __force *)(a) = (v))
14866543 arch/sh/include/asm/io.h Paul Mundt 2008-10-04 @30  #define 
__raw_writel(v,a)  (__chk_io_ptr(a), *(volatile u32 __force *)(a) = (v))
14866543 arch/sh/include/asm/io.h Paul Mundt 2008-10-04  31  #define 
__raw_writeq(v,a)  (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v))
14866543 arch/sh/include/asm/io.h Paul Mundt 2008-10-04  32  

:::::: The code at line 30 was first introduced by commit
:::::: 14866543ad22014a0b12e10657a917eb6b487248 sh: More I/O routine 
overhauling.

:::::: TO: Paul Mundt <let...@linux-sh.org>
:::::: CC: Paul Mundt <let...@linux-sh.org>

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

Attachment: .config.gz
Description: application/gzip

Reply via email to