[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190523064956.29008-1-malat@debian.org>
Date: Thu, 23 May 2019 08:49:56 +0200
From: Mathieu Malaterre <malat@...ian.org>
To: Michael Ellerman <mpe@...erman.id.au>
Cc: Mathieu Malaterre <malat@...ian.org>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: [PATCH] powerpc/32s: Include <linux/moduleloader.h> header file to fix a warning
In commit 2edb16efc899 ("powerpc/32: Add KASAN support") support for
KASAN has been added. However building it as module leads to (warning
treated as error with W=1):
arch/powerpc/mm/kasan/kasan_init_32.c:135:7: error: no previous prototype for 'module_alloc' [-Werror=missing-prototypes]
Make sure to include <linux/moduleloader.h> to provide the following
prototype: module_alloc.
Signed-off-by: Mathieu Malaterre <malat@...ian.org>
---
arch/powerpc/mm/kasan/kasan_init_32.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/mm/kasan/kasan_init_32.c b/arch/powerpc/mm/kasan/kasan_init_32.c
index 0d62be3cba47..0c31e440d094 100644
--- a/arch/powerpc/mm/kasan/kasan_init_32.c
+++ b/arch/powerpc/mm/kasan/kasan_init_32.c
@@ -7,6 +7,7 @@
#include <linux/memblock.h>
#include <linux/sched/task.h>
#include <linux/vmalloc.h>
+#include <linux/moduleloader.h>
#include <asm/pgalloc.h>
#include <asm/code-patching.h>
#include <mm/mmu_decl.h>
--
2.20.1
Powered by blists - more mailing lists