-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(driver): use configure system to build class_create with a single…
… parameter Address RHEL 9 backport of class_create signature change introduced in kernel 6.4 git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1aaba11da9aa7d7d6b52a74d45b31cac118295a1 Signed-off-by: Angelo Puglisi <[email protected]>
- Loading branch information
1 parent
151b277
commit 9f75998
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
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,32 @@ | ||
/* | ||
Copyright (C) 2024 The Falco Authors. | ||
This file is dual licensed under either the MIT or GPL 2. See MIT.txt | ||
or GPL2.txt for full copies of the license. | ||
*/ | ||
|
||
/* | ||
* Check that `class_create` builds with only a single parameter | ||
* See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1aaba11da9aa7d7d6b52a74d45b31cac118295a1 | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/device.h> | ||
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_AUTHOR("the Falco authors"); | ||
|
||
static int class_create_test_init(void) | ||
{ | ||
struct class *g_ppm_class = class_create("test"); | ||
return 0; | ||
} | ||
|
||
static void class_create_test_exit(void) | ||
{ | ||
} | ||
|
||
module_init(class_create_test_init); | ||
module_exit(class_create_test_exit); |
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