arm: fixup hard tabs
PATCH 1/1 arm: fixup hard tabs
# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1329153968 0
# Node ID 63e88a26e1ef58c8e5a2b30a003ab7c3bc9c6b54 # Parent 7fd8f10cfd3eaf9f0982eb6fd49334a1e229ba98
arm: fixup hard tabs
Unfortunately the tool I was using to apply patches mangles hard tabs. This patch corrects this in the effected files (which is fortunately only a subset of .S or files imported from Linux)
"git diff" and "git diff -b" vs. Stefano's v6 branch now contain the same output -- i.e. only the intervening development
xen/arch/arm/dtb.S +2 -2
@@ -1,2 +1,2 @@ - .section .dtb,#alloc - .incbin CONFIG_DTB_FILE + .section .dtb,#alloc + .incbin CONFIG_DTB_FILE
xen/arch/arm/dummy.S +6 -6
@@ -1,13 +1,13 @@ /* Nothing is mapped at 1G, for the moment */ #define DUMMY(x) \ - .globl x; \ -x: .word 0xe7f000f0 -/* x: mov r0, #0x40000000 ; str r0, [r0]; b x */ + .globl x; \ +x: .word 0xe7f000f0 +/* x: mov r0, #0x40000000 ; str r0, [r0]; b x */ #define NOP(x) \ - .globl x; \ -x: mov pc, lr - + .globl x; \ +x: mov pc, lr + DUMMY(alloc_pirq_struct); DUMMY(alloc_vcpu_guest_context); DUMMY(arch_do_domctl);
xen/arch/arm/entry.S +79 -79
182 lines not on this page · raw message
xen/arch/arm/head.S +216 -216
503 lines not on this page · raw message
xen/arch/arm/lib/bitops.h +72 -72
156 lines not on this page · raw message
xen/arch/arm/lib/changebit.S +1 -1
@@ -14,5 +14,5 @@ .text ENTRY(_change_bit) - bitop eor + bitop eor ENDPROC(_change_bit)
xen/arch/arm/lib/clearbit.S +1 -1
@@ -15,5 +15,5 @@ .text ENTRY(_clear_bit) - bitop bic + bitop bic ENDPROC(_clear_bit)
xen/arch/arm/lib/copy_template.S +172 -172
422 lines not on this page · raw message
xen/arch/arm/lib/div64.S +122 -122
315 lines not on this page · raw message
xen/arch/arm/lib/findbit.S +123 -123
292 lines not on this page · raw message
xen/arch/arm/lib/lib1funcs.S +220 -220
552 lines not on this page · raw message
xen/arch/arm/lib/memcpy.S +33 -33
88 lines not on this page · raw message
xen/arch/arm/lib/memmove.S +143 -143
331 lines not on this page · raw message
xen/arch/arm/lib/memset.S +72 -72
124 lines not on this page · raw message
xen/arch/arm/lib/memzero.S +68 -68
136 lines not on this page · raw message
xen/include/asm-arm/div64.h +165 -165
330 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
David Vrabel
NAKQuoted 10 lines · Ian Campbell
# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1329153968 0
# Node ID63e88a26e1ef58c8e5a2b30a003ab7c3bc9c6b54# Parent7fd8f10cfd3eaf9f0982eb6fd49334a1e229ba98
arm: fixup hard tabsUnfortunately the tool I was using to apply patches mangles hard tabs. This patch corrects this in the effected files (which is fortunately only a subset of .S or files imported from Linux)
No other file in the tree has tabs why should these?
Nak, unless your intention is to immediately apply a patch converting tabs to 8 spaces.
Interestingly, the citrix email server apears to mangle tabs and replace them with spaces (which made the copy of these patch I received via Cc appear to do nothing at all). Perhaps this is where it went wrong originally?
Quoted 2 lines
"git diff" and "git diff -b" vs. Stefano's v6 branch now contain the same output -- i.e. only the intervening development
I don't think this is particularly useful long term.
xen/arch/arm/dtb.S line 2
Quoted 10 lines
Signed-off-by Ian Campbell <[email protected]>diff -r
7fd8f10cfd3e-r63e88a26e1efxen/arch/arm/dtb.Sxen/arch/arm/dtb.S +2
-2@@ -1,2 +1,2 @@ - .section .dtb,#alloc - .incbin CONFIG_DTB_FILE + .section .dtb,#alloc + .incbin CONFIG_DTB_FILE
This was a new file that never had tabs anywhere. No need to mess about with it.
xen/arch/arm/entry.S
Quoted 3 lines
diff -r
7fd8f10cfd3e-r63e88a26e1efxen/arch/arm/entry.Sxen/arch/arm/entry.S +0
-0
[...
xen/arch/arm/entry.S line 17
Quoted 5 lines
xen/arch/arm/entry.S +0
-5-#define SAVE_ALL \ - sub sp, #(UREGS_R8_fiq - UREGS_sp); /* SP, LR, SPSR, PC */ \ - push {r0-r12}; /* Save R0-R12 */ \ - \ - mrs r11, ELR_hyp; /* ELR_hyp is return address. */ \
While your messing with whitespace. How about moving that \ to below 80 columns.
David
Quoted 11 lines · David Vrabel
Quoted 10 lines · Ian Campbell
# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1329153968 0
# Node ID63e88a26e1ef58c8e5a2b30a003ab7c3bc9c6b54# Parent7fd8f10cfd3eaf9f0982eb6fd49334a1e229ba98
arm: fixup hard tabsUnfortunately the tool I was using to apply patches mangles hard tabs. This patch corrects this in the effected files (which is fortunately only a subset of .S or files imported from Linux)
(note that the mangling resulted in _7_ space indentation, which is worse than just about anything)
Quoted 5 lines
No other file in the tree has tabs why should these?
Nak, unless your intention is to immediately apply a patch converting tabs to 8 spaces.
My intention is to put the tree back into the state which reflects what the original authors intended, that is what I was sent and what I would have committed if my tools had not let me down. I am not going to do any more or less than that.
I'm not really interested in debating the right style of indentation to use in the context of this fixup patch. If you feel strongly about it please follow up with a patch with the explicit purpose of changing the _intended_ indentation.
Quoted 4 lines
Interestingly, the citrix email server apears to mangle tabs and replace them with spaces (which made the copy of these patch I received via Cc appear to do nothing at all). Perhaps this is where it went wrong originally?
Quite possibly. I may need to investigate alternative ways of receiving patches which I intend to apply if that turns out to be the case.
Quoted 8 lines
xen/arch/arm/dtb.S line 2
Quoted 5 lines
xen/arch/arm/dtb.S +2
-2@@ -1,2 +1,2 @@ - .section .dtb,#alloc - .incbin CONFIG_DTB_FILE + .section .dtb,#alloc + .incbin CONFIG_DTB_FILEThis was a new file that never had tabs anywhere. No need to mess about with it.
That being the case I'll drop this hunk.
Thanks,
Ian.
Quoted 7 lines · Ian Campbell
(note that the mangling resulted in _7_ space indentation, which is worse than just about anything)
Quoted 4 lines
No other file in the tree has tabs why should these?
Nak, unless your intention is to immediately apply a patch converting tabs to 8 spaces.
We really ought to take this - the current state is both accidental and nonsensical.
That said, for head.S, which is the only place I've introduced tabs, I'm happy to have the whole file converted to (8) spaces if you also fix the emacs runes at the foot of the file to DTRT.
For asm code taken from linux, have we already mangled them enough that applying upstream fixes would be hard?
Tim.
Quoted 11 lines · Tim Deegan
Quoted 7 lines · Ian Campbell
(note that the mangling resulted in _7_ space indentation, which is worse than just about anything)
Quoted 4 lines
No other file in the tree has tabs why should these?
Nak, unless your intention is to immediately apply a patch converting tabs to 8 spaces.
We really ought to take this - the current state is both accidental and nonsensical.
Yes, that is my primary concern right now.
Quoted 3 lines
That said, for
head.S, which is the only place I've introduced tabs, I'm happy to have the whole file converted to (8) spaces if you also fix the emacs runes at the foot of the file to DTRT.
Similarly for entry.S which I think I just styled after head.S.
Quoted 2 lines
For asm code taken from linux, have we already mangled them enough that applying upstream fixes would be hard?
I don't think so, once this fix is applied they will be back to being pretty close.
Ian.