projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16cec43
)
net/rfkill/core.c: work around gcc-4.0.2 silliness
author
Andrew Morton
<
[email protected]
>
Fri, 4 Dec 2009 04:45:07 +0000
(20:45 -0800)
committer
John W. Linville
<
[email protected]
>
Mon, 7 Dec 2009 21:51:23 +0000
(16:51 -0500)
net/rfkill/core.c: In function 'rfkill_type_show':
net/rfkill/core.c:610: warning: control may reach end of non-void function 'rfkill_get_type_str' being inlined
A gcc bug, but simple enough to squish.
Cc: John W. Linville <
[email protected]
>
Cc: Johannes Berg <
[email protected]
>
Cc: David S. Miller <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
net/rfkill/core.c
patch
|
blob
|
history
diff --git
a/net/rfkill/core.c
b/net/rfkill/core.c
index 448e5a0fcc2e6b75604426761b5e478486522e6b..c218e07e5cafe80bb65ef86dfec1b27a9cdfb986 100644
(file)
--- a/
net/rfkill/core.c
+++ b/
net/rfkill/core.c
@@
-579,6
+579,8
@@
static ssize_t rfkill_name_show(struct device *dev,
static const char *rfkill_get_type_str(enum rfkill_type type)
{
+ BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_FM + 1);
+
switch (type) {
case RFKILL_TYPE_WLAN:
return "wlan";
@@
-597,8
+599,6
@@
static const char *rfkill_get_type_str(enum rfkill_type type)
default:
BUG();
}
-
- BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_FM + 1);
}
static ssize_t rfkill_type_show(struct device *dev,