Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1324922 > unrolled thread
| Started by | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| First post | 2016-02-03 06:40 +0100 |
| Last post | 2016-02-03 22:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
linux-next: build failure after merge of the akpm-current tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-02-03 06:40 +0100
Re: linux-next: build failure after merge of the akpm-current tree Andrew Morton <akpm@linux-foundation.org> - 2016-02-03 22:40 +0100
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Date | 2016-02-03 06:40 +0100 |
| Subject | linux-next: build failure after merge of the akpm-current tree |
| Message-ID | <qXYky-68h-7@gated-at.bofh.it> |
Hi Andrew,
After merging the akpm-current tree, today's linux-next build (arm
ep93xx_defconfig) failed like this:
mm/slab.c: In function 'is_debug_pagealloc_cache':
mm/slab.c:1608:2: error: implicit declaration of function 'debug_pagealloc_enabled' [-Werror=implicit-function-declaration]
Caused by commit
0a244aea1a61 ("mm/slab: clean up DEBUG_PAGEALLOC processing code")
CONFIG_DEBUG_PAGEALLOC is not enabled in this build.
Discovered after the linux-next release.
--
Cheers,
Stephen Rothwell
[toc] | [next] | [standalone]
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Date | 2016-02-03 22:40 +0100 |
| Message-ID | <qYdjA-7nl-13@gated-at.bofh.it> |
| In reply to | #1324922 |
On Wed, 3 Feb 2016 16:36:13 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Andrew,
>
> After merging the akpm-current tree, today's linux-next build (arm
> ep93xx_defconfig) failed like this:
>
> mm/slab.c: In function 'is_debug_pagealloc_cache':
> mm/slab.c:1608:2: error: implicit declaration of function 'debug_pagealloc_enabled' [-Werror=implicit-function-declaration]
>
> Caused by commit
>
> 0a244aea1a61 ("mm/slab: clean up DEBUG_PAGEALLOC processing code")
>
> CONFIG_DEBUG_PAGEALLOC is not enabled in this build.
>
> Discovered after the linux-next release.
This works for me.
--- a/include/linux/mm.h~mm-slab-clean-up-debug_pagealloc-processing-code-fix
+++ a/include/linux/mm.h
@@ -2194,14 +2194,18 @@ kernel_map_pages(struct page *page, int
}
#ifdef CONFIG_HIBERNATION
extern bool kernel_page_present(struct page *page);
-#endif /* CONFIG_HIBERNATION */
-#else
+#endif /* CONFIG_HIBERNATION */
+#else /* CONFIG_DEBUG_PAGEALLOC */
static inline void
kernel_map_pages(struct page *page, int numpages, int enable) {}
#ifdef CONFIG_HIBERNATION
static inline bool kernel_page_present(struct page *page) { return true; }
-#endif /* CONFIG_HIBERNATION */
-#endif
+#endif /* CONFIG_HIBERNATION */
+static inline bool debug_pagealloc_enabled(void)
+{
+ return false;
+}
+#endif /* CONFIG_DEBUG_PAGEALLOC */
#ifdef __HAVE_ARCH_GATE_AREA
extern struct vm_area_struct *get_gate_vma(struct mm_struct *mm);
_
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web