diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2023-03-02 21:28:25 +0100 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-04-13 20:49:20 +0200 |
commit | adf11ea8725bd7874b4aec6990c5807abcd5a00d (patch) | |
tree | c26707275dc9a17da72fb395a7475923fadd57eb /arch/csky | |
parent | seccomp: simplify sysctls with register_sysctl_init() (diff) | |
download | linux-adf11ea8725bd7874b4aec6990c5807abcd5a00d.tar.xz linux-adf11ea8725bd7874b4aec6990c5807abcd5a00d.zip |
csky: simplify alignment sysctl registration
Using register_sysctl_paths() is only required if we are using
leafs with entries but all we are doing is creates leafs with
just one leaf and then entries and register_sysctl_init() works
well with that already.
The 555 permission is already retained by the new_dir() proc
sysctl directory creator.
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'arch/csky')
-rw-r--r-- | arch/csky/abiv1/alignment.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/csky/abiv1/alignment.c b/arch/csky/abiv1/alignment.c index 2df115d0e210..b60259daed1b 100644 --- a/arch/csky/abiv1/alignment.c +++ b/arch/csky/abiv1/alignment.c @@ -332,22 +332,9 @@ static struct ctl_table alignment_tbl[5] = { {} }; -static struct ctl_table sysctl_table[2] = { - { - .procname = "csky_alignment", - .mode = 0555, - .child = alignment_tbl}, - {} -}; - -static struct ctl_path sysctl_path[2] = { - {.procname = "csky"}, - {} -}; - static int __init csky_alignment_init(void) { - register_sysctl_paths(sysctl_path, sysctl_table); + register_sysctl_init("csky/csky_alignment", alignment_tbl); return 0; } |