From: Patrick McHardy <kaber@trash.net>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, amwang@redhat.com
Subject: [PATCH 1/3] net: vlan: fix up vlan_proto_idx() for CONFIG_BUG=n
Date: Sun, 21 Apr 2013 12:09:32 +0200 [thread overview]
Message-ID: <1366538974-4589-1-git-send-email-kaber@trash.net> (raw)
Add missing return statement for CONFIG_BUG=n.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
net/8021q/vlan.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h
index abc9cb6..ba5983f 100644
--- a/net/8021q/vlan.h
+++ b/net/8021q/vlan.h
@@ -121,6 +121,7 @@ static inline unsigned int vlan_proto_idx(__be16 proto)
return VLAN_PROTO_8021AD;
default:
BUG();
+ return 0;
}
}
--
1.8.1.4
next reply other threads:[~2013-04-21 10:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-21 10:09 Patrick McHardy [this message]
2013-04-21 10:09 ` [PATCH 2/3] net: fix netdev features shift for features bit > 31 Patrick McHardy
2013-04-21 19:50 ` David Miller
2013-04-21 20:43 ` Patrick McHardy
2013-04-21 10:09 ` [PATCH 3/3] qeth: fix VLAN related compilation errors Patrick McHardy
2013-04-21 19:58 ` David Miller
2013-04-21 19:58 ` [PATCH 1/3] net: vlan: fix up vlan_proto_idx() for CONFIG_BUG=n David Miller
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=1366538974-4589-1-git-send-email-kaber@trash.net \
--to=kaber@trash.net \
--cc=amwang@redhat.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/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