[arm:zii 9/14] drivers/net/dsa/mv88e6xxx/chip.c:681:2: note: in expansion of macro 'if'
From: kbuild test robot <hidden>
Date: 2018-12-20 14:33:24
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: c6230e45540d3d3f369ab77f8404cd5c02076564
commit: 64645d6cf1ee569dc2b736920eb5575bb3b610b9 [9/14] net: dsa: mv88e6xxx: add phylink support
config: i386-randconfig-x001-201850 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 64645d6cf1ee569dc2b736920eb5575bb3b610b9
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from include/linux/export.h:45:0,
from include/linux/linkage.h:7,
from include/linux/kernel.h:7,
from include/linux/delay.h:22,
from drivers/net/dsa/mv88e6xxx/chip.c:17:
drivers/net/dsa/mv88e6xxx/chip.c: In function 'mv88e6xxx_default_mac_config':
drivers/net/dsa/mv88e6xxx/chip.c:681:57: error: 'ds' undeclared (first use in this function)
if (mode == MLO_AN_FIXED || !mv88e6xxx_phy_is_internal(ds, port)) {
^
include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~quoted
drivers/net/dsa/mv88e6xxx/chip.c:681:2: note: in expansion of macro 'if'
if (mode == MLO_AN_FIXED || !mv88e6xxx_phy_is_internal(ds, port)) {
^~
drivers/net/dsa/mv88e6xxx/chip.c:681:57: note: each undeclared identifier is reported only once for each function it appears in
if (mode == MLO_AN_FIXED || !mv88e6xxx_phy_is_internal(ds, port)) {
^
include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~quoted
drivers/net/dsa/mv88e6xxx/chip.c:681:2: note: in expansion of macro 'if'
if (mode == MLO_AN_FIXED || !mv88e6xxx_phy_is_internal(ds, port)) {
^~
vim +/if +681 drivers/net/dsa/mv88e6xxx/chip.c
671
672 static int mv88e6xxx_default_mac_config(struct mv88e6xxx_chip *chip, int port,
673 unsigned int mode,
674 const struct phylink_link_state *state)
675 {
676 int link, speed, duplex, pause;
677
678 if (mode == MLO_AN_PHY)
679 return 0;
680
> 681 if (mode == MLO_AN_FIXED || !mv88e6xxx_phy_is_internal(ds, port)) {
682 link = state->link;
683 speed = state->speed;
684 duplex = state->duplex;
685 } else {
686 speed = SPEED_UNFORCED;
687 duplex = DUPLEX_UNFORCED;
688 link = LINK_UNFORCED;
689 }
690
691 pause = !!phylink_test(state->advertising, Pause);
692
693 return mv88e6xxx_port_setup_mac(chip, port, link, speed, duplex, pause,
694 state->interface);
695 }
696
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation Attachments
- .config.gz [application/gzip] 36025 bytes
- (unnamed) [text/plain] 176 bytes · preview