treewide: mark stuff as __ro_after_init
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 11 Oct 2023 16:55:00 +0000 (19:55 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 18 Oct 2023 21:43:23 +0000 (14:43 -0700)
commit68279f9c9f592e75d30a9ba5154a15e0a0b42ae8
treeacbebe6f512f63e0bdcf876a4fb4991520a5499f
parent1b13a7030504da9d379270675166342e7039817c
treewide: mark stuff as __ro_after_init

__read_mostly predates __ro_after_init. Many variables which are marked
__read_mostly should have been __ro_after_init from day 1.

Also, mark some stuff as "const" and "__init" while I'm at it.

[akpm@linux-foundation.org: revert sysctl_nr_open_min, sysctl_nr_open_max changes due to arm warning]
[akpm@linux-foundation.org: coding-style cleanups]
Link: https://lkml.kernel.org/r/4f6bb9c0-abba-4ee4-a7aa-89265e886817@p183
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
26 files changed:
block/bdev.c
fs/anon_inodes.c
fs/buffer.c
fs/char_dev.c
fs/dcache.c
fs/direct-io.c
fs/eventpoll.c
fs/fcntl.c
fs/file_table.c
fs/inode.c
fs/kernfs/mount.c
fs/locks.c
fs/namespace.c
fs/notify/dnotify/dnotify.c
fs/notify/fanotify/fanotify_user.c
fs/notify/inotify/inotify_user.c
fs/pipe.c
fs/userfaultfd.c
kernel/audit_tree.c
kernel/sched/core.c
kernel/user_namespace.c
kernel/workqueue.c
lib/debugobjects.c
mm/khugepaged.c
mm/shmem.c
security/integrity/iint.c