From patchwork Tue Nov 29 08:35:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/3] rtc: Allow including mc146818 rtc header from userspace Date: Mon, 28 Nov 2011 22:35:33 -0000 From: Sasha Levin X-Patchwork-Id: 128233 Message-Id: <1322555735-32163-1-git-send-email-levinsasha928@gmail.com> To: penberg@kernel.org Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, Sasha Levin , Alessandro Zummo , rtc-linux@googlegroups.com This patch moves kernel specific header includes into the kernel #ifdef-ed section, thus allowing userspace to include this header directly. Cc: Alessandro Zummo Cc: rtc-linux@googlegroups.com Signed-off-by: Sasha Levin Acked-by: Pekka Enberg --- include/linux/mc146818rtc.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/include/linux/mc146818rtc.h b/include/linux/mc146818rtc.h index 2f4e957..49d93ff 100644 --- a/include/linux/mc146818rtc.h +++ b/include/linux/mc146818rtc.h @@ -11,11 +11,10 @@ #ifndef _MC146818RTC_H #define _MC146818RTC_H +#ifdef __KERNEL__ #include #include /* get the user-level API */ #include /* register access macros */ - -#ifdef __KERNEL__ #include /* spinlock_t */ extern spinlock_t rtc_lock; /* serialize CMOS RAM access */