--- /dev/null
+--- linux-gpib-4.3.6/linux-gpib-kernel-4.3.6/drivers/gpib/pc2/pc2_init.c~ 2022-08-22 18:07:00.000000000 +0200
++++ linux-gpib-4.3.6/linux-gpib-kernel-4.3.6/drivers/gpib/pc2/pc2_init.c 2023-07-31 10:51:41.010507617 +0200
+@@ -25,6 +25,7 @@
+ #include <asm-generic/dma.h>
+ #include <linux/string.h>
+ #include <linux/init.h>
++#include <linux/dma-mapping.h>
+
+ MODULE_LICENSE("GPL");
+
#
# Conditional build:
%bcond_without kernel # kernel modules
-%bcond_with drivers_isa # ISA kernel drivers [ix86 only]
+%bcond_without drivers_isa # ISA kernel drivers [ix86 only]
%bcond_without drivers_usb # USB kernel drivers
%bcond_without userspace # userspace packages
%bcond_without verbose # verbose modules build (V=1)
Patch9: kernel-5.10.patch
Patch10: pkgconfig-version.patch
Patch11: linux-gpib-guile3.patch
+Patch12: isa-dma.patch
URL: http://linux-gpib.sourceforge.net/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
%define build_kernel_pkg()\
%{__make} VERBOSE=1 LINUX_SRCDIR=%{_kernelsrcdir} clean\
-%{__make} VERBOSE=1 LINUX_SRCDIR=%{_kernelsrcdir} %{?with_drivers_isa:ENABLE_ISA=m}%{!?with_drivers_isa:ENABLE_ISA=n}\
+%{__make} VERBOSE=1 LINUX_SRCDIR=%{_kernelsrcdir}\
cd drivers/gpib\
%if %{_kernel_version_code} < %{_kernel_version_magic 5 10 0}\
%if %{with drivers_usb}\
%ifarch %{ix86}
%patch8 -p1
%endif
+%patch12 -p1
%endif
%build