mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Boot] Add optional patch to remove Linux kernel DRM (EXPORT_SYMBOL_GPL)
This commit is contained in:
parent
94aaf0b08b
commit
2be5863af8
2 changed files with 21 additions and 0 deletions
12
remove-kernel-drm.patch
Normal file
12
remove-kernel-drm.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/include/linux/export.h b/include/linux/export.h
|
||||
index 3f31ced0d977..dacee5534926 100644
|
||||
--- a/include/linux/export.h
|
||||
+++ b/include/linux/export.h
|
||||
@@ -150,5 +150,5 @@ struct kernel_symbol {
|
||||
#define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
|
||||
-#define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
|
||||
+#define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "")
|
||||
#define EXPORT_SYMBOL_NS(sym, ns) __EXPORT_SYMBOL(sym, "", __stringify(ns))
|
||||
-#define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "_gpl", __stringify(ns))
|
||||
+#define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "", __stringify(ns))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue