mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Adrian Bunk <bunk@fs.tum.de>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: Inconsistent "#ifdef __KERNEL__" on different architectures
Date: Tue, 5 Jun 2001 22:15:30 +1000 (EST)	[thread overview]
Message-ID: <15132.52578.97084.238201@argo.ozlabs.ibm.com> (raw)
In-Reply-To: <Pine.NEB.4.33.0106051124320.18917-100000@mars.fachschaften.tu-muenchen.de>
In-Reply-To: <15132.23395.553496.50934@argo.ozlabs.ibm.com> <Pine.NEB.4.33.0106051124320.18917-100000@mars.fachschaften.tu-muenchen.de>

Adrian Bunk writes:

> Whatever the right policy is, the main concern in my initial mail was the
> _consistency_ of the kernel headers between different architectures.
> So when you want to flush out these programs I see no reason to
> inconsistetly change it only on one architecture.

Different architectures are maintained by different people who have
different perspectives on things.  The only thing you have any right
to expect any consistency in is the kernel API, and even there things
like error numbers etc. differ between architectures.

If you want consistency, you would either have to persuade Linus to
issue an edict or else persuade every single architecture maintainer
to do things the same way.  But if the motivation is to make it easier
for user-level programs to use things which are not intended to be
exported to userspace, then all you will achieve is that we will make
sure that you can't use those things from userspace.  And this
definitely includes things like atomics, bitops, memory barriers etc.
Take a copy by all means but don't rely on the kernel definitions for
your userspace programs.

It is the policy for all architectures that kernel headers should not
be used in userspace programs.  The "inconsistency" that you are
complaining about is only a difference in the extent to which
this policy is enforced.

Paul.

  parent reply	other threads:[~2001-06-05 12:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-27 17:25 Adrian Bunk
2001-05-27 17:29 ` Alan Cox
2001-05-27 19:16 ` Abramo Bagnara
2001-05-27 21:07   ` Adrian Bunk
2001-05-27 21:42     ` Russell King - ARM Linux
2001-05-27 22:10     ` Philip Blundell
2001-05-29 22:30       ` Ralf Baechle
2001-06-02 20:29         ` Adrian Bunk
2001-06-05  4:09         ` Paul Mackerras
2001-06-05  9:33           ` Adrian Bunk
2001-06-05 12:15           ` Paul Mackerras [this message]
2001-06-06  6:51           ` Albert D. Cahalan

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=15132.52578.97084.238201@argo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=bunk@fs.tum.de \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®