2011-02-21 06:57:10

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build failure after merge of the final tree (kvm tree related)

Hi all,

After merging the final tree, today's linux-next build (sparc64 defconfig)
failed like this:

mm/memory.c: In function '__get_user_pages':
mm/memory.c:1584: error: 'EHWPOISON' undeclared (first use in this function)

Caused by commit b1c4f2836370f5c8207d4c61e91c93bd6a4ce27a ("mm: make
__get_user_pages return -EHWPOISON for HWPOISON page optionally") from
the kvm tree.

Not all architectures use include/asm-generic/errno.h ...

I have reverted that commit (and commits
d47b742c5661385b927c03188549b2d2004b80f4 "KVM: Replace
is_hwpoison_address with __get_user_pages" and
eef8839430b72deac59e9ec51eb56c44512fcc66 "mm: remove is_hwpoison_address"
which depend on it) for today.
--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (791.00 B)
(No filename) (490.00 B)
Download all attachments

2011-02-21 08:10:31

by Huang, Ying

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the final tree (kvm tree related)

Hi, Stephen,

On Mon, 2011-02-21 at 14:56 +0800, Stephen Rothwell wrote:
> Hi all,
>
> After merging the final tree, today's linux-next build (sparc64 defconfig)
> failed like this:
>
> mm/memory.c: In function '__get_user_pages':
> mm/memory.c:1584: error: 'EHWPOISON' undeclared (first use in this function)
>
> Caused by commit b1c4f2836370f5c8207d4c61e91c93bd6a4ce27a ("mm: make
> __get_user_pages return -EHWPOISON for HWPOISON page optionally") from
> the kvm tree.
>
> Not all architectures use include/asm-generic/errno.h ...

Thanks for reminding. Does the patch as follow fixes the issue?

Best Regards,
Huang Ying

---
arch/alpha/include/asm/errno.h | 2 ++
arch/mips/include/asm/errno.h | 2 ++
arch/parisc/include/asm/errno.h | 2 ++
arch/sparc/include/asm/errno.h | 2 ++
4 files changed, 8 insertions(+)

--- a/arch/parisc/include/asm/errno.h
+++ b/arch/parisc/include/asm/errno.h
@@ -122,4 +122,6 @@

#define ERFKILL 256 /* Operation not possible due to RF-kill */

+#define EHWPOISON 257 /* Memory page has hardware error */
+
#endif
--- a/arch/sparc/include/asm/errno.h
+++ b/arch/sparc/include/asm/errno.h
@@ -112,4 +112,6 @@

#define ERFKILL 134 /* Operation not possible due to RF-kill */

+#define EHWPOISON 135 /* Memory page has hardware error */
+
#endif
--- a/arch/alpha/include/asm/errno.h
+++ b/arch/alpha/include/asm/errno.h
@@ -122,4 +122,6 @@

#define ERFKILL 138 /* Operation not possible due to RF-kill */

+#define EHWPOISON 139 /* Memory page has hardware error */
+
#endif
--- a/arch/mips/include/asm/errno.h
+++ b/arch/mips/include/asm/errno.h
@@ -121,6 +121,8 @@

#define ERFKILL 167 /* Operation not possible due to RF-kill */

+#define EHWPOISON 168 /* Memory page has hardware error */
+
#define EDQUOT 1133 /* Quota exceeded */

#ifdef __KERNEL__

2011-02-28 02:16:10

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the final tree (kvm tree related)

Hi All,

On Mon, 21 Feb 2011 17:56:58 +1100 Stephen Rothwell <[email protected]> wrote:
>
> After merging the final tree, today's linux-next build (sparc64 defconfig)
> failed like this:
>
> mm/memory.c: In function '__get_user_pages':
> mm/memory.c:1584: error: 'EHWPOISON' undeclared (first use in this function)
>
> Caused by commit b1c4f2836370f5c8207d4c61e91c93bd6a4ce27a ("mm: make
> __get_user_pages return -EHWPOISON for HWPOISON page optionally") from
> the kvm tree.
>
> Not all architectures use include/asm-generic/errno.h ...
>
> I have reverted that commit (and commits
> d47b742c5661385b927c03188549b2d2004b80f4 "KVM: Replace
> is_hwpoison_address with __get_user_pages" and
> eef8839430b72deac59e9ec51eb56c44512fcc66 "mm: remove is_hwpoison_address"
> which depend on it) for today.

I am still doing those reverts ...

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (946.00 B)
(No filename) (490.00 B)
Download all attachments

2011-02-28 02:28:59

by Huang, Ying

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the final tree (kvm tree related)

Hi, Avi and Marcelo,

On Mon, 2011-02-28 at 10:15 +0800, Stephen Rothwell wrote:
> Hi All,
>
> On Mon, 21 Feb 2011 17:56:58 +1100 Stephen Rothwell <[email protected]> wrote:
> >
> > After merging the final tree, today's linux-next build (sparc64 defconfig)
> > failed like this:
> >
> > mm/memory.c: In function '__get_user_pages':
> > mm/memory.c:1584: error: 'EHWPOISON' undeclared (first use in this function)
> >
> > Caused by commit b1c4f2836370f5c8207d4c61e91c93bd6a4ce27a ("mm: make
> > __get_user_pages return -EHWPOISON for HWPOISON page optionally") from
> > the kvm tree.
> >
> > Not all architectures use include/asm-generic/errno.h ...
> >
> > I have reverted that commit (and commits
> > d47b742c5661385b927c03188549b2d2004b80f4 "KVM: Replace
> > is_hwpoison_address with __get_user_pages" and
> > eef8839430b72deac59e9ec51eb56c44512fcc66 "mm: remove is_hwpoison_address"
> > which depend on it) for today.
>
> I am still doing those reverts ...

Can you merge the fixes following the email into my original EHWPOISON
patch to check if that fixes linux-next issue?

Or you prefer I resend the patchset?

Best Regards,
Huang Ying

---
arch/alpha/include/asm/errno.h | 2 ++
arch/mips/include/asm/errno.h | 2 ++
arch/parisc/include/asm/errno.h | 2 ++
arch/sparc/include/asm/errno.h | 2 ++
4 files changed, 8 insertions(+)

--- a/arch/parisc/include/asm/errno.h
+++ b/arch/parisc/include/asm/errno.h
@@ -122,4 +122,6 @@

#define ERFKILL 256 /* Operation not possible due to RF-kill */

+#define EHWPOISON 257 /* Memory page has hardware error */
+
#endif
--- a/arch/sparc/include/asm/errno.h
+++ b/arch/sparc/include/asm/errno.h
@@ -112,4 +112,6 @@

#define ERFKILL 134 /* Operation not possible due to RF-kill */

+#define EHWPOISON 135 /* Memory page has hardware error */
+
#endif
--- a/arch/alpha/include/asm/errno.h
+++ b/arch/alpha/include/asm/errno.h
@@ -122,4 +122,6 @@

#define ERFKILL 138 /* Operation not possible due to RF-kill */

+#define EHWPOISON 139 /* Memory page has hardware error */
+
#endif
--- a/arch/mips/include/asm/errno.h
+++ b/arch/mips/include/asm/errno.h
@@ -121,6 +121,8 @@

#define ERFKILL 167 /* Operation not possible due to RF-kill */

+#define EHWPOISON 168 /* Memory page has hardware error */
+
#define EDQUOT 1133 /* Quota exceeded */

#ifdef __KERNEL__

2011-02-28 09:37:16

by Avi Kivity

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the final tree (kvm tree related)

On 02/28/2011 04:28 AM, Huang Ying wrote:
> Hi, Avi and Marcelo,
>
> On Mon, 2011-02-28 at 10:15 +0800, Stephen Rothwell wrote:
> > Hi All,
> >
> > On Mon, 21 Feb 2011 17:56:58 +1100 Stephen Rothwell<[email protected]> wrote:
> > >
> > > After merging the final tree, today's linux-next build (sparc64 defconfig)
> > > failed like this:
> > >
> > > mm/memory.c: In function '__get_user_pages':
> > > mm/memory.c:1584: error: 'EHWPOISON' undeclared (first use in this function)
> > >
> > > Caused by commit b1c4f2836370f5c8207d4c61e91c93bd6a4ce27a ("mm: make
> > > __get_user_pages return -EHWPOISON for HWPOISON page optionally") from
> > > the kvm tree.
> > >
> > > Not all architectures use include/asm-generic/errno.h ...
> > >
> > > I have reverted that commit (and commits
> > > d47b742c5661385b927c03188549b2d2004b80f4 "KVM: Replace
> > > is_hwpoison_address with __get_user_pages" and
> > > eef8839430b72deac59e9ec51eb56c44512fcc66 "mm: remove is_hwpoison_address"
> > > which depend on it) for today.
> >
> > I am still doing those reverts ...
>
> Can you merge the fixes following the email into my original EHWPOISON
> patch to check if that fixes linux-next issue?
>

I folded this into the original patch, will show up in next linux-next.

--
error compiling committee.c: too many arguments to function