From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935512AbZLGR2c (ORCPT ); Mon, 7 Dec 2009 12:28:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S935458AbZLGR2b (ORCPT ); Mon, 7 Dec 2009 12:28:31 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:57105 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935436AbZLGR2b (ORCPT ); Mon, 7 Dec 2009 12:28:31 -0500 From: Arnd Bergmann To: Thomas Gleixner Subject: Re: [patch 02/23] locking: Split rwlock from spinlock headers Date: Mon, 7 Dec 2009 18:28:15 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31-14-generic; KDE/4.3.2; x86_64; ; ) Cc: LKML , Linus Torvalds , Andrew Morton , Ingo Molnar , Peter Zijlstra , "Linux-Arch" References: <20091206110944.492100233@linutronix.de> <20091206111957.370028725@linutronix.de> In-Reply-To: <20091206111957.370028725@linutronix.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200912071828.15280.arnd@arndb.de> X-Provags-ID: V01U2FsdGVkX18XarP/Oxfh7m5xK2FRey0zQ3iQnN2/Ymxpodv /7oAVM58eljIkmB32cvG1r5TvKg/ojMxaboSGtPYUWBvvydwla RCoyVUg+dydn9z+cCdIDQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 06 December 2009, Thomas Gleixner wrote: > + > +#ifndef __LINUX_SPINLOCK_H > +# error "please don't include this file directly" > +#endif > + Hmm, why not? I think it would be nice to have rwlock.h self-contained to the degree that users of rwlock_t but not spinlock_t only need to include the rwlock header and vice versa. Obviously, we'd have to clean up all the ~200 users of rwlock_t before we're able to remove rwlock.h from spinlock.h, but the other direction could be done easily. Arnd <><