diff options
author | Daniel Playfair Cal | 2017-05-08 15:08:49 +1000 |
---|---|---|
committer | Daniel Playfair Cal | 2017-05-08 15:08:49 +1000 |
commit | b684890639a54f46043733be5b6e25fdce09e7f4 (patch) | |
tree | 77a09e5350f68631f0cdf6b4a941391363e342cc /kernel_4.11.patch | |
parent | 463195bfc4099d65eec2696c0e889e928e1492f9 (diff) | |
download | aur-nvidia-llb-dkms.tar.gz |
375.66-2 add patch for kernel 4.11
Diffstat (limited to 'kernel_4.11.patch')
-rw-r--r-- | kernel_4.11.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/kernel_4.11.patch b/kernel_4.11.patch new file mode 100644 index 000000000000..989095e1d8b9 --- /dev/null +++ b/kernel_4.11.patch @@ -0,0 +1,24 @@ +--- a/nvidia-drm/nvidia-drm-linux.c ++++ b/nvidia-drm/nvidia-drm-linux.c +@@ -20,6 +20,8 @@ + * DEALINGS IN THE SOFTWARE. + */ + ++#include <linux/version.h> ++ + #include <linux/module.h> + #include <linux/slab.h> + #include <linux/err.h> +@@ -196,7 +198,11 @@ + module_exit(nv_linux_drm_exit); + + #if defined(MODULE_LICENSE) ++#if LINUX_VERSION_CODE > KERNEL_VERSION(4, 10, 0) ++ MODULE_LICENSE("Dual MIT/GPL"); ++#else + MODULE_LICENSE("MIT"); ++#endif + #endif + #if defined(MODULE_INFO) + MODULE_INFO(supported, "external"); + |