staging: rtl8723bs: replace symbolic permission with octal permission
PATCH 1/1 staging: rtl8723bs: replace symbolic permission with octal permission
Resolved following checkpatch issue:
WARNING: symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.
--- drivers/staging/rtl8723bs/os_dep/rtw_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/os_dep/rtw_proc.c +1 -1
@@ -21,7 +21,7 @@ inline struct proc_dir_entry *rtw_proc_create_dir(const char *name, struct proc_ {struct proc_dir_entry *entry; - entry =proc_mkdir_data (name,S_IRUGO |S_IXUGO , parent, data); + entry =proc_mkdir_data (name,0444 |0111 , parent, data);return entry; }
Signature · 1 line
2.17.1
gregkh at linuxfoundation.org (Greg KH)
PATCH 1/1 staging: rtl8723bs: replace symbolic permission with octal permission
Quoted 13 lines · Sushma Unnibhavi
Resolved following checkpatch issue:
WARNING: symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.Signed-off-by Sushma Unnibhavi <sushmaunnibhavi425 at gmail.com>--- drivers/staging/rtl8723bs/os_dep/rtw_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/rtl8723bs/os_dep/rtw_proc.c +0
-0
drivers/staging/rtl8723bs/os_dep/rtw_proc.c inline struct proc_dir_entry *rtw_proc_create_dir(const char *name, struct proc_ · line 24
Quoted 5 lines
drivers/staging/rtl8723bs/os_dep/rtw_proc.c +1
-1@@ -21,7 +21,7 @@ inline struct proc_dir_entry *rtw_proc_create_dir(const char *name, struct proc_ {struct proc_dir_entry *entry; - entry =proc_mkdir_data (name,S_IRUGO |S_IXUGO , parent, data); + entry =proc_mkdir_data (name,0444 |0111 , parent, data);
So, 0555 would be the correct value here, right? :)
Also, why are you only fixing this one warning in this file? There should be at least one more instance of this issue here.
And, as a meta-comment, this whole function should be removed, as it is not needed. And in reality, the whole proc file additions that this driver adds should be removed as they are pointless (no need for the version, and the debugging flag should be removed entirely and the in-kernel debugging functions used instead.)
So, you have lots of options for how to resolve this issue,
thanks,
greg k-h