| To: | Sachin Sant <sachinp@in.ibm.com> |
|---|---|
| Subject: | Re: [s390] 2.6.36-git14 build break - fs/compat.c :631 (PAGE_CACHE_MASK undeclared) |
| From: | wu zhangjin <wuzhangjin@gmail.com> |
| Date: | Sat, 30 Oct 2010 16:01:00 +0800 |
| Cc: | linux-kernel <linux-kernel@vger.kernel.org>, linux-s390@vger.kernel.org, linux-mips <linux-mips@linux-mips.org> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=SpzZvanYR0dxKwYpKe8maGy55viI9X0sMlMYWl339eI=; b=FVboFJ8PfA35w00X7Pnw3DzZEtjXHsGAx03S+gxFkI7Kdq3Xyd2egAXnYGAvv5aYeV wBPmIIr9lDGYiuCMVZeM0W97zGkpUYvLpQ2NYTHW/qsi6YnxPlyuKzFf78g6qh3XTyI3 fqnLC345UVc3CnEb/hMaoiA8JDLYA3rpRcMwE= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=P9aKe2bf91wiFMcwsikdvQfTPZlV2sLWDf3X7a5qoI9KzU2P4oLB7zVM0M4ZOoeEaE 9jg1z+vatoTVe/HlNHY5fqLjGcD+c0+hvnq15bV0fD+Mkkqj9kexaquVGUqR//thRyZ3 4KYx/ZnKlXaVVv3OpiZAIaLxaKKcEjJkIaX9k= |
| In-reply-to: | <4CCBC8B1.2080808@in.ibm.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <4CCBC8B1.2080808@in.ibm.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] of: of_mdio: Fix some endianness problems., Grant Likely |
|---|---|
| Next by Date: | Re: [s390] 2.6.36-git14 build break - fs/compat.c :631 (PAGE_CACHE_MASK undeclared), wu zhangjin |
| Previous by Thread: | [PATCH] of: of_mdio: Fix some endianness problems., David Daney |
| Next by Thread: | Re: [s390] 2.6.36-git14 build break - fs/compat.c :631 (PAGE_CACHE_MASK undeclared), wu zhangjin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |