diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-10-09 16:44:30 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-10-19 21:19:10 +0200 |
commit | d94c59f7ebaddf3ea041d4a8eb1687e7709437df (patch) | |
tree | 68b943fcc7e7591aaf08c65ccf96d94718f58310 /target/linux/lantiq/files-4.14 | |
parent | ac56d253618c8c60794496518f2522863f24dedf (diff) | |
download | upstream-d94c59f7ebaddf3ea041d4a8eb1687e7709437df.tar.gz upstream-d94c59f7ebaddf3ea041d4a8eb1687e7709437df.tar.bz2 upstream-d94c59f7ebaddf3ea041d4a8eb1687e7709437df.zip |
oxnas: fix qc_prep return in sata driver after kernel 4.14.200
This fixes a regression after a kernel change in 4.14.200 [1] that
led to build failure on oxnas/ox820:
drivers/ata/sata_oxnas.c:2238:13: error: initialization of
'enum ata_completion_errors (*)(struct ata_queued_cmd *)'
from incompatible pointer type
'void (*)(struct ata_queued_cmd *)' [-Werror=incompatible-pointer-types]
.qc_prep = sata_oxnas_qc_prep,
^~~~~~~~~~~~~~~~~~
drivers/ata/sata_oxnas.c:2238:13: note:
(near initialization for 'sata_oxnas_ops.qc_prep')
Our local driver is changed the same way as prototyped in the
kernel patch, i.e. return type is changed and AC_ERR_OK return
value is added.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=306a1c5b5683c1d37565e575386139a64bdbec6f
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit f6ca57e4f40528a8a0103c9f0e9647a2e11d10c3)
Diffstat (limited to 'target/linux/lantiq/files-4.14')
0 files changed, 0 insertions, 0 deletions