diff mbox series

[1/6] ARM: uniphier: include <asm/system.h> instead of <asm/cache.h> from psci.c

Message ID 20200520033128.489370-1-yamada.masahiro@socionext.com
State Accepted
Commit f49049a8ec46ff00ddd8f023bf0b5935b5317865
Headers show
Series [1/6] ARM: uniphier: include <asm/system.h> instead of <asm/cache.h> from psci.c | expand

Commit Message

Masahiro Yamada May 20, 2020, 3:31 a.m. UTC
I do not understand the change made to this file by
commit 90526e9fbac4 ("common: Drop net.h from common header").

  git show 90526e9fbac4 -- arch/arm/mach-uniphier/arm32/psci.c

It added <asm/cache.h> while this file does not call the standard cache
functions at all.

All the uniphier-specific cache functions, uniphier_cache_*() are
declared in cache-uniphier.h, which is already included from this file.

Including <asm/system.h> is sensible to fix the -Wmissing-prototypes
warnings because this file defines psci_cpu_on and psci_system_reset().

Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---

 arch/arm/mach-uniphier/arm32/psci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass May 20, 2020, 2:20 p.m. UTC | #1
Hi Masahiro,

On Tue, 19 May 2020 at 21:32, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
>
> I do not understand the change made to this file by
> commit 90526e9fbac4 ("common: Drop net.h from common header").
>
>   git show 90526e9fbac4 -- arch/arm/mach-uniphier/arm32/psci.c
>
> It added <asm/cache.h> while this file does not call the standard cache
> functions at all.
>
> All the uniphier-specific cache functions, uniphier_cache_*() are
> declared in cache-uniphier.h, which is already included from this file.
>
> Including <asm/system.h> is sensible to fix the -Wmissing-prototypes
> warnings because this file defines psci_cpu_on and psci_system_reset().
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
>
>  arch/arm/mach-uniphier/arm32/psci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I suspect it is a limitation of my scripting, which is not perfect. It
should rely more on ctags, etc. than grep/

Reviewed-by: Simon Glass <sjg at chromium.org>

Regards,
Simon
diff mbox series

Patch

diff --git a/arch/arm/mach-uniphier/arm32/psci.c b/arch/arm/mach-uniphier/arm32/psci.c
index e231e7b60b..b54dc3979d 100644
--- a/arch/arm/mach-uniphier/arm32/psci.c
+++ b/arch/arm/mach-uniphier/arm32/psci.c
@@ -6,7 +6,6 @@ 
 
 #include <common.h>
 #include <cpu_func.h>
-#include <asm/cache.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/io.h>
@@ -17,6 +16,7 @@ 
 #include <asm/processor.h>
 #include <asm/psci.h>
 #include <asm/secure.h>
+#include <asm/system.h>
 
 #include "../debug.h"
 #include "../soc-info.h"