diff options
author | Mickaël Salaün <mic@digikod.net> | 2022-05-06 18:05:08 +0200 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2022-05-09 12:31:10 +0200 |
commit | 06a1c40a09a8dded4bf0e7e3ccbda6bddcccd7c8 (patch) | |
tree | c56afc5d9b856a1b38cf8496515eee4b7d4e23c9 /security/landlock/fs.h | |
parent | 6cc2df8e3a3967e7c13a424f87f6efb1d4a62d80 (diff) | |
download | lwn-06a1c40a09a8dded4bf0e7e3ccbda6bddcccd7c8.tar.gz lwn-06a1c40a09a8dded4bf0e7e3ccbda6bddcccd7c8.zip |
landlock: Format with clang-format
Let's follow a consistent and documented coding style. Everything may
not be to our liking but it is better than tacit knowledge. Moreover,
this will help maintain style consistency between different developers.
This contains only whitespace changes.
Automatically formatted with:
clang-format-14 -i security/landlock/*.[ch] include/uapi/linux/landlock.h
Link: https://lore.kernel.org/r/20220506160513.523257-3-mic@digikod.net
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'security/landlock/fs.h')
-rw-r--r-- | security/landlock/fs.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/security/landlock/fs.h b/security/landlock/fs.h index 187284b421c9..03f746e74e9e 100644 --- a/security/landlock/fs.h +++ b/security/landlock/fs.h @@ -50,14 +50,14 @@ struct landlock_superblock_security { atomic_long_t inode_refs; }; -static inline struct landlock_inode_security *landlock_inode( - const struct inode *const inode) +static inline struct landlock_inode_security * +landlock_inode(const struct inode *const inode) { return inode->i_security + landlock_blob_sizes.lbs_inode; } -static inline struct landlock_superblock_security *landlock_superblock( - const struct super_block *const superblock) +static inline struct landlock_superblock_security * +landlock_superblock(const struct super_block *const superblock) { return superblock->s_security + landlock_blob_sizes.lbs_superblock; } @@ -65,6 +65,7 @@ static inline struct landlock_superblock_security *landlock_superblock( __init void landlock_add_fs_hooks(void); int landlock_append_fs_rule(struct landlock_ruleset *const ruleset, - const struct path *const path, u32 access_hierarchy); + const struct path *const path, + u32 access_hierarchy); #endif /* _SECURITY_LANDLOCK_FS_H */ |