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

ACPI: proc: Prefer to use octal permission

Octal permissions are preferred over the symbolics ones
for readbility. This ceases warning message pointed by checkpatch.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250612201321.3536493-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Andy Shevchenko and committed by
Rafael J. Wysocki
acec3f6a 86dc11cd

+1 -2
+1 -2
drivers/acpi/proc.c
··· 139 139 void __init acpi_sleep_proc_init(void) 140 140 { 141 141 /* 'wakeup device' [R/W] */ 142 - proc_create("wakeup", S_IFREG | S_IRUGO | S_IWUSR, 143 - acpi_root_dir, &acpi_system_wakeup_device_proc_ops); 142 + proc_create("wakeup", 0644, acpi_root_dir, &acpi_system_wakeup_device_proc_ops); 144 143 }