diff options
author | Günther Noack <gnoack@google.com> | 2023-12-08 18:51:13 +0300 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2024-01-03 14:07:52 +0300 |
commit | 8fd80721ec0791826a9ab56656d26931811702f8 (patch) | |
tree | dde3504e722c91839c01c4c02c1ee15891649909 /security/landlock/ruleset.c | |
parent | e2780a0b95a1b5d137ccf0e0747b77f174f55511 (diff) | |
download | linux-8fd80721ec0791826a9ab56656d26931811702f8.tar.xz |
landlock: Remove remaining "inline" modifiers in .c files [v5.15]
For module-internal static functions, compilers are already in a good
position to decide whether to inline them or not.
Suggested-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20231208155121.1943775-2-gnoack@google.com
[mic: Split patch for Linux 5.15]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'security/landlock/ruleset.c')
-rw-r--r-- | security/landlock/ruleset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/landlock/ruleset.c b/security/landlock/ruleset.c index ffedc99f2b68..789c81b26a50 100644 --- a/security/landlock/ruleset.c +++ b/security/landlock/ruleset.c @@ -305,7 +305,7 @@ int landlock_insert_rule(struct landlock_ruleset *const ruleset, return insert_rule(ruleset, id, &layers, ARRAY_SIZE(layers)); } -static inline void get_hierarchy(struct landlock_hierarchy *const hierarchy) +static void get_hierarchy(struct landlock_hierarchy *const hierarchy) { if (hierarchy) refcount_inc(&hierarchy->usage); |