提交 6d91857d 编写于 作者: B Behan Webster 提交者: Greg Kroah-Hartman

staging, rtl8192e, LLVMLinux: Change extern inline to static inline

With compilers which follow the C99 standard (like modern versions of gcc and
clang), "extern inline" does the opposite thing from older versions of gcc
(emits code for an externally linkable version of the inline function).

"static inline" does the intended behavior in all cases instead.
Signed-off-by: NBehan Webster <behanw@converseincode.com>
Suggested-by: NArnd Bergmann <arnd@arndb.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 33de8f24
...@@ -2944,12 +2944,12 @@ void rtllib_softmac_scan_syncro(struct rtllib_device *ieee, u8 is_mesh); ...@@ -2944,12 +2944,12 @@ void rtllib_softmac_scan_syncro(struct rtllib_device *ieee, u8 is_mesh);
extern const long rtllib_wlan_frequencies[]; extern const long rtllib_wlan_frequencies[];
extern inline void rtllib_increment_scans(struct rtllib_device *ieee) static inline void rtllib_increment_scans(struct rtllib_device *ieee)
{ {
ieee->scans++; ieee->scans++;
} }
extern inline int rtllib_get_scans(struct rtllib_device *ieee) static inline int rtllib_get_scans(struct rtllib_device *ieee)
{ {
return ieee->scans; return ieee->scans;
} }
......
...@@ -343,7 +343,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff *skb, ...@@ -343,7 +343,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff *skb,
} }
} }
inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee) static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)
{ {
unsigned int len, rate_len; unsigned int len, rate_len;
u8 *tag; u8 *tag;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册