diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-01-18 17:04:48 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-01-19 15:44:15 +0100 |
commit | 77f7d9823da97af302ebf23358c17919f3d62bdd (patch) | |
tree | 7c4e238d180a6b5e996848b54cdf54127bee32e1 /dev-util/scap-driver/files/0.29.3-fix-kmod-build-on-6.2+.patch | |
parent | Move {dev-util → dev-debug}/systemtap (diff) | |
download | gentoo-77f7d9823da97af302ebf23358c17919f3d62bdd.tar.gz gentoo-77f7d9823da97af302ebf23358c17919f3d62bdd.tar.bz2 gentoo-77f7d9823da97af302ebf23358c17919f3d62bdd.zip |
Move {dev-util → dev-debug}/scap-driver
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/34882
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-util/scap-driver/files/0.29.3-fix-kmod-build-on-6.2+.patch')
-rw-r--r-- | dev-util/scap-driver/files/0.29.3-fix-kmod-build-on-6.2+.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/dev-util/scap-driver/files/0.29.3-fix-kmod-build-on-6.2+.patch b/dev-util/scap-driver/files/0.29.3-fix-kmod-build-on-6.2+.patch deleted file mode 100644 index 39476feef051..000000000000 --- a/dev-util/scap-driver/files/0.29.3-fix-kmod-build-on-6.2+.patch +++ /dev/null @@ -1,44 +0,0 @@ - - -Bug: https://bugs.gentoo.org/895868 -Source: https://github.com/falcosecurity/libs/commit/b8ec3e8637c850066d01543616fe413e8deb9e1f - -From b8ec3e8637c850066d01543616fe413e8deb9e1f Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= <holger@applied-asynchrony.com> -Date: Tue, 21 Feb 2023 22:08:23 +0100 -Subject: [PATCH] fix(driver): fix build on linux-6.2 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Attributes in "struct device*" are now const, so add a matching prototype -for ppm_devnode(). - -Fixes #918 - -Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> ---- - driver/main.c | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/driver/main.c b/driver/main.c -index 197933b9ce..6dc3374fc1 100644 ---- a/driver/main.c -+++ b/driver/main.c -@@ -2662,11 +2662,15 @@ static int get_tracepoint_handles(void) - #endif - - #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 20) -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0) -+static char *ppm_devnode(const struct device *dev, umode_t *mode) -+#else - #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) - static char *ppm_devnode(struct device *dev, umode_t *mode) - #else - static char *ppm_devnode(struct device *dev, mode_t *mode) --#endif -+#endif /* LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0) */ -+#endif /* LINUX_VERSION_CODE > KERNEL_VERSION(6, 2, 0) */ - { - if (mode) { - *mode = 0400; |