From 9edf16c51c68048e51294ddea1e266296098463e Mon Sep 17 00:00:00 2001 From: Lon Willett Date: Tue, 31 Mar 2020 11:34:50 +0200 Subject: [PATCH] acpi_call-dkms: fix to compile with kernel 5.6 --- srcpkgs/acpi_call-dkms/patches/linux5.6.patch | 21 +++++++++++++++++++ srcpkgs/acpi_call-dkms/template | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/acpi_call-dkms/patches/linux5.6.patch diff --git a/srcpkgs/acpi_call-dkms/patches/linux5.6.patch b/srcpkgs/acpi_call-dkms/patches/linux5.6.patch new file mode 100644 index 00000000000..507d7432606 --- /dev/null +++ b/srcpkgs/acpi_call-dkms/patches/linux5.6.patch @@ -0,0 +1,21 @@ +--- acpi_call.c.orig 2017-01-03 18:17:55.000000000 +0100 ++++ acpi_call.c 2020-03-31 10:35:40.493575868 +0200 +@@ -347,11 +347,18 @@ + return ret; + } + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0) ++static struct proc_ops proc_acpi_operations = { ++ .proc_read = acpi_proc_read, ++ .proc_write = acpi_proc_write, ++}; ++#else + static struct file_operations proc_acpi_operations = { + .owner = THIS_MODULE, + .read = acpi_proc_read, + .write = acpi_proc_write, + }; ++#endif + + #else + static int acpi_proc_read(char *page, char **start, off_t off, diff --git a/srcpkgs/acpi_call-dkms/template b/srcpkgs/acpi_call-dkms/template index 4697cbaec7c..a5865207b47 100644 --- a/srcpkgs/acpi_call-dkms/template +++ b/srcpkgs/acpi_call-dkms/template @@ -1,7 +1,7 @@ # Template file for 'acpi_call-dkms' pkgname=acpi_call-dkms version=1.2.0 -revision=2 +revision=3 wrksrc=acpi_call-${version} archs="i686 x86_64*" short_desc="Kernel module allowing calls to ACPI methods through /proc/acpi/call"