From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH v9 5/6] MCS Lock: Order the header files in Kbuild of each architecture in alphabetical order Date: Wed, 22 Jan 2014 18:51:52 +0100 Message-ID: <20140122175152.GT31570@twins.programming.kicks-ass.net> References: <1390347376.3138.66.camel@schen9-DESK> <20140122130818.GP31570@twins.programming.kicks-ass.net> <1390412468.3138.69.camel@schen9-DESK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1390412468.3138.69.camel@schen9-DESK> Sender: owner-linux-mm@kvack.org To: Tim Chen Cc: Ingo Molnar , Andrew Morton , Thomas Gleixner , "Paul E.McKenney" , Will Deacon , linux-kernel@vger.kernel.org, linux-mm , linux-arch@vger.kernel.org, Linus Torvalds , Waiman Long , Andrea Arcangeli , Alex Shi , Andi Kleen , Michel Lespinasse , Davidlohr Bueso , Matthew R Wilcox , Dave Hansen , Rik van Riel , Peter Hurley , Raghavendra K T , George Spelvin , "H. Peter Anvin" , Arnd Bergmann , Aswin List-Id: linux-arch.vger.kernel.org On Wed, Jan 22, 2014 at 09:41:08AM -0800, Tim Chen wrote: > On Wed, 2014-01-22 at 14:08 +0100, Peter Zijlstra wrote: > > On Tue, Jan 21, 2014 at 03:36:16PM -0800, Tim Chen wrote: > > > From: Peter Zijlstra > > > > > > We perform a clean up of the Kbuid files in each architecture. > > > We order the files in each Kbuild in alphabetical order > > > by running the below script on each Kbuild file: > > > > > > gawk '/^generic-y/ { > > > i = 3; > > > do { > > > for (; i<=NF; i++) { > > > if ($i == "\\") { > > > getline; > > > i=1; > > > continue; > > > } > > > if ($i != "") > > > hdr[$i] = $i; > > > } > > > break; > > > } while (1); > > > next; > > > } > > > END { > > > n = asort(hdr); > > > for (i=1; i<=n; i++) > > > print "generic-y += " hdr[i]; > > > }' > > > > > > > I'll probably have to regenerate this patch once the merge window is > > done, but that's no biggie. > > > > sfr, you might want to keep this script handy and distribute to others > > who are lazy and don't want to sort by hand. > > > > I suppose running it requires a little something like: > > > > for i in arch/*/include/asm/Kbuild > > do > > cat $i | gawk .... > ${i}.sorted; > > mv ${i}.sorted $i; > > done > > Peter, if this patch and the next one that adds mcs_spinlock.h to > Kbuild looks okay, can you add your signed-off? Thanks. Script did that when I queued the lot :-) Just haven't gotten around to building the entire thing yet -- been busy huntin' wabbits. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by kanga.kvack.org (Postfix) with ESMTP id AF4936B0035 for ; Wed, 22 Jan 2014 12:52:36 -0500 (EST) Received: by mail-wg0-f43.google.com with SMTP id y10so589891wgg.34 for ; Wed, 22 Jan 2014 09:52:36 -0800 (PST) Received: from merlin.infradead.org (merlin.infradead.org. [2001:4978:20e::2]) by mx.google.com with ESMTPS id hq3si7421266wib.38.2014.01.22.09.52.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jan 2014 09:52:35 -0800 (PST) Date: Wed, 22 Jan 2014 18:51:52 +0100 From: Peter Zijlstra Subject: Re: [PATCH v9 5/6] MCS Lock: Order the header files in Kbuild of each architecture in alphabetical order Message-ID: <20140122175152.GT31570@twins.programming.kicks-ass.net> References: <1390347376.3138.66.camel@schen9-DESK> <20140122130818.GP31570@twins.programming.kicks-ass.net> <1390412468.3138.69.camel@schen9-DESK> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1390412468.3138.69.camel@schen9-DESK> Sender: owner-linux-mm@kvack.org List-ID: To: Tim Chen Cc: Ingo Molnar , Andrew Morton , Thomas Gleixner , "Paul E.McKenney" , Will Deacon , linux-kernel@vger.kernel.org, linux-mm , linux-arch@vger.kernel.org, Linus Torvalds , Waiman Long , Andrea Arcangeli , Alex Shi , Andi Kleen , Michel Lespinasse , Davidlohr Bueso , Matthew R Wilcox , Dave Hansen , Rik van Riel , Peter Hurley , Raghavendra K T , George Spelvin , "H. Peter Anvin" , Arnd Bergmann , Aswin Chandramouleeswaran , Scott J Norton , "Figo.zhang" , sfr@canb.auug.org.au On Wed, Jan 22, 2014 at 09:41:08AM -0800, Tim Chen wrote: > On Wed, 2014-01-22 at 14:08 +0100, Peter Zijlstra wrote: > > On Tue, Jan 21, 2014 at 03:36:16PM -0800, Tim Chen wrote: > > > From: Peter Zijlstra > > > > > > We perform a clean up of the Kbuid files in each architecture. > > > We order the files in each Kbuild in alphabetical order > > > by running the below script on each Kbuild file: > > > > > > gawk '/^generic-y/ { > > > i = 3; > > > do { > > > for (; i<=NF; i++) { > > > if ($i == "\\") { > > > getline; > > > i=1; > > > continue; > > > } > > > if ($i != "") > > > hdr[$i] = $i; > > > } > > > break; > > > } while (1); > > > next; > > > } > > > END { > > > n = asort(hdr); > > > for (i=1; i<=n; i++) > > > print "generic-y += " hdr[i]; > > > }' > > > > > > > I'll probably have to regenerate this patch once the merge window is > > done, but that's no biggie. > > > > sfr, you might want to keep this script handy and distribute to others > > who are lazy and don't want to sort by hand. > > > > I suppose running it requires a little something like: > > > > for i in arch/*/include/asm/Kbuild > > do > > cat $i | gawk .... > ${i}.sorted; > > mv ${i}.sorted $i; > > done > > Peter, if this patch and the next one that adds mcs_spinlock.h to > Kbuild looks okay, can you add your signed-off? Thanks. Script did that when I queued the lot :-) Just haven't gotten around to building the entire thing yet -- been busy huntin' wabbits. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org