https://github.com/torvalds/linux
Revision 09c87e2f79eb336bd313090be8113ae29345b8f5 authored by Rafael J. Wysocki on 16 October 2013, 20:59:33 UTC, committed by Rafael J. Wysocki on 16 October 2013, 20:59:33 UTC
The expression in line 398 of intel_pstate.c causes the following
warning to be emitted:

drivers/cpufreq/intel_pstate.c:398:3: warning: left shift count >= width of type

which happens because unsigned long is 32-bit on some architectures.

Fix that by using a helper u64 variable and simplify the code
slightly.

Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 52e0a50
History
Tip revision: 09c87e2f79eb336bd313090be8113ae29345b8f5 authored by Rafael J. Wysocki on 16 October 2013, 20:59:33 UTC
intel_pstate: Fix type mismatch warning
Tip revision: 09c87e2
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.0 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 257.5 KB
Makefile -rw-r--r-- 47.4 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top