]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
perf tools: Fix build with bison 2.3 and older.
authorVinson Lee <vlee@twitter.com>
Wed, 13 Feb 2013 21:48:58 +0000 (13:48 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Feb 2013 19:12:34 +0000 (16:12 -0300)
commit85df3b3769222894e9692b383c7af124b7721086
treeb157ae2168c74720030031bfb4bb35878d9cf2be
parent02320931ce000836aa231ac1311769e303122099
perf tools: Fix build with bison 2.3 and older.

The %name-prefix "prefix" syntax is not available on bison 2.3 and
older. Substitute with the -p "prefix" command-line option for
compatibility with older versions of bison.

This patch fixes this build error with older versions of bison.

    CC util/sysfs.o
    BISON util/pmu-bison.c
util/pmu.y:2.14-24: syntax error, unexpected string, expecting =
make: *** [util/pmu-bison.c] Error 1

Signed-off-by: Vinson Lee <vlee@twitter.com>
Tested-by: Li Zefan <lizefan@huawei.com>
Cc: stable@vger.kernel.org # 3.4+
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Li Zefan <lizefan@huawei.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Link: http://lkml.kernel.org/r/1360792138-29186-1-git-send-email-vlee@twitter.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile
tools/perf/util/parse-events.y
tools/perf/util/pmu.y