]> git.karo-electronics.de Git - karo-tx-linux.git/commit
uapi/linux/a.out.h: don't use deprecated system-specific predefines.
authorZack Weinberg <zackw@panix.com>
Wed, 14 Jun 2017 15:14:28 +0000 (08:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Jun 2017 20:53:07 +0000 (13:53 -0700)
commitfbd576295d6f98b20356d1e6efbc8f976b17c8af
tree8cb8ca1ba24c6355b52793048fa10079e979d3f2
parentdbd1877754338dc98818d200cd25cf398d8b5d9e
uapi/linux/a.out.h: don't use deprecated system-specific predefines.

uapi/linux/a.out.h uses a number of predefined macros that are
deprecated because they're in the application namespace
(e.g. '#ifdef linux' instead of '#ifdef __linux__').
This patch either corrects or just removes them if they are not
applicable to Linux.

The primary reason this is worth bothering to fix, considering how
obsolete a.out binary support is, is that the GCC build process
considers this such a severe error that it will copy the header into a
private directory and change the macro names, which causes future
updates to the header to be masked.  This header probably doesn't get
updated very often anymore, but it is the _only_ uapi header that gets
this treatment, so IMHO it is worth patching just to drive that number
all the way to zero.

Signed-off-by: Zack Weinberg <zackw@panix.com>
[hch: removed dead conditionals]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/uapi/linux/a.out.h