Skip to contentSkip to conversation

arm/arm64: KVM: Fix line length exceeding 80 characters

PATCH Superseded Jungseok Lee 2 participants 4 messages Apr 14, 2014 – Apr 15, 2014

Subsystems (2)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/8 arm/arm64: KVM: Fix line length exceeding 80 characters

This patch deals with checkpatch complaint as fixing line length exceeding 80 characters.

WARNING: line over 80 characters

---
 arch/arm/kvm/mmu.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/kvm/mmu.c +2 -2
index 80bb1e6..e0d4f24 100644
@@ -563,8 +563,8 @@ void kvm_free_stage2_pgd(struct kvm *kvm)
 	kvm->arch.pgd = NULL;
 }
 
-static pmd_t *stage2_get_pmd(struct kvm *kvm, struct kvm_mmu_memory_cache *cache,
-			     phys_addr_t addr)
+static pmd_t *stage2_get_pmd(struct kvm *kvm, struct kvm_mmu_memory_cache
+			     *cache, phys_addr_t addr)
 {
 	pgd_t *pgd;
 	pud_t *pud;
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 16 lines · Jungseok Lee

This patch deals with checkpatch complaint as fixing line length exceeding 80 characters.

WARNING: line over 80 characters

---
 arch/arm/kvm/mmu.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/kvm/mmu.c +0 -0
index 80bb1e6..e0d4f24 100644

arch/arm/kvm/mmu.c void kvm_free_stage2_pgd(struct kvm *kvm) · line 567

Quoted 7 lines
arch/arm/kvm/mmu.c +2 -2
@@ -563,8 +563,8 @@ void kvm_free_stage2_pgd(struct kvm *kvm)
 	kvm->arch.pgd = NULL;
 }
 
-static pmd_t *stage2_get_pmd(struct kvm *kvm, struct kvm_mmu_memory_cache *cache,
-			     phys_addr_t addr)
+static pmd_t *stage2_get_pmd(struct kvm *kvm, struct kvm_mmu_memory_cache
+			     *cache, phys_addr_t addr)

Please don't. This makes the code unreadable (and no, I don't care about checkpatch ;-).

	M.
Signature · 1 line
Jazz is not dead. It just smells funny...
#2 lore raw
Quoted 20 lines · Marc Zyngier
Quoted 19 lines · Jungseok Lee

This patch deals with checkpatch complaint as fixing line length exceeding 80 characters.

WARNING: line over 80 characters

---
 arch/arm/kvm/mmu.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/kvm/mmu.c index renamed from arch/arm/kvm/mmu.c +0 -0

80bb1e6..e0d4f24 100644

arch/arm/kvm/mmu.c +0 -0
@@ -563,8 +563,8 @@ void kvm_free_stage2_pgd(struct kvm *kvm)
 	kvm->arch.pgd = NULL;
 }
 
Quoted 6 lines

arch/arm/kvm/mmu.c void kvm_free_stage2_pgd(struct kvm *kvm) · line 567

Quoted 4 lines
arch/arm/kvm/mmu.c +2 -2
-static pmd_t *stage2_get_pmd(struct kvm *kvm, struct kvm_mmu_memory_cache *cache,
-			     phys_addr_t addr)
+static pmd_t *stage2_get_pmd(struct kvm *kvm, struct kvm_mmu_memory_cache
+			     *cache, phys_addr_t addr)

Please don't. This makes the code unreadable (and no, I don't care about checkpatch ;-).

Okay. I will drop this patch from the next version.

It would be good to change stage2_set_pmd_huge function for readability if you don't care about checkpatch.

Best Regards
Jungseok Lee

#3 lore raw
Quoted 28 lines · Jungseok Lee
Quoted 20 lines · Marc Zyngier
Quoted 19 lines · Jungseok Lee

This patch deals with checkpatch complaint as fixing line length exceeding 80 characters.

WARNING: line over 80 characters

---
 arch/arm/kvm/mmu.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/kvm/mmu.c index renamed from arch/arm/kvm/mmu.c +0 -0

80bb1e6..e0d4f24 100644

arch/arm/kvm/mmu.c +0 -0
@@ -563,8 +563,8 @@ void kvm_free_stage2_pgd(struct kvm *kvm)
 	kvm->arch.pgd = NULL;
 }
 
Quoted 6 lines

arch/arm/kvm/mmu.c void kvm_free_stage2_pgd(struct kvm *kvm) · line 567

Quoted 4 lines
arch/arm/kvm/mmu.c +2 -2
-static pmd_t *stage2_get_pmd(struct kvm *kvm, struct kvm_mmu_memory_cache *cache,
-			     phys_addr_t addr)
+static pmd_t *stage2_get_pmd(struct kvm *kvm, struct kvm_mmu_memory_cache
+			     *cache, phys_addr_t addr)

Please don't. This makes the code unreadable (and no, I don't care about checkpatch ;-).

Quoted 4 lines

Okay. I will drop this patch from the next version.

It would be good to change stage2_set_pmd_huge function for readability if you don't care about checkpatch.

We usually don't change that kind of thing just for the sake of changing it. It feels like fairly pointless churn. *IF* someone happens to rework that code, then they're welcome to fix it.

	M.
Signature · 1 line
Jazz is not dead. It just smells funny...