浏览代码

lkdtm: include cacheflush.h

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Kees Cook 11 年之前
父节点
当前提交
1bc9fac3da
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/misc/lkdtm.c

+ 1 - 0
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>