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>
This commit is contained in:
Thomas Weißschuh 2024-03-13 19:19:30 +01:00 committed by Greg Kroah-Hartman
parent d3eb521378
commit 0433278752

View file

@ -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__ */