]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
landlock: Remove remaining "inline" modifiers in .c files [v6.6]
authorGünther Noack <gnoack@google.com>
Fri, 8 Dec 2023 15:51:13 +0000 (16:51 +0100)
committerMickaël Salaün <mic@digikod.net>
Wed, 3 Jan 2024 11:07:57 +0000 (12:07 +0100)
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 6.6]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
security/landlock/fs.c

index b67990e8f32f07188458f347f40e4d70e47d0a19..9ba989ef46a50b3c2fe0893fcef38ddcdf6da6cc 100644 (file)
@@ -1086,7 +1086,7 @@ static int hook_path_truncate(const struct path *const path)
  * Returns the access rights that are required for opening the given file,
  * depending on the file type and open mode.
  */
-static inline access_mask_t
+static access_mask_t
 get_required_file_open_access(const struct file *const file)
 {
        access_mask_t access = 0;