perf report: Fix build with NO_NEWT=1
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 26 Feb 2013 05:02:03 +0000 (16:02 +1100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 Mar 2013 19:55:17 +0000 (16:55 -0300)
commit5f7439e07822942f32b9e0a66f4a3cc9c3e29e67
tree0faaaed80e2ef59951e5395410f008321707d869
parent1e825efb571a87d039cb3fe7ca833a25f11c7cb9
perf report: Fix build with NO_NEWT=1

Commit ad0de09 "Enable the runtime switching of perf data file" broke
the build with NO_NEWT=1:

    CC builtin-report.o
builtin-report.c: In function '__cmd_report':
builtin-report.c:479:15: error: 'K_SWITCH_INPUT_DATA' undeclared (first use in this function)
builtin-report.c:479:15: note: each undeclared identifier is reported only once for each function it appears in
builtin-report.c: In function 'cmd_report':
builtin-report.c:823:13: error: 'K_SWITCH_INPUT_DATA' undeclared (first use in this function)
make: *** [builtin-report.o] Error 1

Fix it by adding a dummy definition of K_SWITCH_INPUT_DATA.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Cc: Feng Tang <feng.tang@intel.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1361854923-1814-2-git-send-email-michael@ellerman.id.au
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.h