diff options
Diffstat (limited to 'sys-kernel/nvidia-drivers-dkms/files/390.87-ipmi_user.patch')
-rw-r--r-- | sys-kernel/nvidia-drivers-dkms/files/390.87-ipmi_user.patch | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/sys-kernel/nvidia-drivers-dkms/files/390.87-ipmi_user.patch b/sys-kernel/nvidia-drivers-dkms/files/390.87-ipmi_user.patch index 03aa4287..36228bc4 100644 --- a/sys-kernel/nvidia-drivers-dkms/files/390.87-ipmi_user.patch +++ b/sys-kernel/nvidia-drivers-dkms/files/390.87-ipmi_user.patch @@ -1,20 +1,37 @@ ---- a/kernel/nvidia/os-interface.c 2018-12-27 11:57:21.788109696 +1100 -+++ b/kernel/nvidia/os-interface.c 2018-12-27 11:59:45.300394369 +1100 -@@ -1697,7 +1697,7 @@ +diff -Nur a/kernel/nvidia/os-interface.c b/kernel/nvidia/os-interface.c +--- a/kernel/nvidia/os-interface.c 2018-08-22 01:55:22.000000000 +0100 ++++ b/kernel/nvidia/os-interface.c 2019-02-10 03:28:33.359055441 +0000 +@@ -16,6 +16,8 @@ + + #include "nv-gpu-numa.h" + ++#include <linux/version.h> ++ + #define MAX_ERROR_STRING 512 + static char nv_error_string[MAX_ERROR_STRING]; + nv_spinlock_t nv_error_string_lock; +@@ -1697,7 +1699,12 @@ struct nv_ipmi_softc { -- ipmi_user_t p_user; // ptr to ipmi_msghandler user structure ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) + struct ipmi_user *p_user; // ptr to ipmi_msghandler user structure ++#else + ipmi_user_t p_user; // ptr to ipmi_msghandler user structure ++#endif ++ spinlock_t msg_lock; struct list_head msgs; NvU32 seqNum; //request sequence number -@@ -1706,7 +1706,7 @@ +@@ -1706,7 +1713,11 @@ static inline int nv_ipmi_set_my_address ( -- ipmi_user_t user, ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) + struct ipmi_user *user, ++#else + ipmi_user_t user, ++#endif unsigned char address ) - {
\ No newline at end of file + { |