mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
acpi_call-dkms: fix to compile with kernel 5.6
This commit is contained in:
parent
563cc7c00b
commit
b8bdc8788e
2 changed files with 24 additions and 3 deletions
21
srcpkgs/acpi_call-dkms/patches/linux5.6.patch
Normal file
21
srcpkgs/acpi_call-dkms/patches/linux5.6.patch
Normal file
|
@ -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,
|
|
@ -1,12 +1,12 @@
|
||||||
# Template file for 'acpi_call-dkms'
|
# Template file for 'acpi_call-dkms'
|
||||||
pkgname=acpi_call-dkms
|
pkgname=acpi_call-dkms
|
||||||
version=1.2.0
|
version=1.2.0
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc=acpi_call-${version}
|
|
||||||
archs="i686 x86_64*"
|
archs="i686 x86_64*"
|
||||||
|
wrksrc=acpi_call-${version}
|
||||||
short_desc="Kernel module allowing calls to ACPI methods through /proc/acpi/call"
|
short_desc="Kernel module allowing calls to ACPI methods through /proc/acpi/call"
|
||||||
maintainer="Daniel A. Maierhofer <git@damadmai.at>"
|
maintainer="Daniel A. Maierhofer <git@damadmai.at>"
|
||||||
license="GPL-3"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://github.com/damadmai/acpi_call"
|
homepage="https://github.com/damadmai/acpi_call"
|
||||||
distfiles="$homepage/archive/v$version.tar.gz"
|
distfiles="$homepage/archive/v$version.tar.gz"
|
||||||
checksum=c48a0a8768d657a8da7b59d7dbf6276554313fa6a0cb012fa4cf85a77e55f44b
|
checksum=c48a0a8768d657a8da7b59d7dbf6276554313fa6a0cb012fa4cf85a77e55f44b
|
||||||
|
|
Loading…
Add table
Reference in a new issue