Skip to contentSkip to conversation

arm: fixup hard tabs

PATCH NAK Ian Campbell 3 participants 5 messages Feb 13, 2012

lore
Share & tools
lore
#0 lore raw

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
diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/arch/arm/dtb.S
@@ -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
diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/arch/arm/dummy.S
@@ -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
diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/arch/arm/lib/changebit.S
@@ -14,5 +14,5 @@
                 .text
 
 ENTRY(_change_bit)
-       bitop   eor
+	bitop	eor
 ENDPROC(_change_bit)
xen/arch/arm/lib/clearbit.S +1 -1
diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/arch/arm/lib/clearbit.S
@@ -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/arch/arm/lib/setbit.S +2 -2
diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/arch/arm/lib/setbit.S

Lines of this file are not shown. View the raw message.

xen/arch/arm/lib/testchangebit.S +1 -1
diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/arch/arm/lib/testchangebit.S

Lines of this file are not shown. View the raw message.

xen/arch/arm/lib/testclearbit.S +1 -1
diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/arch/arm/lib/testclearbit.S

Lines of this file are not shown. View the raw message.

xen/arch/arm/lib/testsetbit.S +1 -1
diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/arch/arm/lib/testsetbit.S

Lines of this file are not shown. View the raw message.

xen/include/asm-arm/bitops.h +8 -8
diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/include/asm-arm/bitops.h

Lines of this file are not shown. View the raw message.

xen/include/asm-arm/div64.h +165 -165

330 lines not on this page · raw message

xen/include/asm-arm/numa.h +1 -1
diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/include/asm-arm/numa.h

Lines of this file are not shown. View the 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.

#1 lore raw
Quoted 10 lines · Ian Campbell

# 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)

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

diff -r 7fd8f10cfd3e -r 63e88a26e1ef xen/arch/arm/dtb.S

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

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 -r 63e88a26e1ef xen/arch/arm/entry.S

xen/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

#2 lore raw
Quoted 11 lines · David Vrabel
Quoted 10 lines · Ian Campbell

# 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)

(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_FILE

This 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.

#3 lore raw
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.

#4 lore raw
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.