]> git.baikalelectronics.ru Git - kernel.git/commit
perfcounter: Handle some IO return values
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 20 Jun 2009 00:01:40 +0000 (02:01 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 20 Jun 2009 10:30:33 +0000 (12:30 +0200)
commite4b77af897f07abf56b526b7acc49dcfeae1b3b5
tree95e26221d3f768544e33bc6754c39e9e0452b6f3
parentd40d67780cd28a48b20eea73e4543ee9a3b81d7b
perfcounter: Handle some IO return values

Building perfcounter tools raises the following warnings:

 builtin-record.c: In function ‘atexit_header’:
 builtin-record.c:464: erreur: ignoring return value of ‘pwrite’, declared with attribute warn_unused_result
 builtin-record.c: In function ‘__cmd_record’:
 builtin-record.c:503: erreur: ignoring return value of ‘read’, declared with attribute warn_unused_result

 builtin-report.c: In function ‘__cmd_report’:
 builtin-report.c:1403: erreur: ignoring return value of ‘read’, declared with attribute warn_unused_result

This patch handles these IO return values.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1245456100-5477-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c
tools/perf/builtin-report.c