public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Obster <kernel@obster.org>
To: LKML <linux-kernel@vger.kernel.org>
Subject: [patch] 2.6: mc146818rtc.h
Date: Sat, 20 Nov 2004 13:08:14 +0100	[thread overview]
Message-ID: <419F33AE.2050009@obster.org> (raw)

[-- 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

                 reply	other threads:[~2004-11-20 12:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=419F33AE.2050009@obster.org \
    --to=kernel@obster.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox