aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/find_bit.c
diff options
context:
space:
mode:
authorBhumika Goyal <[email protected]>2017-02-24 23:00:46 +0000
committerLinus Torvalds <[email protected]>2017-02-25 01:46:56 +0000
commit738bc38d49e017fe7acb3596712518e22c225816 (patch)
treef588e6b4b3e74b3401516170a04e01f00fc74b65 /tools/lib/find_bit.c
parentkernel/notifier.c: simplify expression (diff)
downloadkernel-738bc38d49e017fe7acb3596712518e22c225816.tar.gz
kernel-738bc38d49e017fe7acb3596712518e22c225816.zip
kernel/ksysfs.c: add __ro_after_init to bin_attribute structure
The object notes_attr of type bin_attribute is not modified after getting initailized by ksysfs_init. Apart from initialization in ksysfs_init it is also passed as an argument to the function sysfs_create_bin_file but this argument is of type const. Therefore, add __ro_after_init to its declaration. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Bhumika Goyal <[email protected]> Acked-by: Kees Cook <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions