projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
387270c
)
firmware: xilinx: Mark pm_api_features_map with static keyword
author
Zou Wei
<zou_wei@huawei.com>
Tue, 1 Dec 2020 11:51:53 +0000
(19:51 +0800)
committer
Arnd Bergmann
<arnd@arndb.de>
Wed, 9 Dec 2020 22:00:22 +0000
(23:00 +0100)
Fix the following sparse warning:
drivers/firmware/xilinx/zynqmp.c:32:1: warning: symbol 'pm_api_features_map' was not declared. Should it be static?
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link:
https://lore.kernel.org/r/1606823513-121578-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/firmware/xilinx/zynqmp.c
patch
|
blob
|
history
diff --git
a/drivers/firmware/xilinx/zynqmp.c
b/drivers/firmware/xilinx/zynqmp.c
index d08ac824c993ce978881b424a242890dbd1e8eee..fd95edeb702b1fc0c8fbed3e85ec8a1fd4554433 100644
(file)
--- a/
drivers/firmware/xilinx/zynqmp.c
+++ b/
drivers/firmware/xilinx/zynqmp.c
@@
-29,7
+29,7
@@
#define PM_API_FEATURE_CHECK_MAX_ORDER 7
static bool feature_check_enabled;
-DEFINE_HASHTABLE(pm_api_features_map, PM_API_FEATURE_CHECK_MAX_ORDER);
+
static
DEFINE_HASHTABLE(pm_api_features_map, PM_API_FEATURE_CHECK_MAX_ORDER);
/**
* struct pm_api_feature_data - PM API Feature data