Skip to content

Commit 26f0ed1

Browse files
authored
Merge pull request #13 from Wal33D/codex/fix-gpl-incompatible-module-error
Fix license for workqueue module
2 parents 426fc91 + 58d2c4a commit 26f0ed1

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

LICENSE

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
2222

23-
All files in this repository, including the kernel modules in the `src`
24-
directory, are licensed under the MIT License.
23+
All files in this repository are licensed under the MIT License except
24+
`src/kernel_workqueue_module.c`, which is licensed under the GNU General
25+
Public License (GPL) because it relies on GPL-only kernel symbols.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,6 @@ Encountering challenges or have questions? Open an issue in our issue tracker fo
102102

103103
## License
104104

105-
All source code and documentation in this repository are released under the [MIT License](LICENSE).
105+
All source code and documentation in this repository are released under the [MIT License](LICENSE),
106+
except for `src/kernel_workqueue_module.c` which is licensed under the GNU
107+
General Public License (GPL) because it uses GPL-only kernel symbols.

src/kernel_workqueue_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Kernel Workqueue Demo Module
33
* Author: Wal33D
4-
* License: MIT
4+
* License: GPL
55
*
66
* This module illustrates the use of kernel workqueues to manage deferred tasks.
77
* It initializes a workqueue and schedules a work item that periodically logs a
@@ -84,6 +84,6 @@ module_init(workqueue_demo_init);
8484
module_exit(workqueue_demo_exit);
8585

8686
// Set module metadata
87-
MODULE_LICENSE("MIT");
87+
MODULE_LICENSE("GPL");
8888
MODULE_AUTHOR(DRIVER_AUTHOR);
8989
MODULE_DESCRIPTION(DRIVER_DESC);

0 commit comments

Comments
 (0)