Commit 2bc7273b0e3a509fb598abfc5b9fe50158b830d2

Authored by KOSAKI Motohiro
Committed by Linus Torvalds
1 parent feb1669488

mm: make maddr __iomem

sparse output following warnings.

mm/memory.c:2936:8: warning: incorrect type in assignment (different address spaces)
mm/memory.c:2936:8:    expected void *maddr
mm/memory.c:2936:8:    got void [noderef] <asn:2>

cleanup here.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -2966,7 +2966,7 @@
2966 2966 {
2967 2967 resource_size_t phys_addr;
2968 2968 unsigned long prot = 0;
2969   - void *maddr;
  2969 + void __iomem *maddr;
2970 2970 int offset = addr & (PAGE_SIZE-1);
2971 2971  
2972 2972 if (follow_phys(vma, addr, write, &prot, &phys_addr))