mmc: sdio: Avoid ABI change in 4.9.54
authorBen Hutchings <ben@decadent.org.uk>
Wed, 29 Nov 2017 19:54:22 +0000 (19:54 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 23 Dec 2017 00:39:51 +0000 (00:39 +0000)
commit7d5fb9b1cb543c8841e7ecd54a23d0b4499c7062
treec74223559c4d3ea877e89044feca8628a7226149
parentd10a30bcb132a1816fe230a009209a0adafb6d65
mmc: sdio: Avoid ABI change in 4.9.54

Commit 5ef1ecf060f2 "mmc: sdio: fix alignment issue in struct
sdio_func" changed the type of sdio_func::tmpbuf from array to
pointer.  On 64-bit architectures this also changes the size of the
field.  It appears that tmpbuf is only used by the MMC core, and the
structure is always allocated there.  So put padding in the old
position, move the pointer to the end of the structure, and hide this
from genksyms.

Just in case I missed a user elsewhere, which might end up accessing
memory off the end of an old structure, rename the field to
core_tmpbuf (and update its users in the core).

Gbp-Pq: Topic debian
Gbp-Pq: Name mmc-sdio-avoid-abi-change-in-4.9.54.patch
drivers/mmc/core/sdio_bus.c
drivers/mmc/core/sdio_io.c
include/linux/mmc/sdio_func.h