Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262881AbUKTMJf (ORCPT ); Sat, 20 Nov 2004 07:09:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262913AbUKTMJd (ORCPT ); Sat, 20 Nov 2004 07:09:33 -0500 Received: from mail.obster.org ([82.139.198.99]:13975 "EHLO hofmuehl.obster.org") by vger.kernel.org with ESMTP id S262881AbUKTMIS (ORCPT ); Sat, 20 Nov 2004 07:08:18 -0500 Message-ID: <419F33AE.2050009@obster.org> Date: Sat, 20 Nov 2004 13:08:14 +0100 From: Michael Obster User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.1) Gecko/20041014 X-Accept-Language: en-us, en MIME-Version: 1.0 To: LKML Subject: [patch] 2.6: mc146818rtc.h X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------050702020703040205030906" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1403 Lines: 44 This is a multi-part message in MIME format. --------------050702020703040205030906 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, this patch prevents user-space including spinlock.h which breaks the build. Cheers, Michael Obster --- This will rock you. - http://www.rocklinux.org --------------050702020703040205030906 Content-Type: text/plain; name="mc146818rtc-spinlock.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mc146818rtc-spinlock.patch" --- ./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 #include /* get the user-level API */ -#include /* spinlock_t */ #include /* register access macros */ +#ifdef __KERNEL__ +#include /* spinlock_t */ extern spinlock_t rtc_lock; /* serialize CMOS RAM access */ +#endif /********************************************************************** * register summary --------------050702020703040205030906-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/