Bug#415095: linux-kernel-headers: please revert addition of typedef for __kernel_dev_t in linux/types.h
Package: linux-kernel-headers
Version: 2.6.18-7
Severity: normal
Tags: patch
Way back in the days of bug#220991, the following two lines of code were
added to /usr/include/linux/types.h:
/* For util-linux / cryptoloop. How lame. */
typedef __u32 __kernel_dev_t;
These are no longer needed -- both util-linux and cryptsetup build from
source just fine if I remove them. What's more, having this typedef in
types.h causes an FTBS of uclibc for almost all architectures (arm has
been hacked to make it work) -- see bug#269721, which could be closed
if this code was removed. In fact, it was in trying to build uclibc for
ia64 and i386 that I stumbled across this problem.
Here's the patch:
--- types.h.orig 2007-03-15 18:46:00.000000000 -0600
+++ types.h 2007-03-15 18:46:22.000000000 -0600
@@ -7,8 +7,6 @@
/* For other kernel headers. */
# include <linux/posix_types.h>
# include <asm/types.h>
-/* For util-linux / cryptoloop. How lame. */
-typedef __u32 __kernel_dev_t;
#else
#ifdef __KERNEL__
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
-- no debconf information
Reply to: