From: Herbert Poetzl <herbert@13thfloor.at>
To: Paul Jackson <pj@sgi.com>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: hugepagetlb, include linux/module.h
Date: Mon, 10 May 2004 19:55:51 +0200 [thread overview]
Message-ID: <20040510175551.GA1201@MAIL.13thfloor.at> (raw)
In-Reply-To: <20040426164822.46bc97cc.pj@sgi.com>
On Mon, Apr 26, 2004 at 04:48:22PM -0700, Paul Jackson wrote:
> The #include of linux/module.h in several arch/*/mm/hugetlbpage.c files
> for EXPORT_SYMBOL(hugetlb_total_pages) was late to the party, and now
> appears to be late leaving. The hugetlb consolidation should have taken
> these includes out.
>
> This patch removes the #include of module.h from 4 arch/*/mm/hugetlbpage.c
> files. It is based off 2.6.6-rc2-mm2.
>
> I have only managed to rebuild 1 of these 4 w/o this include, but still
> this patch seems "obviously right".
>
> I rebuilt i386 successfully.
>
> I tried using the http://developer.osdl.org/dev/plm/cross_compile/
> stuff to compile this for sparc64, but ran afoul of missing PCI
> IDS for the Creator cards on sparc, as Andrew reported last week.
hmm, maybe this might be useful too:
http://vserver.13thfloor.at/Stuff/Cross/
(especially http://vserver.13thfloor.at/Stuff/Cross/howto.info)
HTH,
Herbert
PS: let me know if you need some help with the compile
> I don't know how to test the ppc64 build.
>
> I'm running afoul of some elf32_map breakage with the ia64 build,
> which will likely result in a separate patch. Still working that ...
>
> The patch, for what it's worth:
>
> # This is a BitKeeper generated patch for the following project:
> # Project Name: Linux kernel tree
> # This patch format is intended for GNU patch command version 2.5 or higher.
> # This patch includes the following deltas:
> # ChangeSet 1.1898 -> 1.1899
> # arch/ppc64/mm/hugetlbpage.c 1.25 -> 1.26
> # arch/ia64/mm/hugetlbpage.c 1.25 -> 1.26
> # arch/sparc64/mm/hugetlbpage.c 1.16 -> 1.17
> # arch/i386/mm/hugetlbpage.c 1.49 -> 1.50
> #
> # The following is the BitKeeper ChangeSet Log
> # --------------------------------------------
> # 04/04/26 pj@sgi.com 1.1899
> # Now that hugetlb consolidation removed EXPORT_SYMBOL, dont need module.h.
> # --------------------------------------------
> #
> diff -Nru a/arch/i386/mm/hugetlbpage.c b/arch/i386/mm/hugetlbpage.c
> --- a/arch/i386/mm/hugetlbpage.c Mon Apr 26 16:41:14 2004
> +++ b/arch/i386/mm/hugetlbpage.c Mon Apr 26 16:41:14 2004
> @@ -12,7 +12,6 @@
> #include <linux/pagemap.h>
> #include <linux/smp_lock.h>
> #include <linux/slab.h>
> -#include <linux/module.h>
> #include <linux/err.h>
> #include <linux/sysctl.h>
> #include <asm/mman.h>
> diff -Nru a/arch/ia64/mm/hugetlbpage.c b/arch/ia64/mm/hugetlbpage.c
> --- a/arch/ia64/mm/hugetlbpage.c Mon Apr 26 16:41:14 2004
> +++ b/arch/ia64/mm/hugetlbpage.c Mon Apr 26 16:41:14 2004
> @@ -9,7 +9,6 @@
> */
>
> #include <linux/config.h>
> -#include <linux/module.h>
> #include <linux/init.h>
> #include <linux/fs.h>
> #include <linux/mm.h>
> diff -Nru a/arch/ppc64/mm/hugetlbpage.c b/arch/ppc64/mm/hugetlbpage.c
> --- a/arch/ppc64/mm/hugetlbpage.c Mon Apr 26 16:41:14 2004
> +++ b/arch/ppc64/mm/hugetlbpage.c Mon Apr 26 16:41:14 2004
> @@ -14,7 +14,6 @@
> #include <linux/pagemap.h>
> #include <linux/smp_lock.h>
> #include <linux/slab.h>
> -#include <linux/module.h>
> #include <linux/err.h>
> #include <linux/sysctl.h>
> #include <asm/mman.h>
> diff -Nru a/arch/sparc64/mm/hugetlbpage.c b/arch/sparc64/mm/hugetlbpage.c
> --- a/arch/sparc64/mm/hugetlbpage.c Mon Apr 26 16:41:14 2004
> +++ b/arch/sparc64/mm/hugetlbpage.c Mon Apr 26 16:41:14 2004
> @@ -5,7 +5,6 @@
> */
>
> #include <linux/config.h>
> -#include <linux/module.h>
> #include <linux/init.h>
> #include <linux/fs.h>
> #include <linux/mm.h>
> @@ -14,7 +13,6 @@
> #include <linux/smp_lock.h>
> #include <linux/slab.h>
> #include <linux/sysctl.h>
> -#include <linux/module.h>
>
> #include <asm/mman.h>
> #include <asm/pgalloc.h>
>
>
> --
> I won't rest till it's the best ...
> Programmer, Linux Scalability
> Paul Jackson <pj@sgi.com> 1.650.933.1373
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2004-05-10 17:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-26 23:48 Paul Jackson
2004-04-27 2:08 ` Paul Jackson
2004-04-27 3:49 ` Paul Jackson
2004-05-10 17:55 ` Herbert Poetzl [this message]
2004-05-10 20:03 ` Paul Jackson
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=20040510175551.GA1201@MAIL.13thfloor.at \
--to=herbert@13thfloor.at \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pj@sgi.com \
/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
Powered by JetHome