Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Fix <linux/kd.h> usage in userspace

For reasons unclear to me, glibc's <sys/kd.h> deliberately defeats the
attempt we make in <linux/kd.h> to include <linux/types.h>

For now, change the one instance of __u32 to 'unsigned int' instead
because it's breaking userspace. We should probably also remove our
inclusion of <linux/types.h>, since we don't use it -- but that's not a
change to make in -rc.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

David Woodhouse and committed by
Linus Torvalds
79288f5e fd79b771

+1 -1
+1 -1
include/linux/kd.h
··· 126 126 #define KDSKBDIACR 0x4B4B /* write kernel accent table */ 127 127 128 128 struct kbdiacruc { 129 - __u32 diacr, base, result; 129 + unsigned int diacr, base, result; 130 130 }; 131 131 struct kbdiacrsuc { 132 132 unsigned int kb_cnt; /* number of entries in following array */