Skip to contentSkip to conversation

ARM: keystone: fix missing keystone.h in pm_domain.c

PATCH New Ben Dooks 2 participants 2 messages Jun 21, 2016

Subsystems (3)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 ARM: keystone: fix missing keystone.h in pm_domain.c

The declaration of keystone_pm_runtime_init() is not included from keystone.h in pm_domain.c. Including the file fixes the following sparse warning:

arch/arm/mach-keystone/pm_domain.c:37:12: warning: symbol 'keystone_pm_runtime_init' was not declared. Should it be static?

---
Cc: Santosh Shilimkar <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org

---
 arch/arm/mach-keystone/pm_domain.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-keystone/pm_domain.c +2 -0
index e283939..8cbb357 100644
@@ -18,6 +18,8 @@
 #include <linux/platform_device.h>
 #include <linux/of.h>
 
+#include "keystone.h"
+
 static struct dev_pm_domain keystone_pm_domain = {
 	.ops = {
 		USE_PM_CLK_RUNTIME_OPS
Signature · 1 line
2.8.1
#1 lore raw

PATCH 1/1 ARM: keystone: fix missing keystone.h in pm_domain.c

Quoted 8 lines · Ben Dooks

The declaration of keystone_pm_runtime_init() is not included from keystone.h in pm_domain.c. Including the file fixes the following sparse warning:

arch/arm/mach-keystone/pm_domain.c:37:12: warning: symbol 'keystone_pm_runtime_init' was not declared. Should it be static?

---

Looks good. Will pick it up.

Regards,
Santosh