[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1328677745-20121-1-git-send-email-hpa@zytor.com>
Date: Tue, 7 Feb 2012 21:08:44 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: "H. Peter Anvin" <hpa@...or.com>, Arnd Bergmann <arnd@...db.de>
Subject: [PATCH 00/21] RFC: Make all arches use <asm-generic/posix_types.h>
[Cc: list trimmed to avoid vger filters]
This patchset changes all architectures that don't already use
<asm-generic/posix_types.h> to do so. The purpose this threefold:
1. There is a dramatic amount of code removal.
2. New types can now be added in one place rather than having to go
through most of the architectures.
3. Removal of a bunch of old cruft.
The first two patches in the series tweak <asm-generic/posix_types.h>
to be more generally useful: the __kernel_[ug]id32_t types should
logically default to unsigned int instead of being mirrors of
__kernel_[ug]id_t, and the __kernel_fsid_t type is made overridable.
Patches 3-20 are patches for individual architectures; I would greatly
appreciate it if architecture maintainers would review their
respective architectures and verify that the transformation is
correct. These patches also remove the per-architecture fd_set
macros.
Patch 21, finally, removes the asm-generic version of the fd_set
macros. These macros were once upon a time exported to user space,
but that is now historic. Nowadays, they are nothing more than a
re-implementation of the bitops that we already have in the kernel, so
this final patch just replaces those with the appropriate standard
bitops.
Total diffstat:
arch/alpha/include/asm/posix_types.h | 113 +--------------------------
arch/arm/include/asm/posix_types.h | 55 ++-----------
arch/avr32/include/asm/posix_types.h | 107 +++-----------------------
arch/cris/include/asm/posix_types.h | 50 +++----------
arch/frv/include/asm/posix_types.h | 53 +++----------
arch/h8300/include/asm/posix_types.h | 49 ++----------
arch/ia64/include/asm/posix_types.h | 121 +----------------------------
arch/m32r/include/asm/posix_types.h | 108 ++------------------------
arch/m68k/include/asm/posix_types.h | 53 +++----------
arch/mips/include/asm/posix_types.h | 117 ++--------------------------
arch/mn10300/include/asm/posix_types.h | 111 +++------------------------
arch/parisc/include/asm/posix_types.h | 119 ++--------------------------
arch/powerpc/include/asm/posix_types.h | 120 +++--------------------------
arch/s390/include/asm/posix_types.h | 70 +++--------------
arch/sh/include/asm/posix_types_32.h | 5 -
arch/sh/include/asm/posix_types_64.h | 4 -
arch/sparc/include/asm/posix_types.h | 133 ++++----------------------------
arch/x86/include/asm/posix_types_32.h | 75 ++----------------
arch/x86/include/asm/posix_types_64.h | 106 +------------------------
arch/xtensa/include/asm/posix_types.h | 97 ++---------------------
include/asm-generic/posix_types.h | 86 ++-------------------
include/linux/time.h | 23 ++++++
22 files changed, 190 insertions(+), 1585 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists