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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thomas Weißschuh and committed by
Greg Kroah-Hartman
04332787 d3eb5213

+4 -2
+4 -2
include/uapi/misc/pvpanic.h
··· 3 3 #ifndef __PVPANIC_H__ 4 4 #define __PVPANIC_H__ 5 5 6 - #define PVPANIC_PANICKED (1 << 0) 7 - #define PVPANIC_CRASH_LOADED (1 << 1) 6 + #include <linux/const.h> 7 + 8 + #define PVPANIC_PANICKED _BITUL(0) 9 + #define PVPANIC_CRASH_LOADED _BITUL(1) 8 10 9 11 #endif /* __PVPANIC_H__ */