History

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.

Rasmus Villemoes committed 5 years ago

Commit 32c93971 parent 8ba9d403 files · +1 −3Browse files

Showing the changes to kernel (1 of 3 files). Show all

Unified · Split

kernel/cred.c+1−1
@@ -33,7 +33,7 @@ do { \ · 32 unmodified lines
3333 static struct kmem_cache *cred_jar;
3434
3535 /* 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) };
3737
3838 /*
3939 * The initial credentials for the initial task

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t