X-GM-THRID: 6463845646554103808 X-Received: by 10.46.4.147 with SMTP id a19mr479930ljf.44.1504982329263; Sat, 09 Sep 2017 11:38:49 -0700 (PDT) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.46.83.23 with SMTP id h23ls97276ljb.19.gmail; Sat, 09 Sep 2017 11:38:47 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDmNKu0QxJz+wrZMVr9HoXsPoCUs+XSkzD8Rjq7EPJadOPR38imnvAlrHgjrWs1u1bK4XYP X-Received: by 10.25.233.92 with SMTP id g89mr477278lfh.22.1504982327557; Sat, 09 Sep 2017 11:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504982327; cv=none; d=google.com; s=arc-20160816; b=Cli7pfWSHW/3BFSfp9EfzaXQ1jXp9P/GIlS1/7o1aQ/3ZbhUIQNNvLkVgSN1Qx3U2c a1uoWAsQt+m5ocbzOEzp17muJZLz1vsg9vMfENlQIIrjt279SVg/UhzRCnMb+91SEJB0 Whb2epWhoH1BCBFlNmwgOizSlPylkhmw/Wvmq030nxyanDrEXlbPu9t1lPOUIUl323e/ EayJ0PoL9KkAPCIi7bx3VnDjdPVlXpTuAVEPHZqyJvMyRoZ8mpFx8dbie1j+ysOBoUGY 0YNUX++KlHsCxMGQzdL0f/UA3+BmBEnmbw1kriSkcw55ufiyQtdccu2yIHATO7CIRIP0 DDUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:arc-authentication-results; bh=n6g+LM/YzV4ysW7b3F90ffMydpvH680I3fi2Irmfbgc=; b=VRnATCd2ea+5+3x/j85wHAETbGAGiHmEL9ApXmT102Nm1AniTVtv2WtBEwc+IhiVbi PSbosNXjQZ/YqnyY1MATeri93ajJpK3OJyFw7PkOS7DPBQpA3ubufyb72Ffe8Mg9NSnk P0wnE6mPujTlAaO/lxpbZnGQGVyIWFxV4HPh4lzqGrSj2rr/TUT8rwxYfSrc27VfXtZ3 qE2jBFNCZaZWhRWmR8lvlLgGPiu1PL/lO0mOk384/tbZ8DhFaxT1dlCfQzZixEvEYhMU vl+s0h7rIn9QHyuwUSLP+BI7Ac35vQNPXHcgRpEHEr1s/TXQH/sWDqsu11ZpJuqOcbTF x+Zw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 192.134.164.83 is neither permitted nor denied by domain of julia.lawall@lip6.fr) smtp.mailfrom=julia.lawall@lip6.fr Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr. [192.134.164.83]) by gmr-mx.google.com with ESMTPS id o7si169794wme.1.2017.09.09.11.38.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Sep 2017 11:38:47 -0700 (PDT) Received-SPF: neutral (google.com: 192.134.164.83 is neither permitted nor denied by domain of julia.lawall@lip6.fr) client-ip=192.134.164.83; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.134.164.83 is neither permitted nor denied by domain of julia.lawall@lip6.fr) smtp.mailfrom=julia.lawall@lip6.fr X-IronPort-AV: E=Sophos;i="5.42,368,1500933600"; d="scan'208";a="290302790" Received: from 85-171-60-79.rev.numericable.fr (HELO [192.168.0.15]) ([85.171.60.79]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Sep 2017 20:38:47 +0200 Date: Sat, 9 Sep 2017 20:38:46 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Harsha Sharma cc: Greg KH , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel Subject: Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: Add spaces around '=', '|', '<<' In-Reply-To: Message-ID: References: <1504981213-14584-1-git-send-email-harshasharmaiitr@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-69973821-1504982327=:2149" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-69973821-1504982327=:2149 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Sun, 10 Sep 2017, Harsha Sharma wrote: > Hi,Thanks for your feedback. > I checked patch with checkpatch.pl and thought will add spaces around '+' in > another patch as there are no. of such warnings. > Should I add them in this patch only or send another patch for it? Indeed, I only looked at the commit log, which referred to "most binary operators". Actually, I'm not sure that = is considered to be a binary operator. If you want to cut things up, perhaps you could do =, and then do the actual binary operators. But since they are going to be touching scattered places in the same file, the patches should be in a series. julia > > Regards, > Harsha Sharma > > > On Sat, Sep 9, 2017 at 11:56 PM, Julia Lawall wrote: > > > On Sat, 9 Sep 2017, Harsha Sharma wrote: > > > Use one space around most binary operators > > > > Signed-off-by: Harsha Sharma > > --- > >  drivers/staging/rtl8723bs/os_dep/os_intfs.c | 26 > +++++++++++++------------- > >  1 file changed, 13 insertions(+), 13 deletions(-) > > > > diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c > b/drivers/staging/rtl8723bs/os_dep/os_intfs.c > > index 0215899..0129381 100644 > > --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c > > +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c > > @@ -121,7 +121,7 @@ > > > >  static int rtw_enusbss = 0;/* 0:disable, 1:enable */ > > > > -static int rtw_hwpdn_mode =2;/* 0:disable, 1:enable, 2: by > EFUSE config */ > > +static int rtw_hwpdn_mode = 2;/* 0:disable, 1:enable, 2: by > EFUSE config */ > > > >  #ifdef CONFIG_HW_PWRP_DETECTION > >  static int rtw_hwpwrp_detect = 1; > > @@ -183,7 +183,7 @@ > > > >  module_param(rtw_hw_wps_pbc, int, 0644); > > > > -static uint rtw_max_roaming_times =2; > > +static uint rtw_max_roaming_times = 2; > >  module_param(rtw_max_roaming_times, uint, 0644); > >  MODULE_PARM_DESC(rtw_max_roaming_times,"The max roaming times > to try"); > > > > @@ -222,7 +222,7 @@ > >  /*  BIT4 - RF,                                       0: > non-support, 1: support */ > >  /*  BIT5 - RF_TXPWR_TRACK,   0: non-support, 1: support */ > >  /*  BIT6 - RF_TXPWR_LMT,             0: non-support, 1: > support */ > > -static int rtw_load_phy_file = (BIT2|BIT6); > > +static int rtw_load_phy_file = (BIT2 | BIT6); > >  module_param(rtw_load_phy_file, int, 0644); > >  MODULE_PARM_DESC(rtw_load_phy_file,"PHY File Bit Map"); > >  static int rtw_decrypt_phy_file = 0; > > @@ -255,8 +255,8 @@ static uint loadparam(struct adapter > *padapter, _nic_hdl pnetdev) > > > >       registry_par->vrtl_carrier_sense = > (u8)rtw_vrtl_carrier_sense ; > >       registry_par->vcs_type = (u8)rtw_vcs_type; > > -     registry_par->rts_thresh =(u16)rtw_rts_thresh; > > -     registry_par->frag_thresh =(u16)rtw_frag_thresh; > > +     registry_par->rts_thresh = (u16)rtw_rts_thresh; > > +     registry_par->frag_thresh = (u16)rtw_frag_thresh; > >       registry_par->preamble = (u8)rtw_preamble; > >       registry_par->scan_mode = (u8)rtw_scan_mode; > >       registry_par->adhoc_tx_pwr = (u8)rtw_adhoc_tx_pwr; > > @@ -440,7 +440,7 @@ u16 rtw_recv_select_queue(struct sk_buff > *skb) > >       u32 priority; > >       u8 *pdata = skb->data; > > > > -     memcpy(ð_type, pdata+(ETH_ALEN<<1), 2); > > +     memcpy(ð_type, pdata+(ETH_ALEN << 1), 2); > > The + should have space around it also. > > julia > > > > >       switch (be16_to_cpu(eth_type)) { > >               case ETH_P_IP: > > @@ -652,8 +652,8 @@ static u8 rtw_init_default_value(struct adapter > *padapter) > >  #ifdef CONFIG_GTK_OL > >       psecuritypriv->binstallKCK_KEK = _FAIL; > >  #endif /* CONFIG_GTK_OL */ > > -     psecuritypriv->sw_encrypt =pregistrypriv->software_encrypt; > > -     psecuritypriv->sw_decrypt =pregistrypriv->software_decrypt; > > +     psecuritypriv->sw_encrypt = pregistrypriv->software_encrypt; > > +     psecuritypriv->sw_decrypt = pregistrypriv->software_decrypt; > > > >       psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open; /* > open system */ > >       psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; > > @@ -748,7 +748,7 @@ u8 rtw_reset_drv_sw(struct adapter *padapter) > >       pmlmepriv->LinkDetectInfo.TrafficTransitionCount = 0; > >       pmlmepriv->LinkDetectInfo.LowPowerTransitionCount = 0; > > > > -     _clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY |_FW_UNDER_LINKING); > > +     _clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY | > _FW_UNDER_LINKING); > > > >       pwrctrlpriv->pwr_state_check_cnts = 0; > > > > @@ -777,7 +777,7 @@ u8 rtw_init_drv_sw(struct adapter *padapter) > >               goto exit; > >       } > > > > -     padapter->cmdpriv.padapter =padapter; > > +     padapter->cmdpriv.padapter = padapter; > > > >       if ((rtw_init_evt_priv(&padapter->evtpriv)) == _FAIL) { > >               RT_TRACE(_module_os_intfs_c_, _drv_err_, ("\n Can't > init evt_priv\n")); > > @@ -986,7 +986,7 @@ int _netdev_open(struct net_device *pnetdev) > > > >               DBG_871X("MAC Address = "MAC_FMT"\n", > MAC_ARG(pnetdev->dev_addr)); > > > > -             status =rtw_start_drv_threads(padapter); > > +             status = rtw_start_drv_threads(padapter); > >               if (status == _FAIL) { > >                       DBG_871X("Initialize driver software resource > Failed!\n"); > >                       goto netdev_open_error; > > @@ -1641,7 +1641,7 @@ int rtw_resume_process_wow(struct adapter > *padapter) > >               } > > > >               /* Disable WOW, set H2C command */ > > -             poidparam.subcode =WOWLAN_DISABLE; > > +             poidparam.subcode = WOWLAN_DISABLE; > >               padapter->HalFunc.SetHwRegHandler(padapter, > HW_VAR_WOWLAN, (u8 *)&poidparam); > > > >               psta = rtw_get_stainfo(&padapter->stapriv, > get_bssid(&padapter->mlmepriv)); > > @@ -1705,7 +1705,7 @@ int rtw_resume_process_wow(struct adapter > *padapter) > >               DBG_871X_LEVEL(_drv_always_, "do not reset timer\n"); > >       } > > > > -     pwrpriv->wowlan_mode =false; > > +     pwrpriv->wowlan_mode = false; > > > >       /* clean driver side wake up reason. */ > >       pwrpriv->wowlan_wake_reason = 0; > > -- > > 1.9.1 > > > > -- > > You received this message because you are subscribed to the Google > Groups "outreachy-kernel" group. > > To unsubscribe from this group and stop receiving emails from it, > send an email to outreachy-kernel+unsubscribe@googlegroups.com. > > To post to this group, send email to > outreachy-kernel@googlegroups.com. > > To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/1504981213-14584-1-git-s > end-email-harshasharmaiitr%40gmail.com. > > For more options, visit https://groups.google.com/d/optout. > > > > > > --8323329-69973821-1504982327=:2149--