mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Joseph S. Myers" <joseph@codesourcery.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Remove "#ifdef linux" from linux/a.out.h
Date: Tue, 11 Oct 2011 14:30:52 +0000 (UTC)	[thread overview]
Message-ID: <Pine.LNX.4.64.1110111429060.30672@digraph.polyomino.org.uk> (raw)

The <linux/a.out.h> header contains "#ifdef linux".  GCC's fixincludes
then creates its own copy of the installed header with this changed to
"#ifdef __linux__".  There should be no need for "#ifdef linux" in
Linux kernel headers, so this patch removes the conditional.

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
---
Previous submission: http://lkml.org/lkml/2006/10/6/201
--- linux-3.0/include/linux/a.out.h.orig	2011-08-04 21:59:21.000000000 -0700
+++ linux-3.0/include/linux/a.out.h	2011-10-11 07:21:33.775483226 -0700
@@ -129,7 +129,6 @@ enum machine_type {
 #define SEGMENT_SIZE PAGE_SIZE
 #endif
 
-#ifdef linux
 #ifdef __KERNEL__
 #include <asm/page.h>
 #else
@@ -146,7 +145,6 @@ enum machine_type {
 #endif
 #endif
 #endif
-#endif
 
 #define _N_SEGMENT_ROUND(x) ALIGN(x, SEGMENT_SIZE)
 

-- 
Joseph S. Myers
joseph@codesourcery.com

             reply	other threads:[~2011-10-11 14:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-11 14:30 Joseph S. Myers [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-10-06 17:14 Joseph S. Myers

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=Pine.LNX.4.64.1110111429060.30672@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --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®