Skip to content

Unify integer type definitions, and add fixed type constructor macros

H. Peter Anvin linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24types: create <asm-generic/int-*.h>include/asm-generic/Kbuild include/asm-generic/int-l64.h include/asm-generic/int-ll64.h+109 -013 replies
2/24alpha: types: use <asm-generic/int-*.h> for the alpha architectureinclude/asm-alpha/types.h+1 -350 replies
2/24alpha: types: use <asm-generic/int-*.h> for the alpha architectureinclude/asm-alpha/types.h+1 -350 replies
3/24arm: types: use <asm-generic/int-*.h> for the arm architectureinclude/asm-arm/types.h+2 -311 reply
3/24arm: types: use <asm-generic/int-*.h> for the arm architectureinclude/asm-arm/types.h+2 -310 replies
4/24avr32: types: use <asm-generic/int-*.h> for the avr32 architectureinclude/asm-avr32/types.h+2 -300 replies
4/24avr32: types: use <asm-generic/int-*.h> for the avr32 architectureinclude/asm-avr32/types.h+2 -300 replies
5/24blackfin: types: use <asm-generic/int-*.h> for the blackfin architectureinclude/asm-blackfin/types.h+2 -320 replies
5/24blackfin: types: use <asm-generic/int-*.h> for the blackfin architectureinclude/asm-blackfin/types.h+2 -320 replies
6/24cris: types: use <asm-generic/int-*.h> for the cris architectureinclude/asm-cris/types.h+2 -310 replies
6/24cris: types: use <asm-generic/int-*.h> for the cris architectureinclude/asm-cris/types.h+2 -310 replies
7/24frv: types: use <asm-generic/int-*.h> for the frv architectureinclude/asm-frv/types.h+2 -320 replies
7/24frv: types: use <asm-generic/int-*.h> for the frv architectureinclude/asm-frv/types.h+2 -320 replies
8/24h8300: types: use <asm-generic/int-*.h> for the h8300 architectureinclude/asm-h8300/types.h+2 -310 replies
8/24h8300: types: use <asm-generic/int-*.h> for the h8300 architectureinclude/asm-h8300/types.h+2 -310 replies
9/24ia64: types: use <asm-generic/int-*.h> for the ia64 architectureinclude/asm-ia64/types.h+2 -292 replies
9/24ia64: types: use <asm-generic/int-*.h> for the ia64 architectureinclude/asm-ia64/types.h+2 -290 replies
10/24m32r: types: use <asm-generic/int-*.h> for the m32r architectureinclude/asm-m32r/types.h+2 -300 replies
10/24m32r: types: use <asm-generic/int-*.h> for the m32r architectureinclude/asm-m32r/types.h+2 -300 replies
11/24m68k: types: use <asm-generic/int-*.h> for the m68k architectureinclude/asm-m68k/types.h+1 -310 replies
11/24m68k: types: use <asm-generic/int-*.h> for the m68k architectureinclude/asm-m68k/types.h+1 -310 replies
12/24mips: types: use <asm-generic/int-*.h> for the mips architectureinclude/asm-mips/types.h+6 -500 replies
12/24mips: types: use <asm-generic/int-*.h> for the mips architectureinclude/asm-mips/types.h+6 -500 replies
13/24mn10300: types: use <asm-generic/int-*.h> for the mn10300 architectureinclude/asm-mn10300/types.h+2 -310 replies
13/24mn10300: types: use <asm-generic/int-*.h> for the mn10300 architectureinclude/asm-mn10300/types.h+2 -310 replies
14/24parisc: types: use <asm-generic/int-*.h> for the parisc architectureinclude/asm-parisc/types.h+2 -310 replies
14/24parisc: types: use <asm-generic/int-*.h> for the parisc architectureinclude/asm-parisc/types.h+2 -310 replies
15/24powerpc: types: use <asm-generic/int-*.h> for the powerpc architectureinclude/asm-powerpc/types.h+6 -420 replies
15/24powerpc: types: use <asm-generic/int-*.h> for the powerpc architectureinclude/asm-powerpc/types.h+6 -420 replies
16/24s390: types: use <asm-generic/int-*.h> for the s390 architectureinclude/asm-s390/types.h+6 -420 replies
16/24s390: types: use <asm-generic/int-*.h> for the s390 architectureinclude/asm-s390/types.h+6 -420 replies
17/24sh: types: use <asm-generic/int-*.h> for the sh architectureinclude/asm-sh/types.h+2 -320 replies
17/24sh: types: use <asm-generic/int-*.h> for the sh architectureinclude/asm-sh/types.h+2 -320 replies
18/24sparc: types: use <asm-generic/int-*.h> for the sparc architectureinclude/asm-sparc/types.h+1 -291 reply
18/24sparc: types: use <asm-generic/int-*.h> for the sparc architectureinclude/asm-sparc/types.h+1 -290 replies
19/24sparc64: types: use <asm-generic/int-*.h> for the sparc64 architectureinclude/asm-sparc64/types.h+1 -291 reply
19/24sparc64: types: use <asm-generic/int-*.h> for the sparc64 architectureinclude/asm-sparc64/types.h+1 -290 replies
20/24v850: types: use <asm-generic/int-*.h> for the v850 architectureinclude/asm-v850/types.h+1 -310 replies
21/24x86: types: use <asm-generic/int-*.h> for the x86 architectureinclude/asm-x86/types.h+2 -360 replies
21/24x86: types: use <asm-generic/int-*.h> for the x86 architectureinclude/asm-x86/types.h+2 -360 replies
22/24xtensa: types: use <asm-generic/int-*.h> for the xtensa architectureinclude/asm-xtensa/types.h+1 -320 replies
22/24xtensa: types: use <asm-generic/int-*.h> for the xtensa architectureinclude/asm-xtensa/types.h+1 -320 replies
23/24types: add C99-style constructors to <asm-generic/int-*.h>include/asm-generic/int-l64.h include/asm-generic/int-ll64.h+40 -00 replies
24/24Use U64_C() instead of casts in kernel/time.ckernel/time.c+4 -40 replies
24/24Use U64_C() instead of casts in kernel/time.ckernel/time.c kernel/timeconst.pl+20 -91 reply

Reviews trailers per patch

6 of 45 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLennert BuytenhekDavid S. MillerTony Luck
SeriesA-b
1/24
2/24
2/24
3/24A-b
3/24A-b
4/24
4/24
5/24
5/24
6/24
6/24
7/24
7/24
8/24
8/24
9/24
9/24
10/24
10/24
11/24
11/24
12/24
12/24
13/24
13/24
14/24
14/24
15/24
15/24
16/24
16/24
17/24
17/24
18/24
18/24
19/24A-b
19/24A-b
20/24
21/24
21/24
22/24
22/24
23/24
24/24A-b
24/24A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/24] Unify integer type definitions, and add fixed type constructor macros

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(-)