From patchwork Tue Nov 29 08:35:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 128233 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ey0-f184.google.com (mail-ey0-f184.google.com [209.85.215.184]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id A3738B6F83 for ; Tue, 29 Nov 2011 19:36:02 +1100 (EST) Received: by eaaa14 with SMTP id a14sf1467399eaa.11 for ; Tue, 29 Nov 2011 00:35:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=YwyqIwc3Yy3jRkeiAXp6OaExEki75Kyz8GFAVqqCrtE=; b=BZFXc5lxjJqCiQOYaH7+iZLwX2SvpjwaMaIIIsbTgAHa/BtarrW6Kvqpt8n3nQsGlz H5kOT8+i8dAK+HpurUmG3V0y5roht8jYebUFXb9Mlrni20wbr9wdbNWhTUhWs3HNamR5 Mbv9oilkRUMX5KRd0y3b+ZSRXkv/pA3w9IQwA= Received: by 10.180.20.71 with SMTP id l7mr1924868wie.5.1322555757459; Tue, 29 Nov 2011 00:35:57 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.14.47.205 with SMTP id t53ls9431eeb.4.canary; Tue, 29 Nov 2011 00:35:56 -0800 (PST) Received: by 10.213.32.70 with SMTP id b6mr660731ebd.9.1322555756755; Tue, 29 Nov 2011 00:35:56 -0800 (PST) Received: by 10.213.32.70 with SMTP id b6mr660730ebd.9.1322555756726; Tue, 29 Nov 2011 00:35:56 -0800 (PST) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by gmr-mx.google.com with ESMTPS id n13si23764490eef.2.2011.11.29.00.35.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Nov 2011 00:35:56 -0800 (PST) Received-SPF: pass (google.com: domain of levinsasha928@gmail.com designates 209.85.215.172 as permitted sender) client-ip=209.85.215.172; Received: by mail-ey0-f172.google.com with SMTP id m6so2854110eab.3 for ; Tue, 29 Nov 2011 00:35:56 -0800 (PST) Received: by 10.227.60.14 with SMTP id n14mr4607514wbh.5.1322555756533; Tue, 29 Nov 2011 00:35:56 -0800 (PST) Received: from localhost.localdomain (safend2.bb.netvision.net.il. [212.143.23.59]) by mx.google.com with ESMTPS id v10sm15473421wiy.23.2011.11.29.00.35.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Nov 2011 00:35:55 -0800 (PST) From: Sasha Levin 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 Subject: [rtc-linux] [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> X-Mailer: git-send-email 1.7.8.rc3 X-Original-Sender: levinsasha928@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of levinsasha928@gmail.com designates 209.85.215.172 as permitted sender) smtp.mail=levinsasha928@gmail.com; dkim=pass (test mode) header.i=@gmail.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , 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 */