lkml.org 
[lkml]   [2021]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] psi: Use DECLARE macro to extern static key
Date
From: Yang Yang <yang.yang29@zte.com.cn>

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

Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
Tested-by: Zeal Robot <zealci@zte.com.cn>
---
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
\
 
 \ /
  Last update: 2021-09-11 10:20    [W:0.025 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site