summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorLen Bao <len.bao@gmx.us>2026-05-23 16:28:01 +0300
committerJuergen Gross <jgross@suse.com>2026-06-08 10:01:02 +0300
commit19c5d6401d3d081f9194a7371ae3c3e5d7759efa (patch)
tree243412acd7c26d8fed564de28dda95217dbf45bf /include/linux/debugobjects.h
parentc1fd2c9f7f855caace046c789cdbf24628565d50 (diff)
downloadlinux-19c5d6401d3d081f9194a7371ae3c3e5d7759efa.tar.xz
xen/mcelog: mark g_physinfo, ncpus and xen_mce_chrdev_device as __ro_after_init
The 'g_physinfo' and 'ncpus' variables are initialized only during the init phase in the 'bind_virq_for_mce' function and never changed. So, mark them as __ro_after_init. The 'xen_mce_chrdev_device' variable is initialized only in the declaration and never changed. So, this variable could be 'const', but using the 'misc_register' and 'misc_deregister' functions discards the 'const' qualifier. Therefore, as an alternative, mark it as __ro_after_init. Signed-off-by: Len Bao <len.bao@gmx.us> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com> Message-ID: <20260523132802.25391-1-len.bao@gmx.us>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions