Skip to content

Commit 6d91857

Browse files
behanwgregkh
authored andcommitted
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: Behan Webster <behanw@converseincode.com> Suggested-by: Arnd Bergmann <arnd@arndb.de> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 33de8f2 commit 6d91857

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/staging/rtl8192e/rtllib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2944,12 +2944,12 @@ void rtllib_softmac_scan_syncro(struct rtllib_device *ieee, u8 is_mesh);
29442944

29452945
extern const long rtllib_wlan_frequencies[];
29462946

2947-
extern inline void rtllib_increment_scans(struct rtllib_device *ieee)
2947+
static inline void rtllib_increment_scans(struct rtllib_device *ieee)
29482948
{
29492949
ieee->scans++;
29502950
}
29512951

2952-
extern inline int rtllib_get_scans(struct rtllib_device *ieee)
2952+
static inline int rtllib_get_scans(struct rtllib_device *ieee)
29532953
{
29542954
return ieee->scans;
29552955
}

drivers/staging/rtl8192e/rtllib_softmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff *skb,
343343
}
344344
}
345345

346-
inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)
346+
static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)
347347
{
348348
unsigned int len, rate_len;
349349
u8 *tag;

0 commit comments

Comments
 (0)