]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pmdomain: apple: Make apple_pmgr_reset_ops static
authorJinjie Ruan <ruanjinjie@huawei.com>
Mon, 19 Aug 2024 11:59:56 +0000 (19:59 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Aug 2024 09:28:01 +0000 (11:28 +0200)
The sparse tool complains as follows:

drivers/pmdomain/apple/pmgr-pwrstate.c:180:32: warning:
symbol 'apple_pmgr_reset_ops' was not declared. Should it be static:

This symbol is not used outside of pmgr-pwrstate.c, so marks it static.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20240819115956.3884847-1-ruanjinjie@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/apple/pmgr-pwrstate.c

index d62a776c89a1217cdaadd6e8a0d0e2ff7e9bfafb..9467235110f4654e00ab96c25e160e125ef0f3e5 100644 (file)
@@ -177,7 +177,7 @@ static int apple_pmgr_reset_status(struct reset_controller_dev *rcdev, unsigned
        return !!(reg & APPLE_PMGR_RESET);
 }
 
-const struct reset_control_ops apple_pmgr_reset_ops = {
+static const struct reset_control_ops apple_pmgr_reset_ops = {
        .assert         = apple_pmgr_reset_assert,
        .deassert       = apple_pmgr_reset_deassert,
        .reset          = apple_pmgr_reset_reset,