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/cred.h | |
parent | 6cc2df8e3a3967e7c13a424f87f6efb1d4a62d80 (diff) |
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/cred.h')
-rw-r--r-- | security/landlock/cred.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/security/landlock/cred.h b/security/landlock/cred.h index 5f99d3decade..af89ab00e6d1 100644 --- a/security/landlock/cred.h +++ b/security/landlock/cred.h @@ -20,8 +20,8 @@ struct landlock_cred_security { struct landlock_ruleset *domain; }; -static inline struct landlock_cred_security *landlock_cred( - const struct cred *cred) +static inline struct landlock_cred_security * +landlock_cred(const struct cred *cred) { return cred->security + landlock_blob_sizes.lbs_cred; } @@ -34,8 +34,8 @@ static inline const struct landlock_ruleset *landlock_get_current_domain(void) /* * The call needs to come from an RCU read-side critical section. */ -static inline const struct landlock_ruleset *landlock_get_task_domain( - const struct task_struct *const task) +static inline const struct landlock_ruleset * +landlock_get_task_domain(const struct task_struct *const task) { return landlock_cred(__task_cred(task))->domain; } |