locking/mcs: Order the header files in Kbuild of each architecture in alphabetical order

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.

for i in arch/*/include/asm/Kbuild
do
        cat $i | 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;
        }
        // {
                print $0;
        }
        END {
                n = asort(hdr);
                for (i = 1; i <= n; i++)
                        print "generic-y += " hdr[i];
        }' > ${i}.sorted;
        mv ${i}.sorted $i;
done

Signed-off-by: Tim Chen <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Matthew R Wilcox <[email protected]>
Cc: AswinChandramouleeswaran <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: "Paul E.McKenney" <[email protected]>
Cc: Scott J Norton <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: "Figo.zhang" <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Waiman Long <[email protected]>
Cc: Peter Hurley <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Tim Chen <[email protected]>
Cc: Alex Shi <[email protected]>
Cc: Raghavendra K T <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: George Spelvin <[email protected]>
Cc: MichelLespinasse <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
[ Fixed build bug. ]
Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
Tim Chen 2014-01-21 15:36:16 -08:00 • committed by Ingo Molnar
commit b119fa61d4
28 changed files with 133 additions and 95 deletions

View file

@ -1,7 +1,7 @@
generic-y += clkdev.h
generic-y += exec.h
generic-y += trace_clock.h
generic-y += preempt.h
generic-y += hash.h
generic-y += preempt.h
generic-y += trace_clock.h