linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: pi: add early_map_kernel prototype
@ 2023-10-25  7:19 Arnd Bergmann
  2023-10-25 17:36 ` Catalin Marinas
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2023-10-25  7:19 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Ard Biesheuvel
  Cc: Arnd Bergmann, linux-arm-kernel, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The newly added function only has a caller from assembler code, so it
works without an extern prototype, but we get a warning if it's missing:

arch/arm64/kernel/pi/map_kernel.c:224:24: error: no previous prototype for 'early_map_kernel' [-Werror=missing-prototypes]

Fixes: 478ea5689054 ("arm64: head: Move early kernel mapping routines into C code")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm64/kernel/pi/pi.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/kernel/pi/pi.h b/arch/arm64/kernel/pi/pi.h
index 93d7457dd10d..c07eea032b7e 100644
--- a/arch/arm64/kernel/pi/pi.h
+++ b/arch/arm64/kernel/pi/pi.h
@@ -28,3 +28,5 @@ void map_range(u64 *pgd, u64 start, u64 end, u64 pa, pgprot_t prot,
 	       int level, pte_t *tbl, bool may_use_cont, u64 va_offset);
 
 asmlinkage u64 create_init_idmap(pgd_t *pgd, pteval_t clrmask);
+
+asmlinkage void early_map_kernel(u64 boot_status, void *fdt);
-- 
2.39.2


_______________________________________________
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

* Re: [PATCH] arm64: pi: add early_map_kernel prototype
  2023-10-25  7:19 [PATCH] arm64: pi: add early_map_kernel prototype Arnd Bergmann
@ 2023-10-25 17:36 ` Catalin Marinas
  0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2023-10-25 17:36 UTC (permalink / raw)
  To: Will Deacon, Ard Biesheuvel, Arnd Bergmann
  Cc: Arnd Bergmann, linux-arm-kernel, linux-kernel

On Wed, 25 Oct 2023 09:19:31 +0200, Arnd Bergmann wrote:
> The newly added function only has a caller from assembler code, so it
> works without an extern prototype, but we get a warning if it's missing:
> 
> arch/arm64/kernel/pi/map_kernel.c:224:24: error: no previous prototype for 'early_map_kernel' [-Werror=missing-prototypes]
> 
> 

Applied to arm64 (for-next/lpa2-stage1), thanks!

[1/1] arm64: pi: add early_map_kernel prototype
      https://git.kernel.org/arm64/c/8d05e7b6eec9

We are still checking whether the recent CKI reports are caused by this
branch, so I may drop it before the merging window (fully or partially).

-- 
Catalin


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-25 17:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25  7:19 [PATCH] arm64: pi: add early_map_kernel prototype Arnd Bergmann
2023-10-25 17:36 ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).