Skip to content

Commit 3406eba

Browse files
gnoackl0kod
authored andcommitted
landlock: Remove remaining "inline" modifiers in .c files [v6.6]
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>
1 parent da27908 commit 3406eba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • security/landlock

security/landlock/fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ static int hook_path_truncate(const struct path *const path)
10861086
* Returns the access rights that are required for opening the given file,
10871087
* depending on the file type and open mode.
10881088
*/
1089-
static inline access_mask_t
1089+
static access_mask_t
10901090
get_required_file_open_access(const struct file *const file)
10911091
{
10921092
access_mask_t access = 0;

0 commit comments

Comments
 (0)