git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf riscv: Fix the warning due to the incompatible type
[sfrench/cifs-2.6.git]
/
tools
/
perf
/
arch
/
riscv
/
util
/
header.c
diff --git
a/tools/perf/arch/riscv/util/header.c
b/tools/perf/arch/riscv/util/header.c
index 4a41856938a8889403278a4ad44c599d835b887a..1b29030021eeba71e34eeb8adcf69278f11a1dda 100644
(file)
--- a/
tools/perf/arch/riscv/util/header.c
+++ b/
tools/perf/arch/riscv/util/header.c
@@
-41,7
+41,7
@@
static char *_get_cpuid(void)
char *mimpid = NULL;
char *cpuid = NULL;
int read;
-
unsigned long
line_sz;
+
size_t
line_sz;
FILE *cpuinfo;
cpuinfo = fopen(CPUINFO, "r");