Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afc85343 authored by Pranith Kumar's avatar Pranith Kumar Committed by Ingo Molnar
Browse files

x86: arch/x86/mm/pat.c - fix warning



fix this warning:

 arch/x86/mm/pat.c: In function `phys_mem_access_prot_allowed':
 arch/x86/mm/pat.c:558: warning: long long unsigned int format, long
 unsigned int arg (arg 6)
 arch/x86/mm/pat.c: In function `map_devmem':
 arch/x86/mm/pat.c:580: warning: long long unsigned int format, long
 unsigned int arg (arg 6)

Signed-off-by: default avatarD Pranith Kumar <bobby.prani@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 89804c02
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -555,7 +555,7 @@ int phys_mem_access_prot_allowed(struct file *file, unsigned long pfn,
		"%s:%d /dev/mem ioremap_change_attr failed %s for %Lx-%Lx\n",
		"%s:%d /dev/mem ioremap_change_attr failed %s for %Lx-%Lx\n",
			current->comm, current->pid,
			current->comm, current->pid,
			cattr_name(flags),
			cattr_name(flags),
			offset, offset + size);
			offset, (unsigned long long)(offset + size));
		return 0;
		return 0;
	}
	}


@@ -576,7 +576,7 @@ void map_devmem(unsigned long pfn, unsigned long size, pgprot_t vma_prot)
		"%s:%d /dev/mem expected mapping type %s for %Lx-%Lx, got %s\n",
		"%s:%d /dev/mem expected mapping type %s for %Lx-%Lx, got %s\n",
			current->comm, current->pid,
			current->comm, current->pid,
			cattr_name(want_flags),
			cattr_name(want_flags),
			addr, addr + size,
			addr, (unsigned long long)(addr + size),
			cattr_name(flags));
			cattr_name(flags));
	}
	}
}
}