From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Jaswinder Singh Rajput <jaswinder@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Sam Ravnborg <sam@ravnborg.org>, Ingo Molnar <mingo@elte.hu>,
Catalin Marinas <catalin.marinas@arm.com>,
Tony Luck <tony.luck@intel.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Greg Ungerer <gerg@snapgear.com>,
Ralf Baechle <ralf@linux-mips.org>,
Michael Abbott <michael@araneidae.co.uk>,
Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>,
David Howells <dhowells@redhat.com>
Subject: Re: [GIT PULL] headers_check fixes
Date: Sat, 6 Jun 2009 22:51:07 +0100 [thread overview]
Message-ID: <20090606215107.GA23695@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20090606214711.GA4813@flint.arm.linux.org.uk>
On Sat, Jun 06, 2009 at 10:47:11PM +0100, Russell King wrote:
> What follows this email is the diff of what effect it has on the
> headers copied over - as can be seen, all resulting changes are of
> net benefit.
And here is the patch illustrating the overall change on the installed
header files. As can be seen, all instances of:
#if defined(__KERNEL__) && ...
...
#endif
are removed, and:
#if !defined(__KERNEL__) || ...
...
#endif
have the conditionals also correctly removed, leaving the code between
properly exposed.
Clearly from the number of differences below, I'm not the only one who
is "ignorant" of this magic new rule about __KERNEL__, and I suggest
that no such rule actually ever existed.
diff -ur include.old/asm/hwcap.h include/asm/hwcap.h
--- include.old/asm/hwcap.h 2009-06-06 19:29:31.000000000 +0100
+++ include/asm/hwcap.h 2009-06-06 22:40:58.000000000 +0100
@@ -20,13 +20,5 @@
#define HWCAP_VFPv3 8192
#define HWCAP_VFPv3D16 16384
-#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
-/*
- * This yields a mask that user programs can use to figure out what
- * instruction set this cpu supports.
- */
-#define ELF_HWCAP (elf_hwcap)
-extern unsigned int elf_hwcap;
-#endif
#endif
diff -ur include.old/linux/acct.h include/linux/acct.h
--- include.old/linux/acct.h 2009-06-06 19:29:27.000000000 +0100
+++ include/linux/acct.h 2009-06-06 22:40:55.000000000 +0100
@@ -59,9 +59,7 @@
comp_t ac_majflt; /* Major Pagefaults */
comp_t ac_swaps; /* Number of Swaps */
/* m68k had no padding here. */
-#if !defined(CONFIG_M68K) || !defined(__KERNEL__)
__u16 ac_ahz; /* AHZ */
-#endif
__u32 ac_exitcode; /* Exitcode */
char ac_comm[ACCT_COMM + 1]; /* Command Name */
__u8 ac_etime_hi; /* Elapsed Time MSB */
diff -ur include.old/linux/soundcard.h include/linux/soundcard.h
--- include.old/linux/soundcard.h 2009-06-06 19:29:30.000000000 +0100
+++ include/linux/soundcard.h 2009-06-06 22:40:57.000000000 +0100
@@ -1033,7 +1033,6 @@
*/
#define LOCL_STARTAUDIO 1
-#if !defined(__KERNEL__) || defined(USE_SEQ_MACROS)
/*
* Some convenience macros to simplify programming of the
* /dev/sequencer interface
@@ -1275,4 +1274,3 @@
(SEQ_DUMPBUF(), write(seqfd, (char*)(patchx), len))
#endif
-#endif
diff -ur include.old/linux/videodev.h include/linux/videodev.h
--- include.old/linux/videodev.h 2009-06-06 19:29:30.000000000 +0100
+++ include/linux/videodev.h 2009-06-06 22:40:58.000000000 +0100
@@ -16,24 +16,6 @@
#include <linux/ioctl.h>
#include <linux/videodev2.h>
-#if defined(__MIN_V4L1) && defined (__KERNEL__)
-
-/*
- * Used by those V4L2 core functions that need a minimum V4L1 support,
- * in order to allow V4L1 Compatibilty code compilation.
- */
-
-struct video_mbuf
-{
- int size; /* Total memory to map */
- int frames; /* Frames */
- int offsets[VIDEO_MAX_FRAME];
-};
-
-#define VIDIOCGMBUF _IOR('v',20, struct video_mbuf) /* Memory map buffer info */
-
-#else
-#if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__)
#define VID_TYPE_CAPTURE 1 /* Can capture */
#define VID_TYPE_TUNER 2 /* Can tune */
@@ -328,8 +310,6 @@
#define VID_PLAY_RESET 13
#define VID_PLAY_END_MARK 14
-#endif /* CONFIG_VIDEO_V4L1_COMPAT */
-#endif /* __MIN_V4L1 */
#endif /* __LINUX_VIDEODEV_H */
diff -ur include.old/video/edid.h include/video/edid.h
--- include.old/video/edid.h 2009-06-06 19:29:31.000000000 +0100
+++ include/video/edid.h 2009-06-06 22:40:58.000000000 +0100
@@ -1,13 +1,11 @@
#ifndef __linux_video_edid_h__
#define __linux_video_edid_h__
-#if !defined(__KERNEL__) || defined(CONFIG_X86)
struct edid_info {
unsigned char dummy[128];
};
-#endif
#endif /* __linux_video_edid_h__ */
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
next prev parent reply other threads:[~2009-06-06 21:51 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-04 12:23 [PATCH 0/6] headers_check fix patches 20090604 Jaswinder Singh Rajput
2009-06-04 12:27 ` [PATCH 1/6] headers_check fix: arm, hwcap.h Jaswinder Singh Rajput
2009-06-04 12:29 ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Jaswinder Singh Rajput
2009-06-04 12:31 ` [PATCH 3/6] headers_check fix: m68k, swab.h Jaswinder Singh Rajput
2009-06-04 12:35 ` [PATCH 4/6] headers_check fix: mips, ioctl.h Jaswinder Singh Rajput
2009-06-04 12:37 ` [PATCH 5/6] headers_check fix: mn10300, ptrace.h Jaswinder Singh Rajput
2009-06-04 12:38 ` [PATCH 6/6] headers_check fix: mn10300, setup.h Jaswinder Singh Rajput
2009-06-04 12:46 ` [PATCH 4/6] headers_check fix: mips, ioctl.h Ralf Baechle
2009-06-04 20:09 ` Sam Ravnborg
2009-06-05 9:34 ` Arnd Bergmann
2009-06-05 12:04 ` Ralf Baechle
2009-06-04 20:22 ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Sam Ravnborg
2009-06-08 16:33 ` Luck, Tony
2009-06-08 17:48 ` [PATCH] ia64: unexport fpswa.h Sam Ravnborg
2009-06-05 9:26 ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Arnd Bergmann
2009-06-04 12:53 ` [PATCH 1/6] headers_check fix: arm, hwcap.h Russell King
2009-06-04 15:45 ` Jaswinder Singh Rajput
2009-06-04 20:16 ` Sam Ravnborg
2009-06-05 20:10 ` Russell King
2009-06-05 20:17 ` Robert P. J. Day
2009-06-05 20:48 ` Russell King
2009-06-05 21:24 ` Sam Ravnborg
2009-06-06 8:50 ` Jaswinder Singh Rajput
2009-06-06 9:12 ` Russell King
2009-06-06 9:34 ` Jaswinder Singh Rajput
2009-06-04 20:12 ` [PATCH 0/6] headers_check fix patches 20090604 Sam Ravnborg
2009-06-05 2:00 ` Jaswinder Singh Rajput
2009-06-06 8:10 ` Jaswinder Singh Rajput
2009-06-06 8:43 ` Sam Ravnborg
2009-06-06 9:09 ` Jaswinder Singh Rajput
2009-06-06 12:54 ` [GIT PULL] headers_check fixes Jaswinder Singh Rajput
2009-06-06 13:02 ` Russell King
2009-06-06 13:34 ` Jaswinder Singh Rajput
2009-06-06 13:41 ` Russell King
2009-06-06 14:39 ` Jaswinder Singh Rajput
2009-06-06 21:47 ` Russell King
2009-06-06 21:51 ` Russell King [this message]
2009-06-06 22:12 ` Sam Ravnborg
2009-06-06 23:24 ` Russell King
2009-06-07 7:09 ` Sam Ravnborg
2009-06-07 7:16 ` Sam Ravnborg
2009-06-07 10:15 ` Jaswinder Singh Rajput
-- strict thread matches above, loose matches on Subject: below --
2009-06-01 7:20 Jaswinder Singh Rajput
2009-01-26 18:01 [git pull] " Ingo Molnar
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=20090606215107.GA23695@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=akpm@linux-foundation.org \
--cc=catalin.marinas@arm.com \
--cc=dhowells@redhat.com \
--cc=geert@linux-m68k.org \
--cc=gerg@snapgear.com \
--cc=jaswinder@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@araneidae.co.uk \
--cc=mingo@elte.hu \
--cc=ralf@linux-mips.org \
--cc=sam@ravnborg.org \
--cc=tony.luck@intel.com \
--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