public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] headers_install.pl: autoconvert asm/inline/volatile to __xxx__
@ 2008-12-27  7:54 Mike Frysinger
  2008-12-27  8:23 ` [PATCH v2] " Mike Frysinger
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Mike Frysinger @ 2008-12-27  7:54 UTC (permalink / raw)
  To: Sam Ravnborg, linux-kernel

Headers in userspace should be using the __xxx__ form of the asm, inline,
and volatile keywords.  Since people like to revert these things without
realizing what's going on, have the headers install step autoconvert these
keywords.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 scripts/headers_install.pl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl
index 7d2b414..b450aec 100644
--- a/scripts/headers_install.pl
+++ b/scripts/headers_install.pl
@@ -36,6 +36,7 @@ foreach my $file (@files) {
 		$line =~ s/\s__attribute_const__\s/ /g;
 		$line =~ s/\s__attribute_const__$//g;
 		$line =~ s/^#include <linux\/compiler.h>//;
+		$line =~ s/(^|\s)(asm|inline|volatile)(\s|[(]|$)\b/$1__$2__$3/;
 		printf OUTFILE "%s", $line;
 	}
 	close OUTFILE;
-- 
1.6.0.6


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-01-03  2:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-27  7:54 [PATCH] headers_install.pl: autoconvert asm/inline/volatile to __xxx__ Mike Frysinger
2008-12-27  8:23 ` [PATCH v2] " Mike Frysinger
2008-12-27 18:56   ` Sam Ravnborg
2008-12-29 10:33 ` [PATCH] " H. Peter Anvin
2008-12-29 10:54   ` Mike Frysinger
2008-12-31 17:15 ` Arnd Bergmann
2008-12-31 22:34   ` Mike Frysinger
2009-01-02 23:20     ` Arnd Bergmann
2009-01-03  1:24       ` Mike Frysinger
2009-01-03  2:38         ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox