In preparation to a following commit, add clang-format on and clang-format off stanzas around constant definitions. This enables to keep aligned values, which is much more readable than packed definitions.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -33,7 +33,9 @@ struct landlock_ruleset_attr { · 32 unmodified lines | ||
| 33 | 33 | * - %LANDLOCK_CREATE_RULESET_VERSION: Get the highest supported Landlock ABI |
| 34 | 34 | * version. |
| 35 | 35 | */ |
| 36 | +/* clang-format off */ | |
| 36 | 37 | #define LANDLOCK_CREATE_RULESET_VERSION (1U << 0) |
| 38 | +/* clang-format on */ | |
| 37 | 39 | |
| 38 | 40 | /** |
| 39 | 41 | * enum landlock_rule_type - Landlock rule type |
| @@ -120,6 +122,7 @@ struct landlock_path_beneath_attr { · 80 unmodified lines | ||
| 120 | 122 | * :manpage:`access(2)`. |
| 121 | 123 | * Future Landlock evolutions will enable to restrict them. |
| 122 | 124 | */ |
| 125 | +/* clang-format off */ | |
| 123 | 126 | #define LANDLOCK_ACCESS_FS_EXECUTE (1ULL << 0) |
| 124 | 127 | #define LANDLOCK_ACCESS_FS_WRITE_FILE (1ULL << 1) |
| 125 | 128 | #define LANDLOCK_ACCESS_FS_READ_FILE (1ULL << 2) |
| @@ -133,5 +136,6 @@ struct landlock_path_beneath_attr { · 7 unmodified lines | ||
| 133 | 136 | #define LANDLOCK_ACCESS_FS_MAKE_FIFO (1ULL << 10) |
| 134 | 137 | #define LANDLOCK_ACCESS_FS_MAKE_BLOCK (1ULL << 11) |
| 135 | 138 | #define LANDLOCK_ACCESS_FS_MAKE_SYM (1ULL << 12) |
| 139 | +/* clang-format on */ | |
| 136 | 140 | |
| 137 | 141 | #endif /* _UAPI_LINUX_LANDLOCK_H */ |