Skip to content

Commit

Permalink
ppc64_cpu: Fix function method signature
Browse files Browse the repository at this point in the history
If HAVE_LINUX_PERF_EVENT_H is not defined, the code fails to
compile, because function do_cpu_frequency() does not have an
Argument, as it has if HAVE_LINUX_PERF_EVENT_H is defined.
This is the error message:

 error: too many arguments to function 'do_cpu_frequency'

This patch simply adds an argument to the function.

Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
  • Loading branch information
leitao authored and nfont committed Nov 9, 2016
1 parent 7410549 commit eca0c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ppc64_cpu.c
Expand Up @@ -1060,7 +1060,7 @@ static int do_cpu_frequency(int sleep_time)

#else

static int do_cpu_frequency(void)
static int do_cpu_frequency(int sleep_time)
{
printf("CPU Frequency determination is not supported on this "
"platfom.\n");
Expand Down

0 comments on commit eca0c56

Please sign in to comment.