* [arm:zii 9/14] drivers/net/dsa/mv88e6xxx/chip.c:681:2: note: in expansion of macro 'if'
@ 2018-12-20 14:32 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-12-20 14:32 UTC (permalink / raw)
To: Russell King; +Cc: kbuild-all, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 3002 bytes --]
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) : \
^~~~
>> 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) : \
^~~~
>> 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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36025 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-20 14:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-20 14:32 [arm:zii 9/14] drivers/net/dsa/mv88e6xxx/chip.c:681:2: note: in expansion of macro 'if' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.