tools/power turbostat: fix various build warnings
authorColin Ian King <[email protected]>
Wed, 2 Mar 2016 13:50:25 +0000 (13:50 +0000)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 3 Mar 2016 14:10:39 +0000 (11:10 -0300)
commit1b69317d2dc80bc8e1d005e1a771c4f5bff3dabe
treebb5ba98a065d0e39160801657c92468c58806b10
parente17a0e16ca3a63d1bafbcba313586cf137418f45
tools/power turbostat: fix various build warnings

When building with gcc 6 we're getting various build warnings that just
require some trivial function declaration and call fixes:

  turbostat.c: In function ‘dump_cstate_pstate_config_info’:
  turbostat.c:1973:1: warning: type of ‘family’ defaults to ‘int’
   dump_cstate_pstate_config_info(family, model)
  turbostat.c:1973:1: warning: type of ‘model’ defaults to ‘int’
  turbostat.c: In function ‘get_tdp’:
  turbostat.c:2145:8: warning: type of ‘model’ defaults to ‘int’
   double get_tdp(model)
  turbostat.c: In function ‘perf_limit_reasons_probe’:
  turbostat.c:2259:6: warning: type of ‘family’ defaults to ‘int’
   void perf_limit_reasons_probe(family, model)
  turbostat.c:2259:6: warning: type of ‘model’ defaults to ‘int’

Signed-off-by: Colin Ian King <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/power/x86/turbostat/turbostat.c