]> code.ossystems Code Review - openembedded-core.git/commitdiff
lttng-modules: Drop gcc7 related patch
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Jan 2021 12:52:16 +0000 (12:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Jan 2021 11:27:59 +0000 (11:27 +0000)
We'd appear to be past the need for a gcc7 patch from 3 years ago now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/lttng/lttng-modules/BUILD_RUNTIME_BUG_ON-vs-gcc7.patch [deleted file]
meta/recipes-kernel/lttng/lttng-modules_2.12.4.bb

diff --git a/meta/recipes-kernel/lttng/lttng-modules/BUILD_RUNTIME_BUG_ON-vs-gcc7.patch b/meta/recipes-kernel/lttng/lttng-modules/BUILD_RUNTIME_BUG_ON-vs-gcc7.patch
deleted file mode 100644 (file)
index 7606360..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-From ab07574ef90fa510f293c37897d577066a88fe0d Mon Sep 17 00:00:00 2001
-From: Nathan Lynch <nathan_lynch@mentor.com>
-Date: Tue, 25 Apr 2017 16:26:57 -0500
-Subject: [PATCH] BUILD_RUNTIME_BUG_ON vs gcc7
-
-Avoid using LTTng's BUILD_RUNTIME_BUG_ON macro, as it appears to run
-into a similar problem as Linux experienced with ilog2.
-
-See:
-https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=474c90156c8dcc2fa815e6716cc9394d7930cb9c
-https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72785
-
-Upstream-Status: Pending
-Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
----
- lib/align.h | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/lib/align.h b/lib/align.h
-index 5b91ae87410b..5e134cd485fe 100644
---- a/lib/align.h
-+++ b/lib/align.h
-@@ -48,7 +48,7 @@
-  */
- #define offset_align(align_drift, alignment)                                 \
-       ({                                                                     \
--              BUILD_RUNTIME_BUG_ON((alignment) == 0                          \
-+              BUG_ON((alignment) == 0                                        \
-                                  || ((alignment) & ((alignment) - 1)));      \
-               (((alignment) - (align_drift)) & ((alignment) - 1));           \
-       })
-@@ -63,7 +63,7 @@
-  */
- #define offset_align_floor(align_drift, alignment)                           \
-       ({                                                                     \
--              BUILD_RUNTIME_BUG_ON((alignment) == 0                          \
-+              BUG_ON((alignment) == 0                                        \
-                                  || ((alignment) & ((alignment) - 1)));      \
-               (((align_drift) - (alignment)) & ((alignment) - 1));           \
-       })
--- 
-2.9.3
-
index 3d4e5f5c752139124e607658a5ea55070c44c3d0..73f39317177007712953a7e62261b1d6b3f05644 100644 (file)
@@ -10,7 +10,6 @@ include lttng-platforms.inc
 
 SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \
            file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch \
-           file://BUILD_RUNTIME_BUG_ON-vs-gcc7.patch \
            "
 
 SRC_URI[sha256sum] = "fe66400fa1b85bff1b9ae24419c74e3bb7d358d643eade0594d81b48bd190688"
@@ -34,7 +33,6 @@ LIC_FILES_CHKSUM_class-devupstream = "file://LICENSE;md5=3f882d431dc0f32f1f44c07
 DEFAULT_PREFERENCE_class-devupstream = "-1"
 SRC_URI_class-devupstream = "git://git.lttng.org/lttng-modules;branch=stable-2.12 \
            file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch \
-           file://BUILD_RUNTIME_BUG_ON-vs-gcc7.patch \
            "
 SRCREV_class-devupstream = "be71b60a327d7ad2588abc5cad2861177119972b"
 PV_class-devupstream = "2.12.3+git${SRCPV}"