* [PATCH] ARM: pxa: make corgipm_read_devdata static
@ 2022-06-28 11:42 ` sunliming
0 siblings, 0 replies; 2+ messages in thread
From: sunliming @ 2022-06-28 11:42 UTC (permalink / raw)
To: arnd, daniel, haojian.zhuang, robert.jarzmik, linux,
linux-arm-kernel, linux-kernel, kelulanainsley, sunliming
Cc: kernel test robot
This symbol is not used outside of corgi_pm.c, so marks it static.
Fixes the following w1 warning:
arch/arm/mach-pxa/corgi_pm.c:137:15: warning: no previous prototype for function 'corgipm_read_devdata' [-Wmissing-prototypes]
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: sunliming <sunliming@kylinos.cn>
---
arch/arm/mach-pxa/corgi_pm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-pxa/corgi_pm.c b/arch/arm/mach-pxa/corgi_pm.c
index 555a5c1afd96..02a229425969 100644
--- a/arch/arm/mach-pxa/corgi_pm.c
+++ b/arch/arm/mach-pxa/corgi_pm.c
@@ -133,7 +133,7 @@ static bool corgi_charger_wakeup(void)
!gpio_get_value(CORGI_GPIO_WAKEUP);
}
-unsigned long corgipm_read_devdata(int type)
+static unsigned long corgipm_read_devdata(int type)
{
switch(type) {
case SHARPSL_STATUS_ACIN:
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: pxa: make corgipm_read_devdata static
@ 2022-06-28 11:42 ` sunliming
0 siblings, 0 replies; 2+ messages in thread
From: sunliming @ 2022-06-28 11:42 UTC (permalink / raw)
To: arnd, daniel, haojian.zhuang, robert.jarzmik, linux,
linux-arm-kernel, linux-kernel, kelulanainsley, sunliming
Cc: kernel test robot
This symbol is not used outside of corgi_pm.c, so marks it static.
Fixes the following w1 warning:
arch/arm/mach-pxa/corgi_pm.c:137:15: warning: no previous prototype for function 'corgipm_read_devdata' [-Wmissing-prototypes]
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: sunliming <sunliming@kylinos.cn>
---
arch/arm/mach-pxa/corgi_pm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-pxa/corgi_pm.c b/arch/arm/mach-pxa/corgi_pm.c
index 555a5c1afd96..02a229425969 100644
--- a/arch/arm/mach-pxa/corgi_pm.c
+++ b/arch/arm/mach-pxa/corgi_pm.c
@@ -133,7 +133,7 @@ static bool corgi_charger_wakeup(void)
!gpio_get_value(CORGI_GPIO_WAKEUP);
}
-unsigned long corgipm_read_devdata(int type)
+static unsigned long corgipm_read_devdata(int type)
{
switch(type) {
case SHARPSL_STATUS_ACIN:
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-28 11:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 11:42 [PATCH] ARM: pxa: make corgipm_read_devdata static sunliming
2022-06-28 11:42 ` sunliming
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.