[PATCH 3/6] drivers: firmware: psci: Don't use BIT() macro in UAPI headers

From: Joe Richey
Date: Thu May 20 2021 - 08:09:16 EST


From: Joe Richey <joerichey@xxxxxxxxxx>

A previous patch [1] used the BIT() macro to define
PSCI_1_0_OS_INITIATED in the UAPI header.

This macro is defined in the kernel but not in the UAPI headers.

[1] https://lore.kernel.org/patchwork/patch/949966/

Signed-off-by: Joe Richey <joerichey@xxxxxxxxxx>
---
include/uapi/linux/psci.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/psci.h b/include/uapi/linux/psci.h
index 2fcad1dd0b0e..d7da8059cbbe 100644
--- a/include/uapi/linux/psci.h
+++ b/include/uapi/linux/psci.h
@@ -100,7 +100,7 @@
#define PSCI_1_0_FEATURES_CPU_SUSPEND_PF_MASK \
(0x1 << PSCI_1_0_FEATURES_CPU_SUSPEND_PF_SHIFT)

-#define PSCI_1_0_OS_INITIATED BIT(0)
+#define PSCI_1_0_OS_INITIATED (1 << 0)
#define PSCI_1_0_SUSPEND_MODE_PC 0
#define PSCI_1_0_SUSPEND_MODE_OSI 1

--
2.31.1