Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp148703ybe; Wed, 4 Sep 2019 16:57:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2uhDyVodAHGT2YLRaZcZ1HsejWC4WV4XgFFBzJ+WpXjtAjqHYO0gMh8hqx8jRGpygs5nu X-Received: by 2002:a62:4e09:: with SMTP id c9mr395053pfb.152.1567641457562; Wed, 04 Sep 2019 16:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567641457; cv=none; d=google.com; s=arc-20160816; b=Rr7sUonU1ir9+AJI0mtpZtk9hEjc29f7LDZHw/IlFMPjQxLCMeHQ8BGWPV/ZzRQLaj Xh6p745Mt+Qf4RN0Q4spP/OFtFIJFvWcAS56G2OGBekrMOQcrdYD3ykYbe5eSZXyApXF +dO2Vfja/44ZMUX8gIkM+xct+vcrSX7bNRme51T7DoqooHenKzQmYOTF10MCDvZIOyDU lsXQGkkpe5ggq3tZUUacZcCyIbrqLX5+WzW57fK7cAs08ifGQwJJd7uDX+CTG/98eGoD 0E/B3M4Tpb7mTaqp2y9X60hxlDedxs3NzeEN500mZHwCsl60wNj/BtdpRMaYs1lnGY43 kdFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=K7oj7WMdA8OUr0BxuCae9udUBm8f53VQElGKXXmvHVE=; b=VBJh8EyP0DSZCIuSPbTqkT7pinpoEympC3vZR6l6C3s4dO+ukAw0h6eR5RBtuQDRqP lzvsjnb4uA8ympGtw5U8BCDuCNaBkGzuxqUTzVeMYOieE1OU+YCBkNzCkonkE/vhNsqM icaTVUA+GS6eQRIMwlu807SSxb/PSmaXMgBCWRWlEdiJatEb1GvDNZ7gxvUYNuddssCh 0jjzv1fYrk1ehxi1Km5Pwgf9mhWkJDYgYdF1L0p/8GRqChCMA2PdXlg8mpZgeVayio1R w0We93Vwq0uMXBqUNnOIJEX3qn8JNZgGcC+Xgn9LzdUtFl99/GLFv6CfgZaKaQMXEvAt ZEYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JDUP7Srp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si359203pll.206.2019.09.04.16.57.21; Wed, 04 Sep 2019 16:57:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JDUP7Srp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730603AbfIDXye (ORCPT + 99 others); Wed, 4 Sep 2019 19:54:34 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44397 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729919AbfIDXye (ORCPT ); Wed, 4 Sep 2019 19:54:34 -0400 Received: by mail-pg1-f193.google.com with SMTP id i18so301585pgl.11 for ; Wed, 04 Sep 2019 16:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K7oj7WMdA8OUr0BxuCae9udUBm8f53VQElGKXXmvHVE=; b=JDUP7SrplpHtJgneCdv40vH5igoj3Aj8mF1W6HX+UFwIhh2QEy3z0QX6Z6gv/27Ztu SFE65UXMa/oKTbTakhqEDL9g1HK2PXm7PDpgRMPpVCzIFfEfpHlClOjX4nbikbvrFVrN hgd5RlVD6r2na9/yXfYKCIn5qPZXTQ2DLd32DygK0Jvwua9r+/nAYv1/DchFWZrRChEs KMBZ47ylyZIn7hKziI1yeuDQBVGehvK+aIVV5mpZauwPGvo9ZBYUkFqNsS9RBSX0yep5 jDoklsLQohtJ99SaG7Z9OQ6w0k0kVkrMyttxGkGWGXlJ8SN63HdQ+BNcZH3ThlrsXFXE qmtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K7oj7WMdA8OUr0BxuCae9udUBm8f53VQElGKXXmvHVE=; b=Fk4EMMHoz+U8B3UrKiMqMmJWbS/IQmEzXMoOmBvrS7zuGkMjW79PWXwHrtetLTztFH K5CkiB2fhmrYBUlA0piLgU/dWM5pbK2ZPs9Bjqz6IJ/7HznqxeJAcXpOOMfzfT5pY4Pf gOOHpzEJpK7sNpXp4axOwzJBVUvOooAB9heTKE1UkVSSKPnYXu4c5AvLOexf0FQeaFG9 huBt6SA8nMnMTVlqVvrXWfsqD0tv9LR/dsJ7uyIgvRvgpKU/ig84Sbj8jhzTMYKvMiIr AO1kDHznjOnm2RSjBaPtjv5uadHumzhBK2Eic69vF75VIWkueNG8hxTbseeJVxUidJGK M3cg== X-Gm-Message-State: APjAAAV3yA4Sk5BnFyt5PEtAZmxaKWWFMLvd+Tc043GPLvaowj2kCl95 KVmLy4JX9eYpU5E5pOnzmj6vxv1qW3nuHIhpoMGAoOhddP8= X-Received: by 2002:a65:690b:: with SMTP id s11mr622871pgq.10.1567641271833; Wed, 04 Sep 2019 16:54:31 -0700 (PDT) MIME-Version: 1.0 References: <20190829083233.24162-1-linux@rasmusvillemoes.dk> <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190830231527.22304-2-linux@rasmusvillemoes.dk> In-Reply-To: <20190830231527.22304-2-linux@rasmusvillemoes.dk> From: Nick Desaulniers Date: Wed, 4 Sep 2019 16:54:20 -0700 Message-ID: Subject: Re: [PATCH v2 1/6] staging: rtl8723bs: replace __inline by inline To: Rasmus Villemoes Cc: "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Nadav Amit , Linus Torvalds , Miguel Ojeda , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2019 at 4:15 PM Rasmus Villemoes wrote: > > Currently, __inline is #defined as inline in compiler_types.h, so this > should not change functionality. It is preparation for removing said > #define. > > While at it, change some "inline static" to the customary "static > inline" order. > > Signed-off-by: Rasmus Villemoes Reviewed-by: Nick Desaulniers > --- > drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 4 ++-- > drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 2 +- > drivers/staging/rtl8723bs/include/drv_types.h | 6 +++--- > .../staging/rtl8723bs/include/osdep_service.h | 10 +++++----- > .../rtl8723bs/include/osdep_service_linux.h | 14 +++++++------- > drivers/staging/rtl8723bs/include/rtw_mlme.h | 14 +++++++------- > drivers/staging/rtl8723bs/include/rtw_recv.h | 16 ++++++++-------- > drivers/staging/rtl8723bs/include/sta_info.h | 2 +- > drivers/staging/rtl8723bs/include/wifi.h | 14 +++++++------- > drivers/staging/rtl8723bs/include/wlan_bssdef.h | 2 +- > 10 files changed, 42 insertions(+), 42 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c > index ae7fb7046c93..3750fbaeec4f 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c > +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c > @@ -830,12 +830,12 @@ static void pwr_rpwm_timeout_handler(struct timer_list *t) > _set_workitem(&pwrpriv->rpwmtimeoutwi); > } > > -static __inline void register_task_alive(struct pwrctrl_priv *pwrctrl, u32 tag) > +static inline void register_task_alive(struct pwrctrl_priv *pwrctrl, u32 tag) > { > pwrctrl->alives |= tag; > } > > -static __inline void unregister_task_alive(struct pwrctrl_priv *pwrctrl, u32 tag) > +static inline void unregister_task_alive(struct pwrctrl_priv *pwrctrl, u32 tag) > { > pwrctrl->alives &= ~tag; > } > diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c > index 76c50377f0fe..34e1ce1b0689 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c > +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c > @@ -451,7 +451,7 @@ void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigne > mutex_unlock(&(adapter_to_dvobj(padapter)->setch_mutex)); > } > > -__inline u8 *get_my_bssid(struct wlan_bssid_ex *pnetwork) > +inline u8 *get_my_bssid(struct wlan_bssid_ex *pnetwork) > { > return pnetwork->MacAddress; > } > diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h > index 96346ce064aa..d3648f3b1de2 100644 > --- a/drivers/staging/rtl8723bs/include/drv_types.h > +++ b/drivers/staging/rtl8723bs/include/drv_types.h > @@ -478,7 +478,7 @@ struct sdio_data intf_data; > #define dvobj_to_pwrctl(dvobj) (&(dvobj->pwrctl_priv)) > #define pwrctl_to_dvobj(pwrctl) container_of(pwrctl, struct dvobj_priv, pwrctl_priv) > > -__inline static struct device *dvobj_to_dev(struct dvobj_priv *dvobj) > +static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj) > { > /* todo: get interface type from dvobj and the return the dev accordingly */ > #ifdef RTW_DVOBJ_CHIP_HW_TYPE > @@ -636,14 +636,14 @@ struct adapter { > > /* define RTW_DISABLE_FUNC(padapter, func) (atomic_add(&adapter_to_dvobj(padapter)->disable_func, (func))) */ > /* define RTW_ENABLE_FUNC(padapter, func) (atomic_sub(&adapter_to_dvobj(padapter)->disable_func, (func))) */ > -__inline static void RTW_DISABLE_FUNC(struct adapter *padapter, int func_bit) > +static inline void RTW_DISABLE_FUNC(struct adapter *padapter, int func_bit) > { > int df = atomic_read(&adapter_to_dvobj(padapter)->disable_func); > df |= func_bit; > atomic_set(&adapter_to_dvobj(padapter)->disable_func, df); > } > > -__inline static void RTW_ENABLE_FUNC(struct adapter *padapter, int func_bit) > +static inline void RTW_ENABLE_FUNC(struct adapter *padapter, int func_bit) > { > int df = atomic_read(&adapter_to_dvobj(padapter)->disable_func); > df &= ~(func_bit); > diff --git a/drivers/staging/rtl8723bs/include/osdep_service.h b/drivers/staging/rtl8723bs/include/osdep_service.h > index d2616af95ffa..81a9c19ecc6a 100644 > --- a/drivers/staging/rtl8723bs/include/osdep_service.h > +++ b/drivers/staging/rtl8723bs/include/osdep_service.h > @@ -110,12 +110,12 @@ int _rtw_netif_rx(_nic_hdl ndev, struct sk_buff *skb); > > extern void _rtw_init_queue(struct __queue *pqueue); > > -static __inline void thread_enter(char *name) > +static inline void thread_enter(char *name) > { > allow_signal(SIGTERM); > } > > -__inline static void flush_signals_thread(void) > +static inline void flush_signals_thread(void) > { > if (signal_pending (current)) > { > @@ -125,7 +125,7 @@ __inline static void flush_signals_thread(void) > > #define rtw_warn_on(condition) WARN_ON(condition) > > -__inline static int rtw_bug_check(void *parg1, void *parg2, void *parg3, void *parg4) > +static inline int rtw_bug_check(void *parg1, void *parg2, void *parg3, void *parg4) > { > int ret = true; > > @@ -136,7 +136,7 @@ __inline static int rtw_bug_check(void *parg1, void *parg2, void *parg3, void *p > #define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r)) > #define RND4(x) (((x >> 2) + (((x & 3) == 0) ? 0: 1)) << 2) > > -__inline static u32 _RND4(u32 sz) > +static inline u32 _RND4(u32 sz) > { > > u32 val; > @@ -147,7 +147,7 @@ __inline static u32 _RND4(u32 sz) > > } > > -__inline static u32 _RND8(u32 sz) > +static inline u32 _RND8(u32 sz) > { > > u32 val; > diff --git a/drivers/staging/rtl8723bs/include/osdep_service_linux.h b/drivers/staging/rtl8723bs/include/osdep_service_linux.h > index 2f1b51e614fb..c582ede1ac12 100644 > --- a/drivers/staging/rtl8723bs/include/osdep_service_linux.h > +++ b/drivers/staging/rtl8723bs/include/osdep_service_linux.h > @@ -64,12 +64,12 @@ > > typedef struct work_struct _workitem; > > -__inline static struct list_head *get_next(struct list_head *list) > +static inline struct list_head *get_next(struct list_head *list) > { > return list->next; > } > > -__inline static struct list_head *get_list_head(struct __queue *queue) > +static inline struct list_head *get_list_head(struct __queue *queue) > { > return (&(queue->queue)); > } > @@ -78,28 +78,28 @@ __inline static struct list_head *get_list_head(struct __queue *queue) > #define LIST_CONTAINOR(ptr, type, member) \ > container_of(ptr, type, member) > > -__inline static void _set_timer(_timer *ptimer, u32 delay_time) > +static inline void _set_timer(_timer *ptimer, u32 delay_time) > { > mod_timer(ptimer , (jiffies+(delay_time*HZ/1000))); > } > > -__inline static void _cancel_timer(_timer *ptimer, u8 *bcancelled) > +static inline void _cancel_timer(_timer *ptimer, u8 *bcancelled) > { > del_timer_sync(ptimer); > *bcancelled = true;/* true == 1; false == 0 */ > } > > -__inline static void _init_workitem(_workitem *pwork, void *pfunc, void *cntx) > +static inline void _init_workitem(_workitem *pwork, void *pfunc, void *cntx) > { > INIT_WORK(pwork, pfunc); > } > > -__inline static void _set_workitem(_workitem *pwork) > +static inline void _set_workitem(_workitem *pwork) > { > schedule_work(pwork); > } > > -__inline static void _cancel_workitem_sync(_workitem *pwork) > +static inline void _cancel_workitem_sync(_workitem *pwork) > { > cancel_work_sync(pwork); > } > diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme.h b/drivers/staging/rtl8723bs/include/rtw_mlme.h > index d3c07d1c36e9..4282dfa70b79 100644 > --- a/drivers/staging/rtl8723bs/include/rtw_mlme.h > +++ b/drivers/staging/rtl8723bs/include/rtw_mlme.h > @@ -498,13 +498,13 @@ extern sint rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv); > extern sint rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, sint keyid, u8 set_tx, bool enqueue); > extern sint rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv); > > -__inline static u8 *get_bssid(struct mlme_priv *pmlmepriv) > +static inline u8 *get_bssid(struct mlme_priv *pmlmepriv) > { /* if sta_mode:pmlmepriv->cur_network.network.MacAddress => bssid */ > /* if adhoc_mode:pmlmepriv->cur_network.network.MacAddress => ibss mac address */ > return pmlmepriv->cur_network.network.MacAddress; > } > > -__inline static sint check_fwstate(struct mlme_priv *pmlmepriv, sint state) > +static inline sint check_fwstate(struct mlme_priv *pmlmepriv, sint state) > { > if (pmlmepriv->fw_state & state) > return true; > @@ -512,7 +512,7 @@ __inline static sint check_fwstate(struct mlme_priv *pmlmepriv, sint state) > return false; > } > > -__inline static sint get_fwstate(struct mlme_priv *pmlmepriv) > +static inline sint get_fwstate(struct mlme_priv *pmlmepriv) > { > return pmlmepriv->fw_state; > } > @@ -524,7 +524,7 @@ __inline static sint get_fwstate(struct mlme_priv *pmlmepriv) > * ### NOTE:#### (!!!!) > * MUST TAKE CARE THAT BEFORE CALLING THIS FUNC, YOU SHOULD HAVE LOCKED pmlmepriv->lock > */ > -__inline static void set_fwstate(struct mlme_priv *pmlmepriv, sint state) > +static inline void set_fwstate(struct mlme_priv *pmlmepriv, sint state) > { > pmlmepriv->fw_state |= state; > /* FOR HW integration */ > @@ -533,7 +533,7 @@ __inline static void set_fwstate(struct mlme_priv *pmlmepriv, sint state) > } > } > > -__inline static void _clr_fwstate_(struct mlme_priv *pmlmepriv, sint state) > +static inline void _clr_fwstate_(struct mlme_priv *pmlmepriv, sint state) > { > pmlmepriv->fw_state &= ~state; > /* FOR HW integration */ > @@ -546,7 +546,7 @@ __inline static void _clr_fwstate_(struct mlme_priv *pmlmepriv, sint state) > * No Limit on the calling context, > * therefore set it to be the critical section... > */ > -__inline static void clr_fwstate(struct mlme_priv *pmlmepriv, sint state) > +static inline void clr_fwstate(struct mlme_priv *pmlmepriv, sint state) > { > spin_lock_bh(&pmlmepriv->lock); > if (check_fwstate(pmlmepriv, state) == true) > @@ -554,7 +554,7 @@ __inline static void clr_fwstate(struct mlme_priv *pmlmepriv, sint state) > spin_unlock_bh(&pmlmepriv->lock); > } > > -__inline static void set_scanned_network_val(struct mlme_priv *pmlmepriv, sint val) > +static inline void set_scanned_network_val(struct mlme_priv *pmlmepriv, sint val) > { > spin_lock_bh(&pmlmepriv->lock); > pmlmepriv->num_of_scanned = val; > diff --git a/drivers/staging/rtl8723bs/include/rtw_recv.h b/drivers/staging/rtl8723bs/include/rtw_recv.h > index 5de946e66302..012d8f54814f 100644 > --- a/drivers/staging/rtl8723bs/include/rtw_recv.h > +++ b/drivers/staging/rtl8723bs/include/rtw_recv.h > @@ -405,7 +405,7 @@ struct recv_buf *rtw_dequeue_recvbuf (struct __queue *queue); > > void rtw_reordering_ctrl_timeout_handler(struct timer_list *t); > > -__inline static u8 *get_rxmem(union recv_frame *precvframe) > +static inline u8 *get_rxmem(union recv_frame *precvframe) > { > /* always return rx_head... */ > if (precvframe == NULL) > @@ -414,7 +414,7 @@ __inline static u8 *get_rxmem(union recv_frame *precvframe) > return precvframe->u.hdr.rx_head; > } > > -__inline static u8 *get_recvframe_data(union recv_frame *precvframe) > +static inline u8 *get_recvframe_data(union recv_frame *precvframe) > { > > /* alwasy return rx_data */ > @@ -425,7 +425,7 @@ __inline static u8 *get_recvframe_data(union recv_frame *precvframe) > > } > > -__inline static u8 *recvframe_pull(union recv_frame *precvframe, sint sz) > +static inline u8 *recvframe_pull(union recv_frame *precvframe, sint sz) > { > /* rx_data += sz; move rx_data sz bytes hereafter */ > > @@ -450,7 +450,7 @@ __inline static u8 *recvframe_pull(union recv_frame *precvframe, sint sz) > > } > > -__inline static u8 *recvframe_put(union recv_frame *precvframe, sint sz) > +static inline u8 *recvframe_put(union recv_frame *precvframe, sint sz) > { > /* rx_tai += sz; move rx_tail sz bytes hereafter */ > > @@ -479,7 +479,7 @@ __inline static u8 *recvframe_put(union recv_frame *precvframe, sint sz) > > > > -__inline static u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz) > +static inline u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz) > { > /* rmv data from rx_tail (by yitsen) */ > > @@ -503,7 +503,7 @@ __inline static u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz) > > } > > -__inline static union recv_frame *rxmem_to_recvframe(u8 *rxmem) > +static inline union recv_frame *rxmem_to_recvframe(u8 *rxmem) > { > /* due to the design of 2048 bytes alignment of recv_frame, we can reference the union recv_frame */ > /* from any given member of recv_frame. */ > @@ -513,13 +513,13 @@ __inline static union recv_frame *rxmem_to_recvframe(u8 *rxmem) > > } > > -__inline static sint get_recvframe_len(union recv_frame *precvframe) > +static inline sint get_recvframe_len(union recv_frame *precvframe) > { > return precvframe->u.hdr.len; > } > > > -__inline static s32 translate_percentage_to_dbm(u32 SignalStrengthIndex) > +static inline s32 translate_percentage_to_dbm(u32 SignalStrengthIndex) > { > s32 SignalPower; /* in dBm. */ > > diff --git a/drivers/staging/rtl8723bs/include/sta_info.h b/drivers/staging/rtl8723bs/include/sta_info.h > index b9df42d0677e..3acce5630f8e 100644 > --- a/drivers/staging/rtl8723bs/include/sta_info.h > +++ b/drivers/staging/rtl8723bs/include/sta_info.h > @@ -348,7 +348,7 @@ struct sta_priv { > }; > > > -__inline static u32 wifi_mac_hash(u8 *mac) > +static inline u32 wifi_mac_hash(u8 *mac) > { > u32 x; > > diff --git a/drivers/staging/rtl8723bs/include/wifi.h b/drivers/staging/rtl8723bs/include/wifi.h > index 8c50bbb20f3b..2faf83704ff0 100644 > --- a/drivers/staging/rtl8723bs/include/wifi.h > +++ b/drivers/staging/rtl8723bs/include/wifi.h > @@ -347,7 +347,7 @@ enum WIFI_REG_DOMAIN { > (addr[4] == 0xff) && (addr[5] == 0xff)) ? true : false \ > ) > > -__inline static int IS_MCAST(unsigned char *da) > +static inline int IS_MCAST(unsigned char *da) > { > if ((*da) & 0x01) > return true; > @@ -355,20 +355,20 @@ __inline static int IS_MCAST(unsigned char *da) > return false; > } > > -__inline static unsigned char * get_ra(unsigned char *pframe) > +static inline unsigned char * get_ra(unsigned char *pframe) > { > unsigned char *ra; > ra = GetAddr1Ptr(pframe); > return ra; > } > -__inline static unsigned char * get_ta(unsigned char *pframe) > +static inline unsigned char * get_ta(unsigned char *pframe) > { > unsigned char *ta; > ta = GetAddr2Ptr(pframe); > return ta; > } > > -__inline static unsigned char * get_da(unsigned char *pframe) > +static inline unsigned char * get_da(unsigned char *pframe) > { > unsigned char *da; > unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); > @@ -392,7 +392,7 @@ __inline static unsigned char * get_da(unsigned char *pframe) > } > > > -__inline static unsigned char * get_sa(unsigned char *pframe) > +static inline unsigned char * get_sa(unsigned char *pframe) > { > unsigned char *sa; > unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); > @@ -415,7 +415,7 @@ __inline static unsigned char * get_sa(unsigned char *pframe) > return sa; > } > > -__inline static unsigned char * get_hdr_bssid(unsigned char *pframe) > +static inline unsigned char * get_hdr_bssid(unsigned char *pframe) > { > unsigned char *sa = NULL; > unsigned int to_fr_ds = (GetToDs(pframe) << 1) | GetFrDs(pframe); > @@ -439,7 +439,7 @@ __inline static unsigned char * get_hdr_bssid(unsigned char *pframe) > } > > > -__inline static int IsFrameTypeCtrl(unsigned char *pframe) > +static inline int IsFrameTypeCtrl(unsigned char *pframe) > { > if (WIFI_CTRL_TYPE == GetFrameType(pframe)) > return true; > diff --git a/drivers/staging/rtl8723bs/include/wlan_bssdef.h b/drivers/staging/rtl8723bs/include/wlan_bssdef.h > index 88890b1c3c4c..723fc5b546ef 100644 > --- a/drivers/staging/rtl8723bs/include/wlan_bssdef.h > +++ b/drivers/staging/rtl8723bs/include/wlan_bssdef.h > @@ -223,7 +223,7 @@ struct wlan_bssid_ex { > u8 IEs[MAX_IE_SZ]; /* timestamp, beacon interval, and capability information) */ > } __packed; > > -__inline static uint get_wlan_bssid_ex_sz(struct wlan_bssid_ex *bss) > +static inline uint get_wlan_bssid_ex_sz(struct wlan_bssid_ex *bss) > { > return (sizeof(struct wlan_bssid_ex) - MAX_IE_SZ + bss->IELength); > } > -- > 2.20.1 > -- Thanks, ~Nick Desaulniers