lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080726212246.d64073b3.yoichi_yuasa@tripeaks.co.jp>
Date:	Sat, 26 Jul 2008 21:22:46 +0900
From:	Yoichi Yuasa <yoichi_yuasa@...peaks.co.jp>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	yoichi_yuasa@...peaks.co.jp,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [PATCH] fix build error when no swap

When CONFIG_SWAP is not set, I got the following error.

In file included from include/asm/tlb.h:21,
                 from fs/exec.c:55:
		 include/asm-generic/tlb.h: In function 'tlb_flush_mmu':
		 include/asm-generic/tlb.h:76: error: implicit declaration of function 'release_pages'
		 include/asm-generic/tlb.h: In function 'tlb_remove_page':
		 include/asm-generic/tlb.h:105: error: implicit declaration of function 'page_cache_release'
		 make[1]: *** [fs/exec.o] Error 1

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@...peaks.co.jp>

diff -pruN -X /home/yuasa/Memo/dontdiff linux-orig/include/linux/swap.h linux/include/linux/swap.h
--- linux-orig/include/linux/swap.h	2008-07-26 17:27:22.651869820 +0900
+++ linux/include/linux/swap.h	2008-07-26 18:36:46.406531575 +0900
@@ -7,6 +7,7 @@
 #include <linux/list.h>
 #include <linux/memcontrol.h>
 #include <linux/sched.h>
+#include <linux/pagemap.h>
 
 #include <asm/atomic.h>
 #include <asm/page.h>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ