I am having difficulties applying a patch and want to turn it into a
learning experience for me. I tried to apply this patch using the
following steps:
1. save the email to grundler.eml
2. checkout staging-next branch (HEAD 7cc8243)
3. run 'git am grundler.eml'
Applying: staging: brcm80211: SDIO/MMC cleanups
error: patch failed: drivers/staging/brcm80211/brcmfmac/dhd_sdio.c:135
error: drivers/staging/brcm80211/brcmfmac/dhd_sdio.c: patch does not apply
Patch failed at 0001 staging: brcm80211: SDIO/MMC cleanups
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
The git documentation on the git am command is not very elaborate. I
investigated the issue and checked following:
1. line 135 in dhd_sdio.c in the patch does match line 135 in my checked
out branch.
2. did 'git hash-object'
$ git hash-object drivers/staging/brcm80211/brcmfmac/dhd_sdio.c
0c248aa43a37cfd1701f97988ec7cf4ff76a2789What could be the problem?