From: kbuild test robot <lkp@intel.com>
To: Russell King <rmk+kernel@armlinux.org.uk>
Cc: kbuild-all@01.org, linux-arm-kernel@lists.infradead.org
Subject: [arm:cex7 15/23] drivers/net/ethernet/freescale/dpaa2/mac.c:118:6: warning: this statement may fall through
Date: Sun, 22 Sep 2019 01:55:14 +0800 [thread overview]
Message-ID: <201909220104.AgIUkMJl%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2747 bytes --]
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git cex7
head: 6715e8bfb9b011b28af4b65c8180afe69a2a297c
commit: a28014964c9a164d5a6c26c4b023908fad1a6ade [15/23] dpaa2-mac: convert to phylink
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
git checkout a28014964c9a164d5a6c26c4b023908fad1a6ade
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/net/ethernet/freescale/dpaa2/mac.c: In function 'dpaa2_mac_validate':
>> drivers/net/ethernet/freescale/dpaa2/mac.c:118:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (state->interface != PHY_INTERFACE_MODE_NA)
^
drivers/net/ethernet/freescale/dpaa2/mac.c:121:2: note: here
default:
^~~~~~~
vim +118 drivers/net/ethernet/freescale/dpaa2/mac.c
94
95 static void dpaa2_mac_validate(struct phylink_config *config,
96 unsigned long *supported,
97 struct phylink_link_state *state)
98 {
99 __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, };
100
101 /* Allow all the expected bits */
102 phylink_set(mask, Autoneg);
103 phylink_set_port_modes(mask);
104 phylink_set(mask, Pause);
105 phylink_set(mask, Asym_Pause);
106
107 switch (state->interface) {
108 case PHY_INTERFACE_MODE_NA:
109 case PHY_INTERFACE_MODE_XAUI:
110 case PHY_INTERFACE_MODE_10GKR:
111 phylink_set(mask, 10000baseT_Full);
112 phylink_set(mask, 10000baseKR_Full);
113 phylink_set(mask, 10000baseCR_Full);
114 phylink_set(mask, 10000baseSR_Full);
115 phylink_set(mask, 10000baseLR_Full);
116 phylink_set(mask, 10000baseLRM_Full);
117 phylink_set(mask, 10000baseER_Full);
> 118 if (state->interface != PHY_INTERFACE_MODE_NA)
119 break;
120
121 default:
122 case PHY_INTERFACE_MODE_RGMII:
123 case PHY_INTERFACE_MODE_SGMII:
124 phylink_set(mask, 1000baseT_Full);
125 phylink_set(mask, 1000baseX_Full);
126 phylink_set(mask, 100baseT_Half);
127 phylink_set(mask, 100baseT_Full);
128 phylink_set(mask, 10baseT_Half);
129 phylink_set(mask, 10baseT_Full);
130 break;
131 }
132
133 bitmap_and(supported, supported, mask,
134 __ETHTOOL_LINK_MODE_MASK_NBITS);
135 bitmap_and(state->advertising, state->advertising, mask,
136 __ETHTOOL_LINK_MODE_MASK_NBITS);
137 }
138
---
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: 69518 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
reply other threads:[~2019-09-21 17:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201909220104.AgIUkMJl%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=rmk+kernel@armlinux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox