Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2019-01-07 11:21:25 +0100
committerMichal Kubecek <mkubecek@suse.cz>2019-01-07 11:21:25 +0100
commitea6d6e304e7d2cff367ad36f2fce272ad51cda9d (patch)
treea6cc9853021e3b3b9b30553ddd940c2b0ac709fe
parent6a4ceaa81b82448326b8cf20b2d7a7ee130fa576 (diff)
vfio_pci: Add local source directory as include.
-rw-r--r--patches.suse/vfio_pci-Add-local-source-directory-as-include.patch33
-rw-r--r--series.conf1
2 files changed, 34 insertions, 0 deletions
diff --git a/patches.suse/vfio_pci-Add-local-source-directory-as-include.patch b/patches.suse/vfio_pci-Add-local-source-directory-as-include.patch
new file mode 100644
index 0000000000..f53f835af6
--- /dev/null
+++ b/patches.suse/vfio_pci-Add-local-source-directory-as-include.patch
@@ -0,0 +1,33 @@
+From: Laura Abbott <labbott@redhat.com>
+Date: Fri, 4 Jan 2019 11:57:14 -0800
+Subject: vfio_pci: Add local source directory as include
+Patch-mainline: Submitted - 20190104
+References: none
+
+Commit 7f92891778df ("vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2]
+subdriver") introduced a trace.h file in the local directory but
+missed adding the local include path, resulting in compilation
+failures with tracepoints:
+
+In file included from drivers/vfio/pci/trace.h:102,
+ from drivers/vfio/pci/vfio_pci_nvlink2.c:29:
+./include/trace/define_trace.h:89:42: fatal error: ./trace.h: No such file or directory
+ #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
+
+Fix this by adjusting the include path.
+
+Fixes: 7f92891778df ("vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] subdriver")
+Signed-off-by: Laura Abbott <labbott@redhat.com>
+Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
+Acked-by: Michal Kubecek <mkubecek@suse.cz>
+---
+ drivers/vfio/pci/Makefile | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/vfio/pci/Makefile
++++ b/drivers/vfio/pci/Makefile
+@@ -1,3 +1,4 @@
++ccflags-y += -I$(src)
+
+ vfio-pci-y := vfio_pci.o vfio_pci_intrs.o vfio_pci_rdwr.o vfio_pci_config.o
+ vfio-pci-$(CONFIG_VFIO_PCI_IGD) += vfio_pci_igd.o
diff --git a/series.conf b/series.conf
index 16494263b8..3ddabcf970 100644
--- a/series.conf
+++ b/series.conf
@@ -348,6 +348,7 @@
########################################################
# Other driver fixes
########################################################
+ patches.suse/vfio_pci-Add-local-source-directory-as-include.patch
########################################################
# Other drivers we have added to the tree