[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201708301126.NWDnYt4j%fengguang.wu@intel.com>
Date: Wed, 30 Aug 2017 11:38:29 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 427/429]
drivers/net/ethernet/broadcom/genet/bcmgenet.h:687:10: note: in expansion of
macro '__raw_writel'
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: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
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=blackfin
All error/warnings (new ones prefixed by >>):
In file included from arch/blackfin/mach-bf533/include/mach/blackfin.h:15:0,
from arch/blackfin/include/asm/irqflags.h:11,
from include/linux/irqflags.h:15,
from arch/blackfin/include/asm/bitops.h:33,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from drivers/net/ethernet/broadcom/genet/bcmgenet.c:13:
drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 'bcmgenet_ext_writel':
>> arch/blackfin/include/asm/def_LPBlackfin.h:38:2: error: expected expression before '__asm__'
__asm__ __volatile__( \
^
>> arch/blackfin/include/asm/def_LPBlackfin.h:51:33: note: in expansion of macro '_bfin_writeX'
#define bfin_write32(addr, val) _bfin_writeX(addr, val, 32, )
^~~~~~~~~~~~
>> arch/blackfin/include/asm/io.h:20:33: note: in expansion of macro 'bfin_write32'
#define __raw_writel(val, addr) bfin_write32(addr, val)
^~~~~~~~~~~~
>> 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);
^~~~~~~~~~~~~~
>> arch/blackfin/include/asm/def_LPBlackfin.h:38:2: warning: 'return' with a value, in function returning void
__asm__ __volatile__( \
^
>> arch/blackfin/include/asm/def_LPBlackfin.h:51:33: note: in expansion of macro '_bfin_writeX'
#define bfin_write32(addr, val) _bfin_writeX(addr, val, 32, )
^~~~~~~~~~~~
>> arch/blackfin/include/asm/io.h:20:33: note: in expansion of macro 'bfin_write32'
#define __raw_writel(val, addr) bfin_write32(addr, val)
^~~~~~~~~~~~
>> 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 arch/blackfin/mach-bf533/include/mach/blackfin.h:15:0,
from arch/blackfin/include/asm/irqflags.h:11,
from include/linux/irqflags.h:15,
from arch/blackfin/include/asm/bitops.h:33,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from drivers/net/ethernet/broadcom/genet/bcmgenet.c:13:
drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 'bcmgenet_umac_writel':
>> arch/blackfin/include/asm/def_LPBlackfin.h:38:2: error: expected expression before '__asm__'
__asm__ __volatile__( \
^
>> arch/blackfin/include/asm/def_LPBlackfin.h:51:33: note: in expansion of macro '_bfin_writeX'
#define bfin_write32(addr, val) _bfin_writeX(addr, val, 32, )
^~~~~~~~~~~~
>> arch/blackfin/include/asm/io.h:20:33: note: in expansion of macro 'bfin_write32'
#define __raw_writel(val, addr) bfin_write32(addr, val)
^~~~~~~~~~~~
>> 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);
^~~~~~~~~~~~~~
>> arch/blackfin/include/asm/def_LPBlackfin.h:38:2: warning: 'return' with a value, in function returning void
__asm__ __volatile__( \
^
>> arch/blackfin/include/asm/def_LPBlackfin.h:51:33: note: in expansion of macro '_bfin_writeX'
#define bfin_write32(addr, val) _bfin_writeX(addr, val, 32, )
^~~~~~~~~~~~
>> arch/blackfin/include/asm/io.h:20:33: note: in expansion of macro 'bfin_write32'
#define __raw_writel(val, addr) bfin_write32(addr, val)
^~~~~~~~~~~~
>> 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 arch/blackfin/mach-bf533/include/mach/blackfin.h:15:0,
from arch/blackfin/include/asm/irqflags.h:11,
from include/linux/irqflags.h:15,
from arch/blackfin/include/asm/bitops.h:33,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from drivers/net/ethernet/broadcom/genet/bcmgenet.c:13:
drivers/net/ethernet/broadcom/genet/bcmgenet.h: In function 'bcmgenet_sys_writel':
>> arch/blackfin/include/asm/def_LPBlackfin.h:38:2: error: expected expression before '__asm__'
__asm__ __volatile__( \
^
>> arch/blackfin/include/asm/def_LPBlackfin.h:51:33: note: in expansion of macro '_bfin_writeX'
#define bfin_write32(addr, val) _bfin_writeX(addr, val, 32, )
^~~~~~~~~~~~
>> arch/blackfin/include/asm/io.h:20:33: note: in expansion of macro 'bfin_write32'
#define __raw_writel(val, addr) bfin_write32(addr, val)
^~~~~~~~~~~~
>> 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);
^~~~~~~~~~~~~~
vim +/__raw_writel +687 drivers/net/ethernet/broadcom/genet/bcmgenet.h
670
671 #define GENET_IO_MACRO(name, offset) \
672 static inline u32 bcmgenet_##name##_readl(struct bcmgenet_priv *priv, \
673 u32 off) \
674 { \
675 /* MIPS chips strapped for BE will automagically configure the \
676 * peripheral registers for CPU-native byte order. \
677 */ \
678 if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) \
679 return __raw_readl(priv->base + offset + off); \
680 else \
681 return readl_relaxed(priv->base + offset + off); \
682 } \
683 static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \
684 u32 val, u32 off) \
685 { \
686 if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) \
> 687 return __raw_writel(val, priv->base + offset + off); \
688 else \
689 writel_relaxed(val, priv->base + offset + off); \
690 }
691
---
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" (45711 bytes)
Powered by blists - more mailing lists