All of lore.kernel.org
 help / color / mirror / Atom feed
* + page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch added to -mm tree
@ 2008-06-30 22:33 akpm
  2008-07-01 18:22 ` Andrea Righi
  0 siblings, 1 reply; 4+ messages in thread
From: akpm @ 2008-06-30 22:33 UTC (permalink / raw)
  To: mm-commits; +Cc: righi.andrea, linux-arch


The patch titled
     page_align-correctly-handle-64-bit-values-on-32-bit-architectures x86_64 fix
has been added to the -mm tree.  Its filename is
     page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: page_align-correctly-handle-64-bit-values-on-32-bit-architectures x86_64 fix
From: Andrea Righi <righi.andrea@gmail.com>

x86_64 allmodconfig build failed due to a missing #include <linux/mm.h>
in arch/x86/kernel/module_64.c.

Following patch resolves (on top of the previous one).

Except this, no errors for x86_64.

Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/x86/kernel/module_64.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN arch/x86/kernel/module_64.c~page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix arch/x86/kernel/module_64.c
--- a/arch/x86/kernel/module_64.c~page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix
+++ a/arch/x86/kernel/module_64.c
@@ -22,6 +22,7 @@
 #include <linux/fs.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
+#include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/bug.h>
 
_

Patches currently in -mm which might be from righi.andrea@gmail.com are

page_align-correctly-handle-64-bit-values-on-32-bit-architectures.patch
page_align-correctly-handle-64-bit-values-on-32-bit-architectures-v850-fix.patch
page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch
distinct-tgid-tid-i-o-statistics.patch

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

* + page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch added to -mm tree
@ 2008-06-30 22:33 akpm
  0 siblings, 0 replies; 4+ messages in thread
From: akpm @ 2008-06-30 22:33 UTC (permalink / raw)
  To: mm-commits; +Cc: righi.andrea, linux-arch


The patch titled
     page_align-correctly-handle-64-bit-values-on-32-bit-architectures x86_64 fix
has been added to the -mm tree.  Its filename is
     page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: page_align-correctly-handle-64-bit-values-on-32-bit-architectures x86_64 fix
From: Andrea Righi <righi.andrea@gmail.com>

x86_64 allmodconfig build failed due to a missing #include <linux/mm.h>
in arch/x86/kernel/module_64.c.

Following patch resolves (on top of the previous one).

Except this, no errors for x86_64.

Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/x86/kernel/module_64.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN arch/x86/kernel/module_64.c~page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix arch/x86/kernel/module_64.c
--- a/arch/x86/kernel/module_64.c~page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix
+++ a/arch/x86/kernel/module_64.c
@@ -22,6 +22,7 @@
 #include <linux/fs.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
+#include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/bug.h>
 
_

Patches currently in -mm which might be from righi.andrea@gmail.com are

page_align-correctly-handle-64-bit-values-on-32-bit-architectures.patch
page_align-correctly-handle-64-bit-values-on-32-bit-architectures-v850-fix.patch
page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch
distinct-tgid-tid-i-o-statistics.patch


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

* Re: + page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch added to -mm tree
  2008-06-30 22:33 + page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch added to -mm tree akpm
@ 2008-07-01 18:22 ` Andrea Righi
  2008-07-01 20:23   ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Andrea Righi @ 2008-07-01 18:22 UTC (permalink / raw)
  To: akpm; +Cc: mm-commits, linux-arch, Paul Mackerras, Balbir Singh

akpm@linux-foundation.org wrote:
> ------------------------------------------------------
> Subject: page_align-correctly-handle-64-bit-values-on-32-bit-architectures x86_64 fix
> From: Andrea Righi <righi.andrea@gmail.com>
> 
> x86_64 allmodconfig build failed due to a missing #include <linux/mm.h>
> in arch/x86/kernel/module_64.c.

There are probably other missing includes like this for other
architectures, due to the move of PAGE_ALIGN() from asm-*/page.h to
linux/mm.h. I tested allmodconfig and some randconfig only with x86_64
and i386.

I've found other (probably) missing includes doing some simple greps,
see patch v2:

http://lkml.org/lkml/2008/6/15/85

Otherwise, a less intrusive approach could be to just fix the bug and
don't move PAGE_ALIGN() out of asm-*/page.h, see v3:

http://lkml.org/lkml/2008/6/19/217

Let me know if you need a patch (v2 or v3) on-top-of the previous one.

-Andrea

> 
> Following patch resolves (on top of the previous one).
> 
> Except this, no errors for x86_64.
> 
> Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
> Cc: <linux-arch@vger.kernel.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  arch/x86/kernel/module_64.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff -puN arch/x86/kernel/module_64.c~page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix arch/x86/kernel/module_64.c
> --- a/arch/x86/kernel/module_64.c~page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix
> +++ a/arch/x86/kernel/module_64.c
> @@ -22,6 +22,7 @@
>  #include <linux/fs.h>
>  #include <linux/string.h>
>  #include <linux/kernel.h>
> +#include <linux/mm.h>
>  #include <linux/slab.h>
>  #include <linux/bug.h>
>  

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

* Re: + page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch added to -mm tree
  2008-07-01 18:22 ` Andrea Righi
@ 2008-07-01 20:23   ` Andrew Morton
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2008-07-01 20:23 UTC (permalink / raw)
  To: righi.andrea; +Cc: linux-arch, paulus, balbir

On Tue, 01 Jul 2008 20:22:38 +0200
Andrea Righi <righi.andrea@gmail.com> wrote:

> akpm@linux-foundation.org wrote:
> > ------------------------------------------------------
> > Subject: page_align-correctly-handle-64-bit-values-on-32-bit-architectures x86_64 fix
> > From: Andrea Righi <righi.andrea@gmail.com>
> > 
> > x86_64 allmodconfig build failed due to a missing #include <linux/mm.h>
> > in arch/x86/kernel/module_64.c.
> 
> There are probably other missing includes like this for other
> architectures, due to the move of PAGE_ALIGN() from asm-*/page.h to
> linux/mm.h. I tested allmodconfig and some randconfig only with x86_64
> and i386.
> 
> I've found other (probably) missing includes doing some simple greps,
> see patch v2:
> 
> http://lkml.org/lkml/2008/6/15/85
> 
> Otherwise, a less intrusive approach could be to just fix the bug and
> don't move PAGE_ALIGN() out of asm-*/page.h, see v3:
> 
> http://lkml.org/lkml/2008/6/19/217
> 
> Let me know if you need a patch (v2 or v3) on-top-of the previous one.
> 

It's dopey to duplicate identical code in tens of header files.  There
is no conceivable reason why an architecture would want to have a
customised version of PAGE_ALIGN().

So let's just struggle on and get it right.  Please send me any needed
fixups against the current

page_align-correctly-handle-64-bit-values-on-32-bit-architectures.patch
page_align-correctly-handle-64-bit-values-on-32-bit-architectures-v850-fix.patch
page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch
page_align-correctly-handle-64-bit-values-on-32-bit-architectures-powerpc-fix.patch

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

end of thread, other threads:[~2008-07-01 20:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-30 22:33 + page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch added to -mm tree akpm
2008-07-01 18:22 ` Andrea Righi
2008-07-01 20:23   ` Andrew Morton
  -- strict thread matches above, loose matches on Subject: below --
2008-06-30 22:33 akpm

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.