Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pstore: Replace open-coded << with BIT()

Minor clean-up to use BIT() (as already done in pstore_ram.h).

Signed-off-by: Kees Cook <keescook@chromium.org>

+4 -4
+4 -4
include/linux/pstore.h
··· 192 192 }; 193 193 194 194 /* Supported frontends */ 195 - #define PSTORE_FLAGS_DMESG (1 << 0) 196 - #define PSTORE_FLAGS_CONSOLE (1 << 1) 197 - #define PSTORE_FLAGS_FTRACE (1 << 2) 198 - #define PSTORE_FLAGS_PMSG (1 << 3) 195 + #define PSTORE_FLAGS_DMESG BIT(0) 196 + #define PSTORE_FLAGS_CONSOLE BIT(1) 197 + #define PSTORE_FLAGS_FTRACE BIT(2) 198 + #define PSTORE_FLAGS_PMSG BIT(3) 199 199 200 200 extern int pstore_register(struct pstore_info *); 201 201 extern void pstore_unregister(struct pstore_info *);