mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tom Rini <trini@kernel.crashing.org>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: davem@redhat.com, cieciwa@alpha.zarz.agh.edu.pl,
	linux-kernel@vger.kernel.org, torvalds@osdl.org
Subject: Re: [SPARC64][PPC] strange error ..
Date: Mon, 15 Mar 2004 14:08:07 -0700	[thread overview]
Message-ID: <20040315210807.GC13167@smtp.west.cox.net> (raw)
In-Reply-To: <20040315125417.3839f8fa.rddunlap@osdl.org>

On Mon, Mar 15, 2004 at 12:54:17PM -0800, Randy.Dunlap wrote:
> On Mon, 15 Mar 2004 13:43:46 -0700 Tom Rini wrote:
> | On Mon, Mar 15, 2004 at 12:39:53PM -0800, David S. Miller wrote:
> | 
> | > On Mon, 15 Mar 2004 12:00:26 -0700
> | > Tom Rini <trini@kernel.crashing.org> wrote:
> | > 
> | > > That leaves the more general problem of <asm/unistd.h> uses 'asmlinkage'
> | > > on platforms where either (or both) of the following can be true:
> | > > - 'asmlinkage' is a meaningless term, and shouldn't be used.
> | > > - <asm/unistd.h> doesn't include <linux/linkage.h> so it's possible
> | > >   another file down the line breaks.
> | > 
> | > I think the best fix is to include linux/linkage.h in asm/unistd.h as
> | > you seem to be suggesting, and therefore that is the change I will
> | > push off to Linus to fix this on sparc32 and sparc64.
> | 
> | Erm, if I read include/asm-sparc{,64}/linkage.h right, 'asmlinkage' ends
> | up being defined to ''.  So why not just remove 'asmlinkage' from the
> | offending line in unistd.h ?
> 
> For future-proofing:  so that it will be like all other $arch/unistd.h,

It's not nearly all other $arch/unistd.h, it's arm, arm26, i386, ia64,
ppc64, v850 and x86_64.  Of which, only i386, ia64 and x86_64 arm* do
anything in <asm/linkage.h>.

So if we really do want to go down the future-proof <asm-*/unistd.h>
from the ia-centric folks (<grin>) road, we'd be better off with a patch
to fix everyone else's $arch/unistd.h.

> so that when someone changes the meaning of it, it will just work...?

The meaning of asmlinkage ?

-- 
Tom Rini
http://gate.crashing.org/~trini/

  reply	other threads:[~2004-03-15 21:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-15 13:41 Wojciech 'Sas' Cieciwa
2004-03-15 18:41 ` Wojciech 'Sas' Cieciwa
2004-03-15 19:00   ` Tom Rini
2004-03-15 20:39     ` David S. Miller
2004-03-15 20:43       ` Tom Rini
2004-03-15 20:54         ` Randy.Dunlap
2004-03-15 21:08           ` Tom Rini [this message]
2004-03-15 21:14             ` Randy.Dunlap
2004-03-15 21:33         ` David S. Miller
2004-03-15 22:02       ` Colin Leroy
     [not found]         ` <Pine.LNX.4.58L.0403160928530.23289@alpha.zarz.agh.edu.pl>
2004-03-16 15:25           ` Tom Rini

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=20040315210807.GC13167@smtp.west.cox.net \
    --to=trini@kernel.crashing.org \
    --cc=cieciwa@alpha.zarz.agh.edu.pl \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rddunlap@osdl.org \
    --cc=torvalds@osdl.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

all inboxes | Powered by JetHome®