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.
Showing the changes to kernel (1 of 3 files). Show all
Unified · Split
| @@ -33,7 +33,7 @@ do { \ · 32 unmodified lines | ||
| 33 | 33 | static struct kmem_cache *cred_jar; |
| 34 | 34 | |
| 35 | 35 | /* init to 2 - one for init_task, one to ensure it is never freed */ |
| 36 | −struct group_info init_groups = { .usage = ATOMIC_INIT(2) }; | |
| 36 | +static struct group_info init_groups = { .usage = ATOMIC_INIT(2) }; | |
| 37 | 37 | |
| 38 | 38 | /* |
| 39 | 39 | * The initial credentials for the initial task |