From: Eric Biggers Date: Tue, 17 Jul 2018 17:43:56 +0000 (-0700) Subject: selinux: constify write_op[] X-Git-Tag: v5.15~7852^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=631d2b490569118c5e4d4e35983efe36d9798cb5;p=platform%2Fkernel%2Flinux-starfive.git selinux: constify write_op[] write_op[] is never modified, so make it 'const'. Signed-off-by: Eric Biggers Signed-off-by: Paul Moore --- diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index d64a06e..eb7f12a 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -773,7 +773,7 @@ static ssize_t sel_write_relabel(struct file *file, char *buf, size_t size); static ssize_t sel_write_user(struct file *file, char *buf, size_t size); static ssize_t sel_write_member(struct file *file, char *buf, size_t size); -static ssize_t (*write_op[])(struct file *, char *, size_t) = { +static ssize_t (*const write_op[])(struct file *, char *, size_t) = { [SEL_ACCESS] = sel_write_access, [SEL_CREATE] = sel_write_create, [SEL_RELABEL] = sel_write_relabel,