]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/cred.c: make init_groups static
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 7 May 2021 01:02:39 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 May 2021 02:24:11 +0000 (19:24 -0700)
commit69a684c2201bc939193d87008b6d444096fa6751
treeb4b010b03b46504b36b561c876414d13b1529964
parentc31f087de4cc473072280ff957298a02dc2c2f11
kernel/cred.c: make init_groups static

init_groups is declared in both cred.h and init_task.h, but it is not
actually referenced anywhere outside of cred.c where it is defined.  So
make it static and remove the declarations.

Link: https://lkml.kernel.org/r/20210310220102.2484201-1-linux@rasmusvillemoes.dk
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/cred.h
include/linux/init_task.h
kernel/cred.c