From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 00/24] Unify integer type definitions, and add fixed type constructor macros Date: Fri, 25 Apr 2008 10:15:31 +0200 Message-ID: <200804251015.32157.arnd@arndb.de> References: <1209078352-7593-1-git-send-email-hpa@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1209078352-7593-1-git-send-email-hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org> Content-Disposition: inline Sender: linux-arch-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: To: "H. Peter Anvin" Cc: Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , Linux Arch Mailing List On Friday 25 April 2008, H. Peter Anvin wrote: > This patchset unifies the integer definitions across all the > 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.) I started hacking on a similar patch just yesterday, but with a slightly different goal. My intention was to move the headers in a direction where a new architecture (microblaze being the next one) would no longer have to care about ABI defining headers at all, but just use the defaults from a single #include line. I could deal with x86 by leaving the current asm-x86/types.h in place, and change all the others so they can use the common one. The only difference here would be umode_t and dma_addr_t, which are irregularly defined on a few architectures, but we can assume reasonable defaults, as in asm-powerpc/types.h: #ifdef __powerpc64__ #define __umode_t unsigned int #include #else #include #endif asm-generic/types_64.h: #ifdef __umode_t typedef __umode_t umode_t; #else typedef unsigned short umode_t; #endif Arnd <>< From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moutng.kundenserver.de ([212.227.126.174]:60607 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751688AbYDYIPj (ORCPT ); Fri, 25 Apr 2008 04:15:39 -0400 From: Arnd Bergmann Subject: Re: [PATCH 00/24] Unify integer type definitions, and add fixed type constructor macros Date: Fri, 25 Apr 2008 10:15:31 +0200 References: <1209078352-7593-1-git-send-email-hpa@zytor.com> In-Reply-To: <1209078352-7593-1-git-send-email-hpa@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200804251015.32157.arnd@arndb.de> Sender: linux-arch-owner@vger.kernel.org List-ID: To: "H. Peter Anvin" Cc: Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , Linux Arch Mailing List Message-ID: <20080425081531._9E9XVERv9GhVKD6_2gZK1B39KN2B6tvALa7T_vezvE@z> On Friday 25 April 2008, H. Peter Anvin wrote: > This patchset unifies the integer definitions across all the > 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.) I started hacking on a similar patch just yesterday, but with a slightly different goal. My intention was to move the headers in a direction where a new architecture (microblaze being the next one) would no longer have to care about ABI defining headers at all, but just use the defaults from a single #include line. I could deal with x86 by leaving the current asm-x86/types.h in place, and change all the others so they can use the common one. The only difference here would be umode_t and dma_addr_t, which are irregularly defined on a few architectures, but we can assume reasonable defaults, as in asm-powerpc/types.h: #ifdef __powerpc64__ #define __umode_t unsigned int #include #else #include #endif asm-generic/types_64.h: #ifdef __umode_t typedef __umode_t umode_t; #else typedef unsigned short umode_t; #endif Arnd <><