* [patch] 2.6: mc146818rtc.h
@ 2004-11-20 12:08 Michael Obster
0 siblings, 0 replies; only message in thread
From: Michael Obster @ 2004-11-20 12:08 UTC (permalink / raw)
To: LKML
[-- Attachment #1: Type: text/plain, Size: 156 bytes --]
Hi,
this patch prevents user-space including spinlock.h which breaks the build.
Cheers,
Michael Obster
---
This will rock you. - http://www.rocklinux.org
[-- Attachment #2: mc146818rtc-spinlock.patch --]
[-- Type: text/plain, Size: 584 bytes --]
--- ./include/linux/mc146818rtc.h.orig 2004-11-19 14:30:45.047279312 +0100
+++ ./include/linux/mc146818rtc.h 2004-11-19 14:32:04.137255808 +0100
@@ -13,10 +13,12 @@
#include <asm/io.h>
#include <linux/rtc.h> /* get the user-level API */
-#include <linux/spinlock.h> /* spinlock_t */
#include <asm/mc146818rtc.h> /* register access macros */
+#ifdef __KERNEL__
+#include <linux/spinlock.h> /* spinlock_t */
extern spinlock_t rtc_lock; /* serialize CMOS RAM access */
+#endif
/**********************************************************************
* register summary
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-20 12:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-20 12:08 [patch] 2.6: mc146818rtc.h Michael Obster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox