summaryrefslogtreecommitdiffstats
path: root/include/uapi/misc
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-03-13 19:19:30 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-11 15:12:10 +0200
commit043327875298030095f9c5d04bd41def28275175 (patch)
tree8ef5fb9e89c3399b3f0f23e08a6f7c1e6b6cea56 /include/uapi/misc
parentd3eb521378a685150396687c3c7a10a877ed065a (diff)
downloadlinux-043327875298030095f9c5d04bd41def28275175.tar.gz
linux-043327875298030095f9c5d04bd41def28275175.tar.bz2
linux-043327875298030095f9c5d04bd41def28275175.zip
misc/pvpanic: use bit macros
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>
Diffstat (limited to 'include/uapi/misc')
-rw-r--r--include/uapi/misc/pvpanic.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/uapi/misc/pvpanic.h b/include/uapi/misc/pvpanic.h
index 54b7485390d3..9ea6a965ca7a 100644
--- 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__ */