Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1553579

[PATCH 1/2] Staging: unisys: visorbus: style fix, using octal file permissions

From Derek Robson <robsonde@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] Staging: unisys: visorbus: style fix, using octal file permissions
Date 2017-01-07 04:50 +0100
Message-ID <sWQb0-3hd-5@gated-at.bofh.it> (permalink)
References <sWQb0-3hd-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Changed file permissions to octal style.
Found with checkpatch

Signed-off-by: Derek Robson <robsonde@gmail.com>
---
 drivers/staging/unisys/visorbus/visorbus_main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
index 3457ef338e1e..28ca291a4053 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -984,7 +984,7 @@ create_bus_instance(struct visor_device *dev)
 		goto err_hdr_info;
 	}
 	dev->debugfs_client_bus_info =
-		debugfs_create_file("client_bus_info", S_IRUSR | S_IRGRP,
+		debugfs_create_file("client_bus_info", 0440,
 				    dev->debugfs_dir, dev,
 				    &client_bus_info_debugfs_fops);
 	if (!dev->debugfs_client_bus_info) {
@@ -1337,10 +1337,10 @@ visorbus_exit(void)
 	debugfs_remove_recursive(visorbus_debugfs_dir);
 }
 
-module_param_named(forcematch, visorbus_forcematch, int, S_IRUGO);
+module_param_named(forcematch, visorbus_forcematch, int, 0444);
 MODULE_PARM_DESC(visorbus_forcematch,
 		 "1 to force a successful dev <--> drv match");
 
-module_param_named(forcenomatch, visorbus_forcenomatch, int, S_IRUGO);
+module_param_named(forcenomatch, visorbus_forcenomatch, int, 0444);
 MODULE_PARM_DESC(visorbus_forcenomatch,
 		 "1 to force an UNsuccessful dev <--> drv match");
-- 
2.11.0

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] Staging: unisys: visorbus: style fix, using octal file permissions Derek Robson <robsonde@gmail.com> - 2017-01-07 04:50 +0100
  [PATCH 1/2] Staging: unisys: visorbus: style fix, using octal file permissions Derek Robson <robsonde@gmail.com> - 2017-01-07 04:50 +0100
  RE: [PATCH 0/2] Staging: unisys: visorbus: style fix, using octal  file permissions "Kershner, David A" <David.Kershner@unisys.com> - 2017-01-07 06:00 +0100
  Re: [PATCH 0/2] Staging: unisys: visorbus: style fix, using octal  file permissions Greg KH <gregkh@linuxfoundation.org> - 2017-01-07 08:50 +0100
  Re: [PATCH 0/2] Staging: unisys: visorbus: style fix, using octal  file permissions Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-01-09 21:20 +0100

csiph-web