Skip to contentSkip to conversation

Fixed checkpatch error to mmu.c

PATCH In review Ozgur Karatas 2 participants 2 messages Dec 12, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixed checkpatch error to mmu.c

Hello all,

I tested to mmu.c and I have fixed to some errors.

mmu.c:510: ERROR: "(foo*)" should be "(foo *)"

---
arch/arm/kvm/mmu.c | 2 +-

arch/arm/kvm/mmu.c +1 -1
index a5265ed..a83cf47 100644
@@ -507,7 +507,7 @@ void free_hyp_pgds(void)
 		unmap_hyp_range(hyp_pgd, hyp_idmap_start, PAGE_SIZE);
 		for (addr = PAGE_OFFSET; virt_addr_valid(addr); addr += PGDIR_SIZE)
 			unmap_hyp_range(hyp_pgd, kern_hyp_va(addr), PGDIR_SIZE);
-		for (addr = VMALLOC_START; is_vmalloc_addr((void*)addr); addr += PGDIR_SIZE)
+		for (addr = VMALLOC_START; is_vmalloc_addr((void *)addr); addr += PGDIR_SIZE)
 			unmap_hyp_range(hyp_pgd, kern_hyp_va(addr), PGDIR_SIZE);
 
Signature · 1 line
2.1.4
#1 lore raw

Hi Ozgur,

Quoted 15 lines · Ozgur Karatas

Hello all,

I tested to mmu.c and I have fixed to some errors.

mmu.c:510: ERROR: "(foo*)" should be "(foo *)"

---
arch/arm/kvm/mmu.c | 2 +-

arch/arm/kvm/mmu.c +0 -0
index a5265ed..a83cf47 100644

arch/arm/kvm/mmu.c void free_hyp_pgds(void) · line 512

Quoted 7 lines
arch/arm/kvm/mmu.c +1 -1
@@ -507,7 +507,7 @@ void free_hyp_pgds(void)
 		unmap_hyp_range(hyp_pgd, hyp_idmap_start, PAGE_SIZE);
 		for (addr = PAGE_OFFSET; virt_addr_valid(addr); addr += PGDIR_SIZE)
 			unmap_hyp_range(hyp_pgd, kern_hyp_va(addr), PGDIR_SIZE);
-		for (addr = VMALLOC_START; is_vmalloc_addr((void*)addr); addr += PGDIR_SIZE)
+		for (addr = VMALLOC_START; is_vmalloc_addr((void *)addr); addr += PGDIR_SIZE)
 			unmap_hyp_range(hyp_pgd, kern_hyp_va(addr), PGDIR_SIZE);
 

I'm not overly sympathetic to pure checkpatch patches. If you find something that is a functional bug in that file, I'll consider it as part of a series. But on its own, this is just noise.

Thanks,

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