From c3daed0c76d923f37b1c7c1d6cf5ef9939a53791 Mon Sep 17 00:00:00 2001 From: Vincent Brillault Date: Thu, 16 Apr 2015 21:33:02 +0200 Subject: [PATCH] Turbostat: Fix a 64b to 32b truncation Found while compiling with clang and -Wshorten-64-to-32 enabled --- src/turbostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/turbostat.c b/src/turbostat.c index 76b65cb6..1898db1e 100644 --- a/src/turbostat.c +++ b/src/turbostat.c @@ -301,7 +301,7 @@ read_msr(int fd, off_t offset, unsigned long long *msr) * Open a MSR device for reading, read the value asked for and close it. * This call will not affect the scheduling affinity of this thread. */ -static int __attribute__((warn_unused_result)) +static ssize_t __attribute__((warn_unused_result)) get_msr(unsigned int cpu, off_t offset, unsigned long long *msr) { ssize_t retval; -- 2.11.0