• Colin Ian King's avatar
    tools/power turbostat: fix various build warnings · 1b69317d
    Colin Ian King authored
    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: default avatarColin Ian King <colin.king@canonical.com>
    Cc: Matt Fleming <matt@codeblueprint.co.uk>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Link: http://lkml.kernel.org/n/tip-wbicer8n0s9qe6ql8h9x478e@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    1b69317d
turbostat.c 82.3 KB