]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.14.44/staging-rtl8192e-llvmlinux-change-extern-inline-to-static-inline.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.14.44 / staging-rtl8192e-llvmlinux-change-extern-inline-to-static-inline.patch
1 From 6d91857d4826b382b3fd4fad95f52713be646f96 Mon Sep 17 00:00:00 2001
2 From: Behan Webster <behanw@converseincode.com>
3 Date: Wed, 29 Oct 2014 15:42:20 -0700
4 Subject: staging, rtl8192e, LLVMLinux: Change extern inline to static inline
5
6 From: Behan Webster <behanw@converseincode.com>
7
8 commit 6d91857d4826b382b3fd4fad95f52713be646f96 upstream.
9
10 With compilers which follow the C99 standard (like modern versions of gcc and
11 clang), "extern inline" does the opposite thing from older versions of gcc
12 (emits code for an externally linkable version of the inline function).
13
14 "static inline" does the intended behavior in all cases instead.
15
16 Signed-off-by: Behan Webster <behanw@converseincode.com>
17 Suggested-by: Arnd Bergmann <arnd@arndb.de>
18 Cc: Arnd Bergmann <arnd@arndb.de>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21 ---
22 drivers/staging/rtl8192e/rtllib.h | 4 ++--
23 drivers/staging/rtl8192e/rtllib_softmac.c | 2 +-
24 2 files changed, 3 insertions(+), 3 deletions(-)
25
26 --- a/drivers/staging/rtl8192e/rtllib.h
27 +++ b/drivers/staging/rtl8192e/rtllib.h
28 @@ -2943,12 +2943,12 @@ void rtllib_softmac_scan_syncro(struct r
29
30 extern const long rtllib_wlan_frequencies[];
31
32 -extern inline void rtllib_increment_scans(struct rtllib_device *ieee)
33 +static inline void rtllib_increment_scans(struct rtllib_device *ieee)
34 {
35 ieee->scans++;
36 }
37
38 -extern inline int rtllib_get_scans(struct rtllib_device *ieee)
39 +static inline int rtllib_get_scans(struct rtllib_device *ieee)
40 {
41 return ieee->scans;
42 }
43 --- a/drivers/staging/rtl8192e/rtllib_softmac.c
44 +++ b/drivers/staging/rtl8192e/rtllib_softmac.c
45 @@ -341,7 +341,7 @@ inline void softmac_ps_mgmt_xmit(struct
46 }
47 }
48
49 -inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)
50 +static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)
51 {
52 unsigned int len, rate_len;
53 u8 *tag;