forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-debug/scap-driver: fix test code for HAS_CLASS_CREATE_1
otherwise test will failed because of -Werror=unused-variable, then build will failed w/ kernel 6.4+ because of incorrect parameter of class_create patch has been submited to upstream, see falcosecurity/libs#2058 Signed-off-by: Z. Liu <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
dev-debug/scap-driver/files/0.17.3-fix-kmod-build-on-6.4+.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/driver/configure/CLASS_CREATE_1/test.c b/driver/configure/CLASS_CREATE_1/test.c | ||
index 675113b..72c5406 100644 | ||
--- a/driver/configure/CLASS_CREATE_1/test.c | ||
+++ b/driver/configure/CLASS_CREATE_1/test.c | ||
@@ -21,6 +21,7 @@ MODULE_AUTHOR("the Falco authors"); | ||
static int class_create_test_init(void) | ||
{ | ||
struct class *g_ppm_class = class_create("test"); | ||
+ (void)g_ppm_class; | ||
return 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters