[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1476711286-12560-1-git-send-email-mayhs11saini@gmail.com>
Date: Mon, 17 Oct 2016 19:04:46 +0530
From: Shyam Saini <mayhs11saini@...il.com>
To: gregkh@...uxfoundation.org
Cc: bankarsandhya512@...il.com, bmarsh94@...il.com,
eraretuya@...il.com, aquannie@...il.com,
linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org,
Shyam Saini <mayhs11saini@...il.com>
Subject: [PATCH 1/1] Staging: gs_fpgaboot: Use octal permissions '0444'
Fixed following checkpatch warning
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider
using octal permissions '0444'.
Signed-off-by: Shyam Saini <mayhs11saini@...il.com>
---
drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c b/drivers/staging/gs_fpgaboot/gs_fpgaboot.c
index 8ed4d39..19b550f 100644
--- a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c
+++ b/drivers/staging/gs_fpgaboot/gs_fpgaboot.c
@@ -38,7 +38,7 @@ static u8 bits_magic[] = {
static struct platform_device *firmware_pdev;
static char *file = "xlinx_fpga_firmware.bit";
-module_param(file, charp, S_IRUGO);
+module_param(file, charp, 0444);
MODULE_PARM_DESC(file, "Xilinx FPGA firmware file.");
static void read_bitstream(char *bitdata, char *buf, int *offset, int rdsize)
--
2.7.4
Powered by blists - more mailing lists