lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 12 May 2008 14:52:26 +0530
From:	"Pranith Kumar" <bobby.prani@...il.com>
To:	"Ingo Molnar" <mingo@...e.hu>
Cc:	trivial@...nel.org, LKML <linux-kernel@...r.kernel.org>,
	"Kernel List" <kernelnewbies@...linux.org>,
	kernel-janitors@...r.kernel.org
Subject: [Patch 1/1] Trivial - 2.6.26-rc2, arch/x86/mm/pat.c - fix warning

Hello,

I get this warning when i compile the latest rc2
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)

The following patch fixes this warning

Signed-Off-by: D Pranith Kumar <bobby.prani@...il.com>

--- linux-2.6.26-rc2/arch/x86/mm/pat.c.orig	2008-05-12 14:25:16.000000000 +0530
+++ linux-2.6.26-rc2/arch/x86/mm/pat.c	2008-05-12 14:24:05.000000000 +0530
@@ -555,7 +555,7 @@ int phys_mem_access_prot_allowed(struct
 		"%s:%d /dev/mem ioremap_change_attr failed %s for %Lx-%Lx\n",
 			current->comm, current->pid,
 			cattr_name(flags),
-			offset, offset + size);
+			offset, (unsigned long long)(offset + size));
 		return 0;
 	}

@@ -576,7 +576,7 @@ void map_devmem(unsigned long pfn, unsig
 		"%s:%d /dev/mem expected mapping type %s for %Lx-%Lx, got %s\n",
 			current->comm, current->pid,
 			cattr_name(want_flags),
-			addr, addr + size,
+			addr, (unsigned long long)(addr + size),
 			cattr_name(flags));
 	}
 }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ