linux-next: build failure after merge of the akpm tree

From: Stephen Rothwell
Date: Tue Sep 08 2020 - 06:46:44 EST


Hi all,

After merging the akpm tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:

mm/madvise.c: In function 'madv_import_iovec':
mm/madvise.c:1233:6: error: implicit declaration of function 'in_compat_syscall' [-Werror=implicit-function-declaration]
1233 | if (in_compat_syscall())
| ^~~~~~~~~~~~~~~~~

Caused by commit

6d0ecd769ce2 ("mm/madvise: introduce process_madvise() syscall: an external memory hinting API")

I added the following fix up patch.

From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Date: Tue, 8 Sep 2020 20:40:44 +1000
Subject: [PATCH] fix for "mm/madvise: introduce process_madvise() syscall: an
external memory hinting API"

Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
---
mm/madvise.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/mm/madvise.c b/mm/madvise.c
index 3c0d23872330..c5acc2b1b1d9 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -7,6 +7,7 @@
*/

#include <linux/mman.h>
+#include <linux/compat.h>
#include <linux/pagemap.h>
#include <linux/syscalls.h>
#include <linux/mempolicy.h>
--
2.28.0

--
Cheers,
Stephen Rothwell

Attachment: pgpUwjMgjCbzE.pgp
Description: OpenPGP digital signature