From: H. Peter Anvin Date: Tue, 10 Jan 2012 03:33:24 +0000 (-0800) Subject: x86, atomic: atomic64_read() take a const pointer X-Git-Tag: v3.3-rc1~52^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8030c36d13f030103356709e63638678fdc66fdc;p=pandora-kernel.git x86, atomic: atomic64_read() take a const pointer atomic64_read() doesn't actually write anything (as far as the C environment is concerned... the CPU does actually write but that's an implementation quirk), so it should take a const pointer. This does NOT mean that it is safe to use atomic64_read() on an object in readonly storage (it will trap!) Reported-by: Andrew Morton Signed-off-by: H. Peter Anvin Link: http://lkml.kernel.org/r/20120109165859.1879abda.akpm@linux-foundation.org --- Reading git-diff-tree failed