* [PATCH] Include serial_reg.h with userspace headers
@ 2007-07-15 3:02 Herton Ronaldo Krzesinski
2007-07-19 1:08 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Herton Ronaldo Krzesinski @ 2007-07-15 3:02 UTC (permalink / raw)
To: LKML; +Cc: Gustavo de Nardin
Hi,
As reported by Gustavo de Nardin <gustavodn@mandriva.com.br>, 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@mandriva.com.br>
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Include serial_reg.h with userspace headers
2007-07-15 3:02 [PATCH] Include serial_reg.h with userspace headers Herton Ronaldo Krzesinski
@ 2007-07-19 1:08 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2007-07-19 1:08 UTC (permalink / raw)
To: Herton Ronaldo Krzesinski; +Cc: LKML, Gustavo de Nardin
On Sun, 15 Jul 2007 00:02:39 -0300
Herton Ronaldo Krzesinski <herton@mandriva.com.br> wrote:
> As reported by Gustavo de Nardin <gustavodn@mandriva.com.br>, 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:
>
Well that file is just a pile of "#define name number"s so I guess it's
OK to export it to save someone some typing, and to avoid breaking existing
stuff more than we need to.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-19 1:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-15 3:02 [PATCH] Include serial_reg.h with userspace headers Herton Ronaldo Krzesinski
2007-07-19 1:08 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®