mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: torvalds@linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] UAPI: Extra preparatory patches
Date: Thu, 04 Oct 2012 00:10:44 +0100	[thread overview]
Message-ID: <20121003231044.19239.81961.stgit@warthog.procyon.org.uk> (raw)


Hi Linus,

I have here a couple of extra preparatory patches for you that I discovered
were necessary today:

 (1) Remove reinclusion guards from certain asm/unistd.h files that were
     overriding the guard if __SYSCALL was defined, eg:

	#if defined(__ASM_UNISTD_H) || defined(__SYSCALL)

     The macro __SYSCALL is defined within and not then undef'd, thus
     rendering the guard ineffective.

     Clearly these guards are unnecessary, so drop them entirely for the
     moment.  We may want to add them back later, but it makes my scripts much
     easier to handle by virtue of simplifying the logic.

 (2) Break apart some cpp conditionals that got added with the arm64 arch that
     are of the form:

	defined(__KERNEL__) && defined(X)

     Splitting these into two separate nested conditionals makes scripting
     easier.

David
---
David Howells (2):
      UAPI: Split compound conditionals containing __KERNEL__ in Arm64
      UAPI: Fix the guards on various asm/unistd.h files


 arch/arm64/include/asm/hwcap.h      |    4 +++-
 arch/arm64/include/asm/stat.h       |    4 +++-
 arch/arm64/include/asm/unistd.h     |    8 +++-----
 arch/arm64/include/asm/unistd32.h   |    4 ----
 arch/c6x/include/asm/unistd.h       |    4 ----
 arch/hexagon/include/asm/unistd.h   |    5 -----
 arch/openrisc/include/asm/unistd.h  |    5 -----
 arch/score/include/asm/unistd.h     |    5 -----
 arch/tile/include/asm/unistd.h      |    5 -----
 arch/unicore32/include/asm/unistd.h |    4 ----
 include/asm-generic/unistd.h        |    4 ----
 11 files changed, 9 insertions(+), 43 deletions(-)


             reply	other threads:[~2012-10-03 23:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-03 23:10 David Howells [this message]
2012-10-03 23:10 ` [PATCH 1/2] UAPI: Fix the guards on various asm/unistd.h files David Howells
2012-10-03 23:10 ` [PATCH 2/2] UAPI: Split compound conditionals containing __KERNEL__ in Arm64 David Howells

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=20121003231044.19239.81961.stgit@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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®