* arduino and antiword is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
21 lines
577 B
Diff
21 lines
577 B
Diff
--- a/acpi_call.c 2017-01-03 18:17:55.000000000 +0100
|
|
+++ b/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,
|