On Sat, Sep 06, 2014 at 07:12:26PM +0200, Frederic Weisbecker wrote: > On Sat, Sep 06, 2014 at 05:45:56PM +0200, Peter Zijlstra wrote: > > On Sat, Sep 06, 2014 at 03:35:15PM +0200, Frederic Weisbecker wrote: > > > You have a script that does that arch/*/include/asm/Kbuild edit for you right? > > > Is this something in scripts/ ? > > > > See commit b119fa61d440 ("locking/mcs: Order the header files in Kbuild > > of each architecture in alphabetical order") > > > > That script is a little buggy, but should work in the current case. So > > first do something like: > > > > for i in arch/*/include/asm/Kbuild; do > > echo "generic-y += foo.h" >> $i; > > done > > > > Then run that script. > > > > IIRC the bug was where a single line contained multiple headers and/or a > > continuation. I should have a better version somewhere, but this one was > > easier to find. > > I see. Meanwhile I've applied your suggestion as a separate patch in > the series. May I use your SOB? Sure.