From 8b95678b6889196cf40190ee9b5ba0897fafa8f6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 29 Dec 2008 06:07:47 -0500 Subject: [PATCH] kbuild: auto-convert size types in userspace headers Rather than constantly fixing up size type breakage in userspace headers, auto convert the types u_intXX_t, uintXX_t, intXX_t, uXX, and sXX to the appropriate __uXX or __sXX type. Signed-off-by: Mike Frysinger --- scripts/headers_install.pl | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl index efb3be1..a5230ef 100644 --- a/scripts/headers_install.pl +++ b/scripts/headers_install.pl @@ -39,6 +39,9 @@ foreach my $file (@files) { $line =~ s/(^|\s)(inline)\b/$1__$2__/g; $line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g; $line =~ s/(^|\s|[(])(volatile)\b(\s|[(]|$)/$1__$2__$3/g; + $line =~ s/\b([us](8|16|32|64))\b/__$1/g; + $line =~ s/\b(u_?int(8|16|32|64)_t)\b/__u$2/g; + $line =~ s/\b(int(8|16|32|64)_t)\b/__s$2/g; printf {$out} "%s", $line; } close $out; -- 1.7.6