All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Arnd Bergmann <arnd@arndb.de>
Cc: davidm@hpl.hp.com, Andrew Morton <akpm@osdl.org>,
	davidm@napali.hpl.hp.com, linux-arch@vger.kernel.org,
	epasch@de.ibm.com, hare@suse.de
Subject: Re: static DEFINE_PER_CPU vs. modules
Date: Wed, 05 May 2004 19:33:24 +1000	[thread overview]
Message-ID: <1083749604.14112.36.camel@bach> (raw)
In-Reply-To: <200405051021.13944.arnd@arndb.de>

On Wed, 2004-05-05 at 18:21, Arnd Bergmann wrote:
> On Tuesday 04 May 2004 21:45, David Mosberger wrote:
> >   Andrew> But then things will work OK on x86 but there's a risk that
> >   Andrew> s390 will see duplicated symbols at link-time.  Admittedly
> >   Andrew> the risk is pretty low, but in that case the risk is also
> >   Andrew> low on other architectures, so they can live with making the
> >   Andrew> symbols global.
> > 
> >   Andrew> What's the concern?  Just the tidiness thing?
> > 
> > It's wrong to change the kernel just because it happens to be the easy
> > way out.

Arnd,

	I agree with David Mosberger-Tang.  If there is no simpler way, do what
other archs do: make your module_alloc() allocate in a restricted
range.  Then have your own setup_per_cpu_areas() allocate from that
space, too, at boot.

This will solve the problem.  I realized this might be an issue when I
wrote this code, but wasn't aware of an existing arch which required it.

Hope that helps (took some time off, sorry for delayed response)
Rusty.
-- 
Anyone who quotes me in their signature is an idiot -- Rusty Russell

  parent reply	other threads:[~2004-05-05  9:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-03 15:41 static DEFINE_PER_CPU vs. modules Arnd Bergmann
2004-05-03 17:50 ` David Mosberger
2004-05-03 18:01   ` Richard Henderson
2004-05-03 18:37     ` David Mosberger
2004-05-03 22:24       ` Arnd Bergmann
2004-05-03 23:12         ` David Mosberger
2004-05-04  8:56           ` Arnd Bergmann
2004-05-04  2:38 ` Andrew Morton
2004-05-04 14:17   ` Arnd Bergmann
2004-05-04 16:29     ` David Mosberger
2004-05-04 19:03       ` Andrew Morton
2004-05-04 19:15         ` David Mosberger
2004-05-04 19:23           ` Andrew Morton
2004-05-04 19:45             ` David Mosberger
2004-05-05  8:21               ` Arnd Bergmann
2004-05-05  8:29                 ` Andrew Morton
2004-05-05  9:24                   ` Arnd Bergmann
2004-05-05  9:33                 ` Rusty Russell [this message]
2004-05-05 16:17                 ` David Mosberger
2004-05-05  3:18         ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
2004-05-05 17:42 Martin Schwidefsky

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=1083749604.14112.36.camel@bach \
    --to=rusty@rustcorp.com.au \
    --cc=akpm@osdl.org \
    --cc=arnd@arndb.de \
    --cc=davidm@hpl.hp.com \
    --cc=davidm@napali.hpl.hp.com \
    --cc=epasch@de.ibm.com \
    --cc=hare@suse.de \
    --cc=linux-arch@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 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.