Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79288f5e authored by David Woodhouse's avatar David Woodhouse Committed by Linus Torvalds
Browse files

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: default avatarDavid Woodhouse <dwmw2@infradead.org>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fd79b771
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ struct kbdiacrs {
#define KDSKBDIACR      0x4B4B  /* write kernel accent table */

struct kbdiacruc {
        __u32 diacr, base, result;
	unsigned int diacr, base, result;
};
struct kbdiacrsuc {
        unsigned int kb_cnt;    /* number of entries in following array */