Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/2.6.28: 00_all_kbuild-auto-convert-size-types-in-userspace-headers.patch
Date: Mon, 29 Dec 2008 12:38:57
Message-Id: E1LHHOZ-0005Kj-RB@stork.gentoo.org
1 vapier 08/12/29 12:38:55
2
3 Added:
4 00_all_kbuild-auto-convert-size-types-in-userspace-headers.patch
5 Log:
6 autoconvert integer types to __[us]XX
7
8 Revision Changes Path
9 1.1 src/patchsets/gentoo-headers/2.6.28/00_all_kbuild-auto-convert-size-types-in-userspace-headers.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.28/00_all_kbuild-auto-convert-size-types-in-userspace-headers.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.28/00_all_kbuild-auto-convert-size-types-in-userspace-headers.patch?rev=1.1&content-type=text/plain
13
14 Index: 00_all_kbuild-auto-convert-size-types-in-userspace-headers.patch
15 ===================================================================
16 From ea0846459ffa765e23f0282f65282270decd1532 Mon Sep 17 00:00:00 2001
17 From: Mike Frysinger <vapier@g.o>
18 Date: Mon, 29 Dec 2008 06:07:47 -0500
19 Subject: [PATCH] kbuild: auto-convert size types in userspace headers
20
21 Rather than constantly fixing up size type breakage in userspace headers,
22 auto convert the types u_intXX_t, uintXX_t, intXX_t, uXX, and sXX to the
23 appropriate __uXX or __sXX type.
24
25 Signed-off-by: Mike Frysinger <vapier@g.o>
26 ---
27 scripts/headers_install.pl | 3 +++
28 1 files changed, 3 insertions(+), 0 deletions(-)
29
30 diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl
31 index c6ae405..697f02d 100644
32 --- a/scripts/headers_install.pl
33 +++ b/scripts/headers_install.pl
34 @@ -39,6 +39,9 @@ foreach my $file (@files) {
35 $line =~ s/(^|\s)(inline)\b/$1__$2__/g;
36 $line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g;
37 $line =~ s/(^|\s|[(])(volatile)\b(\s|[(]|$)/$1__$2__$3/g;
38 + $line =~ s/\b([us](8|16|32|64))\b/__$1/g;
39 + $line =~ s/\b(u_?int(8|16|32|64)_t)\b/__u$2/g;
40 + $line =~ s/\b(int(8|16|32|64)_t)\b/__s$2/g;
41 printf OUTFILE "%s", $line;
42 }
43 close OUTFILE;
44 --
45 1.6.0.6