2016-11-22 05:08:23

by Andrew Donnellan

[permalink] [raw]
Subject: [PATCH] cpuidle/powernv: staticise powernv_idle_driver

powernv_idle_driver isn't exported, it can be made static. Found by sparse.

Signed-off-by: Andrew Donnellan <[email protected]>
---
drivers/cpuidle/cpuidle-powernv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpuidle/cpuidle-powernv.c b/drivers/cpuidle/cpuidle-powernv.c
index 7fe442c..0835a37 100644
--- a/drivers/cpuidle/cpuidle-powernv.c
+++ b/drivers/cpuidle/cpuidle-powernv.c
@@ -22,7 +22,7 @@

#define POWERNV_THRESHOLD_LATENCY_NS 200000

-struct cpuidle_driver powernv_idle_driver = {
+static struct cpuidle_driver powernv_idle_driver = {
.name = "powernv_idle",
.owner = THIS_MODULE,
};
--
Andrew Donnellan OzLabs, ADL Canberra
[email protected] IBM Australia Limited


2016-11-28 13:35:23

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [PATCH] cpuidle/powernv: staticise powernv_idle_driver

On Tue, Nov 22, 2016 at 6:08 AM, Andrew Donnellan
<[email protected]> wrote:
> powernv_idle_driver isn't exported, it can be made static. Found by sparse.
>
> Signed-off-by: Andrew Donnellan <[email protected]>

Applied.

Thanks,
Rafael