[PATCH] Include serial_reg.h with userspace headers

From: Herton Ronaldo Krzesinski
Date: Sat Jul 14 2007 - 23:03:20 EST


Hi,

As reported by Gustavo de Nardin <gustavodn@xxxxxxxxxxxxxxx>, while trying to
compile xosview (http://xosview.sourceforge.net/) with upstream kernel
headers being used you get the following errors:
serialmeter.cc:48:30: error: linux/serial_reg.h: No such file or directory
serialmeter.cc: In member function 'virtual void
SerialMeter::checkResources()':
serialmeter.cc:71: error: 'UART_LSR' was not declared in this scope
serialmeter.cc:71: error: 'UART_MSR' was not declared in this scope
...

I don't know if it's right to provide serial_reg.h with userspace headers, may
be serial_reg.h isn't included for some reason. But if it's ok, the following
patch adds serial_reg.h to be installed with user space kernel headers:

=================================================

Add serial_reg.h to userspace kernel headers

Include serial_reg.h in kernel headers for user space, it is at least
needed for one program, xosview.

Signed-off-by: Herton Ronaldo Krzesinski <herton@xxxxxxxxxxxxxxx>

diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 127d2d1..eba0ccb 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -137,6 +137,7 @@ header-y += radeonfb.h
header-y += raw.h
header-y += resource.h
header-y += rose.h
+header-y += serial_reg.h
header-y += smbno.h
header-y += snmp.h
header-y += sockios.h

--
[]'s
Herton.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/