Generic Linux architectural discussions
 help / color / mirror / Atom feed
From: Andrea Righi <righi.andrea@gmail.com>
To: akpm@linux-foundation.org
Cc: mm-commits@vger.kernel.org, linux-arch@vger.kernel.org,
	Paul Mackerras <paulus@samba.org>,
	Balbir Singh <balbir@linux.vnet.ibm.com>
Subject: Re: + page_align-correctly-handle-64-bit-values-on-32-bit-architectures-x86_64-fix.patch added to -mm tree
Date: Tue, 01 Jul 2008 20:22:38 +0200	[thread overview]
Message-ID: <486A75EE.1060606@gmail.com> (raw)
In-Reply-To: <200806302233.m5UMXpAn029071@imap1.linux-foundation.org>

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>
>  

  reply	other threads:[~2008-07-01 18:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2008-07-01 20:23   ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=486A75EE.1060606@gmail.com \
    --to=righi.andrea@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox