From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6387793530273660928 Date: Thu, 16 Feb 2017 11:44:07 -0800 (PST) From: SIMRAN SINGHAL To: outreachy-kernel Message-Id: <5fb34db6-a0f0-433f-8d40-49002332e38e@googlegroups.com> In-Reply-To: <20170216194114.GA17810@singhal-Inspiron-5558> References: <20170216194114.GA17810@singhal-Inspiron-5558> Subject: Re: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_11950_1164770189.1487274247344" X-Google-Token: EIeCmMUFIOM6SHLlZBU0 X-Google-IP: 14.139.82.6 ------=_Part_11950_1164770189.1487274247344 Content-Type: multipart/alternative; boundary="----=_Part_11951_1763538018.1487274247344" ------=_Part_11951_1763538018.1487274247344 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Friday, February 17, 2017 at 1:11:19 AM UTC+5:30, SIMRAN SINGHAL wrote: > > linux-kernel@vger.kernel.org > Bcc: > Subject: [PATCH 1/3] staging: rtl8192u: Replace symbolic permissions with > octal permissions > Reply-To: > > WARNING: Symbolic permissions 'S_IRUGO | S_IWUSR' are not preferred. > Consider using octal permissions '0644'. > This warning is detected by checkpatch.pl > > Signed-off-by: simran singhal > --- > drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c > b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c > index a9a92d8..2ebc320 100644 > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c > @@ -283,7 +283,7 @@ int __init ieee80211_debug_init(void) > " proc directory\n"); > return -EIO; > } > - e = proc_create("debug_level", S_IRUGO | S_IWUSR, > + e = proc_create("debug_level", 0644, > ieee80211_proc, &fops); > if (!e) { > remove_proc_entry(DRV_NAME, init_net.proc_net); > -- > 2.7.4 > > Sorry, Ignore this. ------=_Part_11951_1763538018.1487274247344 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Friday, February 17, 2017 at 1:11:19 AM UTC+5:3= 0, SIMRAN SINGHAL wrote:
linux-kernel@vger.kernel.org
Bcc:=20
Subject: [PATCH 1/3] staging: rtl8192u: Replace symbolic permissions wi= th
=C2=A0octal permissions
Reply-To:=20

WARNING: Symbolic permissions 'S_IRUGO | S_IWUSR' are not prefe= rred.
Consider using octal permissions '0644'.
This warning is detected by checkpatch.pl

Signed-off-by: simran singhal <singhalsimran0@gmail.= com>
---
=C2=A0drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 +-
=C2=A01 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c= b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
index a9a92d8..2ebc320 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
@@ -283,7 +283,7 @@ int __init ieee80211_debug_init(void)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0" proc dire= ctory\n");
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return -EIO;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}
-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0e =3D proc_create(&quo= t;debug_level", S_IRUGO | S_IWUSR,
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0e =3D proc_create(&quo= t;debug_level", 0644,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0ieee80211_proc, &fops);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if (!e) {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0remove_proc_entry(DRV_NAME, init_net.= proc_net);
--=20
2.7.4


Sorry, Ignore this.
------=_Part_11951_1763538018.1487274247344-- ------=_Part_11950_1164770189.1487274247344--