From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: [PATCH 1/3] rtc: Allow including mc146818 rtc header from userspace Date: Tue, 29 Nov 2011 10:35:33 +0200 Message-ID: <1322555735-32163-1-git-send-email-levinsasha928@gmail.com> Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, Sasha Levin , Alessandro Zummo , rtc-linux@googlegroups.com To: penberg@kernel.org Return-path: Received: from mail-ey0-f174.google.com ([209.85.215.174]:55419 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753299Ab1K2If5 (ORCPT ); Tue, 29 Nov 2011 03:35:57 -0500 Received: by eaak14 with SMTP id k14so2746785eaa.19 for ; Tue, 29 Nov 2011 00:35:56 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: 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 --- 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 */ -- 1.7.8.rc3