From: Christoph Hellwig <hch@infradead.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH 1/4] SGI Altix cross partition functionality
Date: Wed, 16 Jun 2004 16:39:44 +0000 [thread overview]
Message-ID: <20040616163944.GA15227@infradead.org> (raw)
In-Reply-To: <20040616163339.GA27891@sgi.com>
On Wed, Jun 16, 2004 at 11:33:39AM -0500, Dean Nelson wrote:
> #include <asm/page.h>
> #include <asm/sal.h>
> #include <asm/pal.h>
>
> spinlock_t sal_lock __cacheline_aligned = SPIN_LOCK_UNLOCKED;
> +EXPORT_SYMBOL(sal_lock);
No. Please don't make random sal calls from modules.
> +
> unsigned long sal_platform_features;
>
> unsigned short sal_revision;
> @@ -38,6 +41,8 @@ default_handler (void)
> }
>
> ia64_sal_handler ia64_sal = (ia64_sal_handler) default_handler;
> +EXPORT_SYMBOL(ia64_sal);
Dito. I think you need to find a better abstraction.
> Index: linux/arch/ia64/kernel/smpboot.c
> =================================> --- linux.orig/arch/ia64/kernel/smpboot.c Thu Jun 10 14:47:53 2004
> +++ linux/arch/ia64/kernel/smpboot.c Thu Jun 10 16:31:55 2004
> @@ -498,6 +498,7 @@ u8 cpu_to_node_map[NR_CPUS] __cacheline_
> EXPORT_SYMBOL(cpu_to_node_map);
> /* which logical CPUs are on which nodes */
> cpumask_t node_to_cpu_mask[MAX_NUMNODES] __cacheline_aligned;
> +EXPORT_SYMBOL(node_to_cpu_mask);
Isn't there a higher level interface for this?
> =================================> --- linux.orig/arch/ia64/sn/kernel/setup.c Thu Jun 10 16:29:44 2004
> +++ linux/arch/ia64/sn/kernel/setup.c Thu Jun 10 16:31:55 2004
> @@ -50,6 +50,7 @@
> #include <asm/sn/sn2/shub.h>
>
> DEFINE_PER_CPU(struct pda_s, pda_percpu);
> +EXPORT_SYMBOL(per_cpu__pda_percpu);
Umm, no. Poking into kernel per-cpu data like the pda from modules sounds
like a bad idea. And if you absolutely must use the proper helpers for
exporting it.
> Index: linux/kernel/exit.c
> =================================> --- linux.orig/kernel/exit.c Thu Jun 10 15:04:09 2004
> +++ linux/kernel/exit.c Thu Jun 10 16:31:55 2004
> @@ -1184,6 +1184,7 @@ end_wait4:
> remove_wait_queue(¤t->wait_chldexit,&wait);
> return retval;
> }
> +EXPORT_SYMBOL(sys_wait4);
No way. Calling syscalls from kernelspace is always a bad idea. (And this
is not linux-ia64 material anyway)
> Index: linux/kernel/sched.c
> =================================> --- linux.orig/kernel/sched.c Thu Jun 10 16:30:39 2004
> +++ linux/kernel/sched.c Thu Jun 10 16:31:55 2004
> @@ -2814,6 +2814,7 @@ asmlinkage long sys_sched_setscheduler(p
> {
> return setscheduler(pid, policy, param);
> }
> +EXPORT_SYMBOL(sys_sched_setscheduler);
Again, don't mess with scheduler paramters from your modules.
> /**
> * sys_sched_setparam - set/change the RT priority of a thread
> Index: linux/mm/page_alloc.c
> =================================> --- linux.orig/mm/page_alloc.c Thu Jun 10 14:47:51 2004
> +++ linux/mm/page_alloc.c Thu Jun 10 16:31:55 2004
> @@ -40,6 +40,7 @@ unsigned long totalram_pages;
> unsigned long totalhigh_pages;
> int nr_swap_pages;
> int numnodes = 1;
> +EXPORT_SYMBOL(numnodes);
bad idea. I have patches to completely kill numnodes, don't try to
mess with it. So far it's also completly an architecture-thing.
next prev parent reply other threads:[~2004-06-16 16:39 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-16 16:33 [PATCH 1/4] SGI Altix cross partition functionality Dean Nelson
2004-06-16 16:39 ` Christoph Hellwig [this message]
2004-06-16 17:20 ` Jesse Barnes
2004-06-16 17:28 ` Christoph Hellwig
2004-06-16 17:40 ` Robin Holt
2004-06-16 17:43 ` Christoph Hellwig
2004-06-16 19:36 ` Robin Holt
2004-07-14 16:01 ` Dean Nelson
2004-07-14 16:04 ` Dean Nelson
2004-07-15 12:47 ` Dean Nelson
2004-07-15 20:58 ` Christoph Hellwig
2004-07-15 21:00 ` Christoph Hellwig
2004-07-15 21:16 ` Jack Steiner
2004-07-29 16:10 ` Dean Nelson
2004-07-30 22:15 ` Luck, Tony
2004-07-31 12:46 ` Robin Holt
2004-08-10 19:54 ` Dean Nelson
2004-08-12 15:10 ` Dean Nelson
2004-08-23 16:50 ` Dean Nelson
2004-08-23 17:10 ` Dean Nelson
2004-08-23 17:51 ` Christoph Hellwig
2004-08-23 17:52 ` Christoph Hellwig
2004-08-23 19:16 ` Dean Nelson
2004-09-14 18:58 ` [PATCH 1/4] SGI Altix cross partition functionality (1st revision) Dean Nelson
2004-10-21 8:59 ` Christoph Hellwig
2004-10-21 11:01 ` Dean Nelson
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=20040616163944.GA15227@infradead.org \
--to=hch@infradead.org \
--cc=linux-ia64@vger.kernel.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