All of lore.kernel.org
 help / color / mirror / Atom feed
* [s390] 2.6.36-git14 build break - fs/compat.c :631 (PAGE_CACHE_MASK undeclared)
@ 2010-10-30  7:26 Sachin Sant
  2010-10-30  8:01 ` wu zhangjin
  0 siblings, 1 reply; 4+ messages in thread
From: Sachin Sant @ 2010-10-30  7:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-s390

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

-- 

---------------------------------
Sachin Sant
IBM Linux Technology Center
India Systems and Technology Labs
Bangalore, India
---------------------------------


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

* Re: [s390] 2.6.36-git14 build break - fs/compat.c :631 (PAGE_CACHE_MASK undeclared)
  2010-10-30  7:26 [s390] 2.6.36-git14 build break - fs/compat.c :631 (PAGE_CACHE_MASK undeclared) Sachin Sant
@ 2010-10-30  8:01 ` wu zhangjin
  2010-10-30  8:12   ` wu zhangjin
  0 siblings, 1 reply; 4+ messages in thread
From: wu zhangjin @ 2010-10-30  8:01 UTC (permalink / raw)
  To: Sachin Sant; +Cc: linux-kernel, linux-s390, linux-mips

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@in.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

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

* Re: [s390] 2.6.36-git14 build break - fs/compat.c :631 (PAGE_CACHE_MASK undeclared)
  2010-10-30  8:01 ` wu zhangjin
@ 2010-10-30  8:12   ` wu zhangjin
  2010-10-30 15:17     ` Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: wu zhangjin @ 2010-10-30  8:12 UTC (permalink / raw)
  To: Sachin Sant, Linus Torvalds; +Cc: linux-kernel, linux-s390, linux-mips

(Seems Linus added that patch, add him in this loop)

On Sat, Oct 30, 2010 at 4:01 PM, wu zhangjin <wuzhangjin@gmail.com> wrote:
> 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@in.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
>

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

* Re: [s390] 2.6.36-git14 build break - fs/compat.c :631 (PAGE_CACHE_MASK undeclared)
  2010-10-30  8:12   ` wu zhangjin
@ 2010-10-30 15:17     ` Linus Torvalds
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 2010-10-30 15:17 UTC (permalink / raw)
  To: wu zhangjin; +Cc: Sachin Sant, linux-kernel, linux-s390, linux-mips

On Sat, Oct 30, 2010 at 1:12 AM, wu zhangjin <wuzhangjin@gmail.com> wrote:
>
> (Seems Linus added that patch, add him in this loop)

My bad. It was such a totally obvious and trivial patch, and it
compiled for me on x86-64. Too bad our header include dependencies are
such a mess, and actually change from one architecture to another.

I'd love to fix up the header mess, but that's not going to happen. So
I'll take the <linux/filemap.h> addition.

Thanks,

                                  Linus

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

end of thread, other threads:[~2010-10-30 15:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-30  7:26 [s390] 2.6.36-git14 build break - fs/compat.c :631 (PAGE_CACHE_MASK undeclared) Sachin Sant
2010-10-30  8:01 ` wu zhangjin
2010-10-30  8:12   ` wu zhangjin
2010-10-30 15:17     ` Linus Torvalds

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.