From: Sasha Levin Date: Tue, 3 Oct 2023 11:57:06 +0000 (-0400) Subject: Fixes for 6.5 X-Git-Tag: v6.5.6~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a79fbfd1e7380b80f25cbaec5b07d45d89dc5122;p=thirdparty%2Fkernel%2Fstable-queue.git Fixes for 6.5 Signed-off-by: Sasha Levin --- diff --git a/queue-6.5/perf-build-define-yynomem-as-yynoabort-for-bison-3.8.patch b/queue-6.5/perf-build-define-yynomem-as-yynoabort-for-bison-3.8.patch new file mode 100644 index 00000000000..c922a0c5c87 --- /dev/null +++ b/queue-6.5/perf-build-define-yynomem-as-yynoabort-for-bison-3.8.patch @@ -0,0 +1,42 @@ +From 72b4465bb6fdb864a67fed14e4559a2fb6d16d37 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Fri, 28 Jul 2023 17:26:54 -0300 +Subject: perf build: Define YYNOMEM as YYNOABORT for bison < 3.81 + +From: Arnaldo Carvalho de Melo + +[ Upstream commit 88cc47e24597971b05b6e94c28a2fc81d2a8d61a ] + +YYNOMEM was introduced in bison 3.81, so define it as YYABORT for older +versions, which should provide the previous perf behaviour. + +Cc: Adrian Hunter +Cc: Ian Rogers +Cc: Jiri Olsa +Cc: Namhyung Kim +Signed-off-by: Arnaldo Carvalho de Melo +Signed-off-by: Sasha Levin +--- + tools/perf/util/Build | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/tools/perf/util/Build b/tools/perf/util/Build +index 96f4ea1d45c56..9c6c4475524b9 100644 +--- a/tools/perf/util/Build ++++ b/tools/perf/util/Build +@@ -301,6 +301,12 @@ ifeq ($(BISON_GE_35),1) + else + bison_flags += -w + endif ++ ++BISON_LT_381 := $(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1\2\3/g') \< 381) ++ifeq ($(BISON_LT_381),1) ++ bison_flags += -DYYNOMEM=YYABORT ++endif ++ + CFLAGS_parse-events-bison.o += $(bison_flags) + CFLAGS_pmu-bison.o += -DYYLTYPE_IS_TRIVIAL=0 $(bison_flags) + CFLAGS_expr-bison.o += -DYYLTYPE_IS_TRIVIAL=0 $(bison_flags) +-- +2.40.1 + diff --git a/queue-6.5/series b/queue-6.5/series index 88e46d5b5af..17fa02ed2cd 100644 --- a/queue-6.5/series +++ b/queue-6.5/series @@ -234,3 +234,4 @@ i2c-designware-fix-__i2c_dw_disable-in-case-master-i.patch loongarch-use-_ul-and-_ull.patch loongarch-set-all-reserved-memblocks-on-node-0-at-in.patch fbdev-sh7760fb-depend-on-fb-y.patch +perf-build-define-yynomem-as-yynoabort-for-bison-3.8.patch