[PATCH] psi: Use DECLARE macro to extern static key

From: cgel . zte
Date: Sat Sep 11 2021 - 04:51:31 EST


From: Yang Yang <yang.yang29@xxxxxxxxxx>

See patch 'locking/static_keys: Provide DECLARE and well as DEFINE macros'.

Signed-off-by: Yang Yang <yang.yang29@xxxxxxxxxx>
Tested-by: Zeal Robot <zealci@xxxxxxxxxx>
---
include/linux/psi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/psi.h b/include/linux/psi.h
index 65eb1476ac70..cd1c205a9dd2 100644
--- a/include/linux/psi.h
+++ b/include/linux/psi.h
@@ -11,7 +11,7 @@ struct css_set;

#ifdef CONFIG_PSI

-extern struct static_key_false psi_disabled;
+DECLARE_STATIC_KEY_FALSE(psi_disabled);
extern struct psi_group psi_system;

void psi_init(void);
--
2.25.1