Skip to content

Commit

Permalink
staging, rtl8192e, LLVMLinux: Change extern inline to static inline
Browse files Browse the repository at this point in the history
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 <[email protected]>
Suggested-by: Arnd Bergmann <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
behanw authored and gregkh committed Oct 29, 2014
1 parent 33de8f2 commit 6d91857
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/rtl8192e/rtllib.h
Original file line number Diff line number Diff line change
Expand Up @@ -2944,12 +2944,12 @@ void rtllib_softmac_scan_syncro(struct rtllib_device *ieee, u8 is_mesh);

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++;
}

extern inline int rtllib_get_scans(struct rtllib_device *ieee)
static inline int rtllib_get_scans(struct rtllib_device *ieee)
{
return ieee->scans;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtllib_softmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
u8 *tag;
Expand Down

0 comments on commit 6d91857

Please sign in to comment.