Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 1 participant 1 message Sep 8, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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 <[email protected]>
Date: Tue, 8 Sep 2020 20:40:44 +1000
Subject: [PATCH] fix for "mm/madvise: introduce process_madvise() syscall: an
external memory hinting API"

---
 mm/madvise.c | 1 +
 1 file changed, 1 insertion(+)
mm/madvise.c +1 -0
index 3c0d23872330..c5acc2b1b1d9 100644
@@ -7,6 +7,7 @@
  */
 
 #include <linux/mman.h>
+#include <linux/compat.h>
 #include <linux/pagemap.h>
 #include <linux/syscalls.h>
 #include <linux/mempolicy.h>
Signature · 5 lines
2.28.0

-- 
Cheers,
Stephen Rothwell