Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

driver: base: Replace symbolic permissions with octal permissions

Resolve following checkpatch issue,
Replace symbolic permissions with octal permissions

Signed-off-by: Jinchao Wang <wjc@cdjrlc.com>
Link: https://lore.kernel.org/r/20210626094606.53152-1-wjc@cdjrlc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jinchao Wang and committed by
Greg Kroah-Hartman
16b0dd40 fc7a6209

+4 -4
+3 -3
drivers/base/bus.c
··· 195 195 bus_put(bus); 196 196 return err; 197 197 } 198 - static DRIVER_ATTR_IGNORE_LOCKDEP(unbind, S_IWUSR, NULL, unbind_store); 198 + static DRIVER_ATTR_IGNORE_LOCKDEP(unbind, 0200, NULL, unbind_store); 199 199 200 200 /* 201 201 * Manually attach a device to a driver. ··· 221 221 bus_put(bus); 222 222 return err; 223 223 } 224 - static DRIVER_ATTR_IGNORE_LOCKDEP(bind, S_IWUSR, NULL, bind_store); 224 + static DRIVER_ATTR_IGNORE_LOCKDEP(bind, 0200, NULL, bind_store); 225 225 226 226 static ssize_t drivers_autoprobe_show(struct bus_type *bus, char *buf) 227 227 { ··· 767 767 * DEVICE_ATTR_WO(uevent), which would cause a clash with the with the store 768 768 * function name. 769 769 */ 770 - static struct bus_attribute bus_attr_uevent = __ATTR(uevent, S_IWUSR, NULL, 770 + static struct bus_attribute bus_attr_uevent = __ATTR(uevent, 0200, NULL, 771 771 bus_uevent_store); 772 772 773 773 /**
+1 -1
drivers/base/power/wakeup.c
··· 1180 1180 1181 1181 static int __init wakeup_sources_debugfs_init(void) 1182 1182 { 1183 - debugfs_create_file("wakeup_sources", S_IRUGO, NULL, NULL, 1183 + debugfs_create_file("wakeup_sources", 0444, NULL, NULL, 1184 1184 &wakeup_sources_stats_fops); 1185 1185 return 0; 1186 1186 }