[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240313-pvpanic-shutdown-header-v1-1-7f1970d66366@weissschuh.net>
Date: Wed, 13 Mar 2024 19:19:30 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Arnd Bergmann <arnd@...db.de>, "Michael S. Tsirkin" <mst@...hat.com>,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH 1/2] misc/pvpanic: use bit macros
The macros are easier to read.
Suggested-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Link: https://lore.kernel.org/lkml/2023110407-unselect-uptight-b96d@gregkh/
Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>
---
include/uapi/misc/pvpanic.h | 6 ++++--
1 file 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__ */
--
2.44.0
Powered by blists - more mailing lists