From: Dan Carpenter Date: Sat, 18 May 2013 18:34:52 +0000 (+0300) Subject: perf/x86/intel: Prevent some shift wrapping bugs in the Intel uncore driver X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~62^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13acac307528c9cd7dd9fa9c577419401527b464;p=pandora-kernel.git perf/x86/intel: Prevent some shift wrapping bugs in the Intel uncore driver We're trying to use 64 bit masks but the shifts wrap so we can't use the high 32 bits. I've fixed this by changing several types to unsigned long long. This is a static checker fix. The one change which is clearly needed is "mask = 0xff << (idx * 8);" where the author obviously intended to use all 64 bits. The other changes are mostly to silence my static checker. Signed-off-by: Dan Carpenter Signed-off-by: Peter Zijlstra Cc: Stephane Eranian Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20130518183452.GA14587@elgon.mountain Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed