public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/24] Unify integer type definitions, and add fixed type constructor macros
@ 2008-04-24 23:05 H. Peter Anvin
       [not found] ` <1209078352-7593-2-git-send-email-hpa@zytor.com>
                   ` (2 more replies)
  0 siblings, 3 replies; 70+ messages in thread
From: H. Peter Anvin @ 2008-04-24 23:05 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton
  Cc: Linux Kernel Mailing List, Linux Arch Mailing List,
	H. Peter Anvin


This patchset unifies the integer definitions across all the
<asm-*/types.h> files, replacing them with two asm-generic files, one
for the LL64 model (all 32-bit architectures plus x86-64) and one for
the L64 model (all other 64-bit architectures.)

The latter patches introduce constructor macros, similar to the C99
<inttypes.h> macros, e.g. U64_C(0x123456789abcdef), which produces the
same result as (u64)0x123456789abcdef but (a) is usable in the
preprocessor, (b) doesn't generate warnings, (c) is transparently
ignored for assembly.

The final patch uses said constructor macros to remove nuisance
warnings from kernel/time.c.

This patchset is also pullable as a git tree from:

     git://git.kernel.org/pub/scm/linux/kernel/git/hpa/linux-2.6-inttypes.git

 include/asm-alpha/types.h      |   36 +---------------
 include/asm-arm/types.h        |   33 +-------------
 include/asm-avr32/types.h      |   32 +------------
 include/asm-blackfin/types.h   |   34 +-------------
 include/asm-cris/types.h       |   33 +-------------
 include/asm-frv/types.h        |   34 +-------------
 include/asm-generic/Kbuild     |    2 +
 include/asm-generic/int-l64.h  |   71 +++++++++++++++++++++++++++++
 include/asm-generic/int-ll64.h |   76 ++++++++++++++++++++++++++++++++
 include/asm-h8300/types.h      |   33 +-------------
 include/asm-ia64/types.h       |   31 +------------
 include/asm-m32r/types.h       |   32 +------------
 include/asm-m68k/types.h       |   32 +-------------
 include/asm-mips/types.h       |   56 +++---------------------
 include/asm-mn10300/types.h    |   33 +-------------
 include/asm-parisc/types.h     |   33 +-------------
 include/asm-powerpc/types.h    |   48 +++-----------------
 include/asm-s390/types.h       |   48 +++-----------------
 include/asm-sh/types.h         |   34 +-------------
 include/asm-sparc/types.h      |   30 +------------
 include/asm-sparc64/types.h    |   30 +------------
 include/asm-v850/types.h       |   32 +-------------
 include/asm-x86/types.h        |   38 +---------------
 include/asm-xtensa/types.h     |   33 +-------------
 kernel/time.c                  |    8 ++--
 25 files changed, 201 insertions(+), 701 deletions(-)

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

end of thread, other threads:[~2008-04-28 13:55 UTC | newest]

Thread overview: 70+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24 23:05 [PATCH 00/24] Unify integer type definitions, and add fixed type constructor macros H. Peter Anvin
     [not found] ` <1209078352-7593-2-git-send-email-hpa@zytor.com>
2008-04-24 23:05   ` [PATCH 01/24] types: create <asm-generic/int-*.h> H. Peter Anvin
2008-04-24 23:05     ` [PATCH 02/24] alpha: types: use <asm-generic/int-*.h> for the alpha architecture H. Peter Anvin
2008-04-24 23:05       ` H. Peter Anvin
2008-04-24 23:05         ` [PATCH 03/24] arm: types: use <asm-generic/int-*.h> for the arm architecture H. Peter Anvin
2008-04-24 23:05           ` H. Peter Anvin
2008-04-24 23:05             ` [PATCH 04/24] avr32: types: use <asm-generic/int-*.h> for the avr32 architecture H. Peter Anvin
2008-04-24 23:05               ` H. Peter Anvin
2008-04-24 23:05                 ` [PATCH 05/24] blackfin: types: use <asm-generic/int-*.h> for the blackfin architecture H. Peter Anvin
2008-04-24 23:05                   ` H. Peter Anvin
2008-04-24 23:05                     ` [PATCH 06/24] cris: types: use <asm-generic/int-*.h> for the cris architecture H. Peter Anvin
2008-04-24 23:05                       ` H. Peter Anvin
2008-04-24 23:05                         ` [PATCH 07/24] frv: types: use <asm-generic/int-*.h> for the frv architecture H. Peter Anvin
2008-04-24 23:05                           ` H. Peter Anvin
2008-04-24 23:05                             ` [PATCH 08/24] h8300: types: use <asm-generic/int-*.h> for the h8300 architecture H. Peter Anvin
2008-04-24 23:05                               ` H. Peter Anvin
2008-04-24 23:05                                 ` [PATCH 09/24] ia64: types: use <asm-generic/int-*.h> for the ia64 architecture H. Peter Anvin
2008-04-24 23:05                                   ` H. Peter Anvin
2008-04-24 23:05                                     ` [PATCH 10/24] m32r: types: use <asm-generic/int-*.h> for the m32r architecture H. Peter Anvin
2008-04-24 23:05                                       ` H. Peter Anvin
2008-04-24 23:05                                         ` [PATCH 11/24] m68k: types: use <asm-generic/int-*.h> for the m68k architecture H. Peter Anvin
2008-04-24 23:05                                           ` H. Peter Anvin
2008-04-24 23:05                                             ` [PATCH 12/24] mips: types: use <asm-generic/int-*.h> for the mips architecture H. Peter Anvin
2008-04-24 23:05                                               ` H. Peter Anvin
2008-04-24 23:05                                                 ` [PATCH 13/24] mn10300: types: use <asm-generic/int-*.h> for the mn10300 architecture H. Peter Anvin
2008-04-24 23:05                                                   ` H. Peter Anvin
2008-04-24 23:05                                                     ` [PATCH 14/24] parisc: types: use <asm-generic/int-*.h> for the parisc architecture H. Peter Anvin
2008-04-24 23:05                                                       ` H. Peter Anvin
2008-04-24 23:05                                                         ` [PATCH 15/24] powerpc: types: use <asm-generic/int-*.h> for the powerpc architecture H. Peter Anvin
2008-04-24 23:05                                                           ` H. Peter Anvin
2008-04-24 23:05                                                             ` [PATCH 16/24] s390: types: use <asm-generic/int-*.h> for the s390 architecture H. Peter Anvin
2008-04-24 23:05                                                               ` H. Peter Anvin
2008-04-24 23:05                                                                 ` [PATCH 17/24] sh: types: use <asm-generic/int-*.h> for the sh architecture H. Peter Anvin
2008-04-24 23:05                                                                   ` H. Peter Anvin
2008-04-24 23:05                                                                     ` [PATCH 18/24] sparc: types: use <asm-generic/int-*.h> for the sparc architecture H. Peter Anvin
2008-04-24 23:05                                                                       ` H. Peter Anvin
2008-04-24 23:05                                                                         ` [PATCH 19/24] sparc64: types: use <asm-generic/int-*.h> for the sparc64 architecture H. Peter Anvin
2008-04-24 23:05                                                                           ` H. Peter Anvin
2008-04-24 23:05                                                                             ` [PATCH 20/24] v850: types: use <asm-generic/int-*.h> for the v850 architecture H. Peter Anvin
2008-04-24 23:05                                                                               ` [PATCH 21/24] x86: types: use <asm-generic/int-*.h> for the x86 architecture H. Peter Anvin
2008-04-24 23:05                                                                                 ` H. Peter Anvin
2008-04-24 23:05                                                                                   ` [PATCH 22/24] xtensa: types: use <asm-generic/int-*.h> for the xtensa architecture H. Peter Anvin
2008-04-24 23:05                                                                                     ` H. Peter Anvin
2008-04-24 23:05                                                                                       ` [PATCH 23/24] types: add C99-style constructors to <asm-generic/int-*.h> H. Peter Anvin
2008-04-24 23:05                                                                                         ` [PATCH 24/24] Use U64_C() instead of casts in kernel/time.c H. Peter Anvin
2008-04-25  0:44                                                                           ` [PATCH 19/24] sparc64: types: use <asm-generic/int-*.h> for the sparc64 architecture David Miller
2008-04-25  0:44                                                                       ` [PATCH 18/24] sparc: types: use <asm-generic/int-*.h> for the sparc architecture David Miller
2008-04-25  1:37                                   ` [PATCH 09/24] ia64: types: use <asm-generic/int-*.h> for the ia64 architecture Luck, Tony
2008-04-25  3:42                                     ` H. Peter Anvin
2008-04-25  4:10                                     ` [PATCH 24/24] Use U64_C() instead of casts in kernel/time.c H. Peter Anvin
2008-04-25  4:44                                       ` Luck, Tony
2008-04-25  0:14           ` [PATCH 03/24] arm: types: use <asm-generic/int-*.h> for the arm architecture Lennert Buytenhek
2008-04-25 18:27     ` [PATCH 01/24] types: create <asm-generic/int-*.h> Jan Engelhardt
2008-04-25 18:36       ` Linus Torvalds
2008-04-25 18:52         ` Matthew Wilcox
2008-04-25 19:03           ` Linus Torvalds
2008-04-25 19:10           ` H. Peter Anvin
2008-04-25 19:28             ` Matthew Wilcox
2008-04-25 19:38               ` H. Peter Anvin
2008-04-25 19:43                 ` Jan Engelhardt
2008-04-28 13:55                   ` David Howells
2008-04-25 19:45                 ` Linus Torvalds
2008-04-25 19:48                   ` H. Peter Anvin
2008-04-25 19:49                   ` Harvey Harrison
2008-04-25 20:30       ` David Miller
2008-04-25  0:15   ` Lennert Buytenhek
2008-04-25  7:17 ` [PATCH 00/24] Unify integer type definitions, and add fixed type constructor macros Geert Uytterhoeven
2008-04-25  7:49   ` Andreas Schwab
2008-04-25  8:15 ` Arnd Bergmann
2008-04-27 17:44   ` H. Peter Anvin

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