* + mm-compaction-introduce-kcompactd-fix.patch added to -mm tree
@ 2016-02-09 20:12 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-02-09 20:12 UTC (permalink / raw)
To: arnd, vbabka, mm-commits
The patch titled
Subject: mm, compaction: fix build errors with kcompactd
has been added to the -mm tree. Its filename is
mm-compaction-introduce-kcompactd-fix.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-compaction-introduce-kcompactd-fix.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-compaction-introduce-kcompactd-fix.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Arnd Bergmann <arnd@arndb.de>
Subject: mm, compaction: fix build errors with kcompactd
The newly added kcompactd code introduces multiple build errors:
include/linux/compaction.h:91:12: error: 'kcompactd_run' defined but not used [-Werror=unused-function]
mm/compaction.c:1953:2: error: implicit declaration of function 'hotcpu_notifier' [-Werror=implicit-function-declaration]
This marks the new empty wrapper functions as 'inline' to avoid unused-function warnings,
and includes linux/cpu.h to get the hotcpu_notifier declaration.
Fixes: 8364acdfa45a ("mm, compaction: introduce kcompactd")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/linux/compaction.h | 6 +++---
mm/compaction.c | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff -puN include/linux/compaction.h~mm-compaction-introduce-kcompactd-fix include/linux/compaction.h
--- a/include/linux/compaction.h~mm-compaction-introduce-kcompactd-fix
+++ a/include/linux/compaction.h
@@ -88,15 +88,15 @@ static inline bool compaction_deferred(s
return true;
}
-static int kcompactd_run(int nid)
+static inline int kcompactd_run(int nid)
{
return 0;
}
-static void kcompactd_stop(int nid)
+static inline void kcompactd_stop(int nid)
{
}
-static void wakeup_kcompactd(pg_data_t *pgdat, int order, int classzone_idx)
+static inline void wakeup_kcompactd(pg_data_t *pgdat, int order, int classzone_idx)
{
}
diff -puN mm/compaction.c~mm-compaction-introduce-kcompactd-fix mm/compaction.c
--- a/mm/compaction.c~mm-compaction-introduce-kcompactd-fix
+++ a/mm/compaction.c
@@ -7,6 +7,7 @@
*
* Copyright IBM Corp. 2007-2010 Mel Gorman <mel@csn.ul.ie>
*/
+#include <linux/cpu.h>
#include <linux/swap.h>
#include <linux/migrate.h>
#include <linux/compaction.h>
_
Patches currently in -mm which might be from arnd@arndb.de are
mm-compaction-introduce-kcompactd-fix.patch
profile-hide-unused-functions-when-config_proc_fs.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-09 20:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-09 20:12 + mm-compaction-introduce-kcompactd-fix.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.