On Tue, Jan 25, 2022 at 9:15 AM Christian Göttsche <cgzones@xxxxxxxxxxxxxx> wrote: > > The parameter of selinux_cred() is declared const, so an explicit cast > dropping the const qualifier is not necessary. Without the cast the > local variable cred serves no purpose. > > Reported by clang [-Wcast-qual] > > Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx> > --- > security/selinux/hooks.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Merged, thanks. -- paul-moore.com