]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kernel.h: move VERIFY_OCTAL_PERMISSIONS() to sysfs.h
authorYury Norov <ynorov@nvidia.com>
Fri, 16 Jan 2026 04:25:06 +0000 (23:25 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 1 Feb 2026 00:16:05 +0000 (16:16 -0800)
commit90ddd39b881df74b14918cee031154f6ddb7af33
treecccf954bacb5b40225434e73ab343cb01864e732
parent25b66674b1036c1eb3069bf62329a9c60850d782
kernel.h: move VERIFY_OCTAL_PERMISSIONS() to sysfs.h

The macro is related to sysfs, but is defined in kernel.h.  Move it to the
proper header, and unload the generic kernel.h.

Now that the macro is removed from kernel.h, linux/moduleparam.h is
decoupled, and kernel.h inclusion can be removed.

Link: https://lkml.kernel.org/r/20260116042510.241009-4-ynorov@nvidia.com
Signed-off-by: Yury Norov <ynorov@nvidia.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Cc: Aaron Tomlin <atomlin@atomlin.com>
Cc: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/filesystems/sysfs.rst
include/linux/kernel.h
include/linux/moduleparam.h
include/linux/sysfs.h