Found while compiling with clang and -Wshorten-64-to-32 enabled
* 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.
*/
* 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;
get_msr(unsigned int cpu, off_t offset, unsigned long long *msr)
{
ssize_t retval;