public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lkdtm: include cacheflush.h
@ 2014-02-14 23:58 Kees Cook
  2014-03-21 18:31 ` Paul Gortmaker
  0 siblings, 1 reply; 5+ messages in thread
From: Kees Cook @ 2014-02-14 23:58 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel, Fengguang Wu, Arnd Bergmann

Some architectures need cacheflush.h explicitly included (mips) for
use of flush_icache_range():

    config: make ARCH=mips allmodconfig
    All error/warnings:
    >> ERROR: "flush_icache_range" undefined!

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
---
 drivers/misc/lkdtm.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/misc/lkdtm.c b/drivers/misc/lkdtm.c
index 47ed2d321351..2ebd52e05773 100644
--- a/drivers/misc/lkdtm.c
+++ b/drivers/misc/lkdtm.c
@@ -46,6 +46,7 @@
 #include <linux/debugfs.h>
 #include <linux/vmalloc.h>
 #include <linux/mman.h>
+#include <asm/cacheflush.h>
 
 #ifdef CONFIG_IDE
 #include <linux/ide.h>
-- 
1.7.9.5


-- 
Kees Cook
Chrome OS Security

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-22 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-14 23:58 [PATCH] lkdtm: include cacheflush.h Kees Cook
2014-03-21 18:31 ` Paul Gortmaker
2014-03-21 19:33   ` Kees Cook
2014-03-21 19:36     ` Paul Gortmaker
2014-03-22 15:32       ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox