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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 30 Oct 2010 16:01:00 +0800
From:	wu zhangjin <wuzhangjin@...il.com>
To:	Sachin Sant <sachinp@...ibm.com>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>,
	linux-s390@...r.kernel.org, linux-mips <linux-mips@...ux-mips.org>
Subject: Re: [s390] 2.6.36-git14 build break - fs/compat.c :631
 (PAGE_CACHE_MASK undeclared)

The same problem on MIPS.

Perhaps this can help:

$ git diff
diff --git a/fs/compat.c b/fs/compat.c
index ff66c0d..c580c32 100644
--- a/fs/compat.c
+++ b/fs/compat.c
@@ -49,6 +49,7 @@
 #include <linux/eventpoll.h>
 #include <linux/fs_struct.h>
 #include <linux/slab.h>
+#include <linux/pagemap.h>

 #include <asm/uaccess.h>
 #include <asm/mmu_context.h>

I'm not sure if this is a good fixup, because the problem is
introduced by MAX_RW_COUNT defined in include/linux/fs.h:

#define MAX_RW_COUNT (INT_MAX & PAGE_CACHE_MASK)

and the PAGE_CACHE_MASK is defined in pagemap.h, we may be possible to
add <linux/pagemap.h> in include/linux/fs.h but pagemap.h has included
<linux/fs.h> too ...

Regards,
Wu Zhangjin

On Sat, Oct 30, 2010 at 3:26 PM, Sachin Sant <sachinp@...ibm.com> wrote:
> Latest 2.6.36 git [commit 44234d0c46...] fails to build on s390x with
> following error :
>
> fs/compat.c: In function compat_rw_copy_check_uvector:
> fs/compat.c:631: error: PAGE_CACHE_MASK undeclared (first use in this
> function)
> fs/compat.c:631: error: (Each undeclared identifier is reported only once
> fs/compat.c:631: error: for each function it appears in.)
> make[1]: *** [fs/compat.o] Error 1
>
> The code in question was added via following commit:
>
> commit 435f49a518c78eec8e2edbbadd912737246cbe20
> readv/writev: do the same MAX_RW_COUNT truncation that read/write does
>
> Thanks
> -Sachin
--
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