]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: RS485 ioctl structure uses __u32 include linux/types.h
authorAndy Whitcroft <apw@canonical.com>
Fri, 2 Jan 2009 13:49:04 +0000 (13:49 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Feb 2009 17:50:27 +0000 (09:50 -0800)
commitbe147dc023d5023c0b979b18a762d6663f3d9a38
treee3a30b19ccfea2951bcac3c8adf9ca9d2894f5bd
parentdec125f42f7dcfa7d327d467485f4ea8ef8ab0df
serial: RS485 ioctl structure uses __u32 include linux/types.h

commit 60c20fb8c00a2b23308ae4517f145383bc66d291 upstream.

In the commit below a new struct serial_rs485 was introduced for a new
ioctl:

    commit c26c56c0f40e200e61d1390629c806f6adaffbcc
    Author: Alan Cox <alan@redhat.com>
    Date:   Mon Oct 13 10:37:48 2008 +0100

tty: Cris has a nice RS485 ioctl so we should steal it

This structure uses the __u32 types for some of its members, which leads
to the following compile error:

    $ cc -I.../include -c X.c
    In file included from X.c:2: .../include/linux/serial.h:185:
error: expected specifier-qualifier-list before ‘__u32’
    $

It seems that these types are appropriate for this structure as it is
to be exposed to userspace.  These types are available via linux/types.h
so move the include of that outside the __KERNEL__ section.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matthew Burgess <matthew@linuxfromscratch.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/serial.h