From: Kees Cook
stable inclusion
from stable-5.10
category: feature
commit:4af62a6423d0ad98e3eee2bec4305dde8deefefe
issue: #I4919J
--------------------------------
Minor clean-up to use BIT() (as already done in pstore_ram.h).
Signed-off-by: Kees Cook
(cherry picked from commit 4af62a6423d0ad98e3eee2bec4305dde8deefefe)
Signed-off-by: roger
---
include/linux/pstore.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/linux/pstore.h b/include/linux/pstore.h
index 072492f17887..dd8e55742bf9 100644
--- a/include/linux/pstore.h
+++ b/include/linux/pstore.h
@@ -192,10 +192,10 @@ struct pstore_info {
};
/* Supported frontends */
-#define PSTORE_FLAGS_DMESG (1 << 0)
-#define PSTORE_FLAGS_CONSOLE (1 << 1)
-#define PSTORE_FLAGS_FTRACE (1 << 2)
-#define PSTORE_FLAGS_PMSG (1 << 3)
+#define PSTORE_FLAGS_DMESG BIT(0)
+#define PSTORE_FLAGS_CONSOLE BIT(1)
+#define PSTORE_FLAGS_FTRACE BIT(2)
+#define PSTORE_FLAGS_PMSG BIT(3)
extern int pstore_register(struct pstore_info *);
extern void pstore_unregister(struct pstore_info *);
--
2.17.1