projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3eb521
)
misc/pvpanic: use bit macros
author
Thomas Weißschuh
<linux@weissschuh.net>
Wed, 13 Mar 2024 18:19:30 +0000
(19:19 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 11 Apr 2024 13:12:10 +0000
(15:12 +0200)
The macros are easier to read.
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link:
https://lore.kernel.org/lkml/2023110407-unselect-uptight-b96d@gregkh/
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link:
https://lore.kernel.org/r/20240313-pvpanic-shutdown-header-v1-1-7f1970d66366@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/misc/pvpanic.h
patch
|
blob
|
history
diff --git
a/include/uapi/misc/pvpanic.h
b/include/uapi/misc/pvpanic.h
index 54b7485390d3149b7180242f5810a810a89c0a20..9ea6a965ca7a16a1d9c38f1203c66567359d79e8 100644
(file)
--- a/
include/uapi/misc/pvpanic.h
+++ b/
include/uapi/misc/pvpanic.h
@@
-3,7
+3,9
@@
#ifndef __PVPANIC_H__
#define __PVPANIC_H__
-#define PVPANIC_PANICKED (1 << 0)
-#define PVPANIC_CRASH_LOADED (1 << 1)
+#include <linux/const.h>
+
+#define PVPANIC_PANICKED _BITUL(0)
+#define PVPANIC_CRASH_LOADED _BITUL(1)
#endif /* __PVPANIC_H__ */