[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] uniq:
I just tried myself with 3.1.0.105-106.

So we're left with these errors.

(The warnings about the permissions (100755 != 100644) can be ignored, they should apply fine).

[COLOR="MediumTurquoise"]$ git apply --check ../patch-3.10.105-106[/COLOR]
warning: Makefile has type 100755, expected 100644
[COLOR="DarkRed"]error: patch failed: Makefile:1
error: Makefile: patch does not apply[/COLOR]
warning: arch/arm64/kernel/ptrace.c has type 100755, expected 100644
[COLOR="darkred"]error: patch failed: drivers/acpi/osl.c:173
error: drivers/acpi/osl.c: patch does not apply[/COLOR]
warning: drivers/char/Kconfig has type 100755, expected 100644
[COLOR="darkred"]error: patch failed: drivers/gpu/drm/i915/intel_crt.c:428
error: drivers/gpu/drm/i915/intel_crt.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/intel_display.c:7052
error: drivers/gpu/drm/i915/intel_display.c: patch does not apply
error: patch failed: drivers/gpu/drm/nouveau/nv50_display.c:1253
error: drivers/gpu/drm/nouveau/nv50_display.c: patch does not apply
error: patch failed: drivers/hv/vmbus_drv.c:841
error: drivers/hv/vmbus_drv.c: patch does not apply
error: patch failed: drivers/i2c/busses/i2c-at91.c:371
error: drivers/i2c/busses/i2c-at91.c: patch does not apply
error: patch failed: drivers/input/misc/ims-pcu.c:1437
error: drivers/input/misc/ims-pcu.c: patch does not apply
error: patch failed: drivers/s390/scsi/zfcp_dbf.c:312
error: drivers/s390/scsi/zfcp_dbf.c: patch does not apply
error: patch failed: drivers/s390/scsi/zfcp_dbf.h:2
error: drivers/s390/scsi/zfcp_dbf.h: patch does not apply
error: patch failed: drivers/s390/scsi/zfcp_erp.c:3
error: drivers/s390/scsi/zfcp_erp.c: patch does not apply
error: patch failed: drivers/s390/scsi/zfcp_ext.h:3
error: drivers/s390/scsi/zfcp_ext.h: patch does not apply
error: patch failed: drivers/s390/scsi/zfcp_fsf.c:1607
error: drivers/s390/scsi/zfcp_fsf.c: patch does not apply
error: patch failed: drivers/s390/scsi/zfcp_fsf.h:3
error: drivers/s390/scsi/zfcp_fsf.h: patch does not apply
error: patch failed: drivers/s390/scsi/zfcp_scsi.c:3
error: drivers/s390/scsi/zfcp_scsi.c: patch does not apply[/COLOR]
warning: drivers/usb/dwc3/gadget.c has type 100755, expected 100644
warning: drivers/usb/gadget/composite.c has type 100755, expected 100644
[COLOR="darkred"]error: patch failed: drivers/usb/misc/iowarrior.c:792
error: drivers/usb/misc/iowarrior.c: patch does not apply[/COLOR]
warning: drivers/usb/serial/ftdi_sio.c has type 100755, expected 100644
warning: drivers/video/fbcmap.c has type 100755, expected 100644
[COLOR="darkred"]error: patch failed: drivers/video/fbcmap.c:187
error: drivers/video/fbcmap.c: patch does not apply[/COLOR]
warning: fs/block_dev.c has type 100755, expected 100644
warning: fs/exec.c has type 100755, expected 100644
warning: fs/ext4/inline.c has type 100755, expected 100644
warning: kernel/sched/core.c has type 100755, expected 100644
warning: mm/hugetlb.c has type 100755, expected 100644
warning: mm/page_alloc.c has type 100755, expected 100644
[COLOR="darkred"]error: patch failed: net/ceph/osdmap.c:870
error: net/ceph/osdmap.c: patch does not apply[/COLOR]
warning: net/core/sock.c has type 100755, expected 100644
[COLOR="darkred"]error: patch failed: net/ipv4/inet_connection_sock.c:688
error: net/ipv4/inet_connection_sock.c: patch does not apply
error: patch failed: net/ipv4/netfilter/arp_tables.c:1309
error: net/ipv4/netfilter/arp_tables.c: patch does not apply
error: patch failed: net/ipv4/ping.c:135
error: net/ipv4/ping.c: patch does not apply[/COLOR]
warning: net/ipv4/tcp.c has type 100755, expected 100644
warning: net/ipv4/tcp_ipv4.c has type 100755, expected 100644
[COLOR="darkred"]error: patch failed: net/packet/af_packet.c:3384
error: net/packet/af_packet.c: patch does not apply
error: patch failed: net/unix/garbage.c:152
error: net/unix/garbage.c: patch does not apply[/COLOR]
warning: security/keys/process_keys.c has type 100755, expected 100644
warning: security/selinux/hooks.c has type 100755, expected 100644
[COLOR="darkred"]error: patch failed: virt/kvm/kvm_main.c:607
error: virt/kvm/kvm_main.c: patch does not apply[/COLOR]

A little bit better now. This reduces the numbers of errors/warning by 4 less.:

git apply --check --ignore-space-change --ignore-whitespace ../patch-3.10.105-106

diff error-105-106 error-105-106-ignore-ws
63,66d62
< warning: security/keys/process_keys.c has type 100755, expected 100644
< warning: security/selinux/hooks.c has type 100755, expected 100644
< error: patch failed: virt/kvm/kvm_main.c:607
< error: virt/kvm/kvm_main.c: patch does not apply

23 Errors left.

---

What I can see when checking the error below, is that there are no changes. It's already good/patched! :)

error: patch failed: drivers/acpi/osl.c:173
error: drivers/acpi/osl.c: patch does not apply

Which might be the case with the rest of the errors, but needs more investigation.

So I tried the following:

$ git apply --summary ../patch-3.10.105-106
create mode 100644 crypto/memneq.c

As you can see there is only 1 change/creation it will perform.

I think, in this case, it's better/easier to use the following.

And hit "y" when asked for

Reversed (or previously applied) patch detected! Assume -R? [n]

.

$ patch -p1 < ../patch-3.10.105-106