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>
Sun, 3 Dec 2017 19:41:55 +0000 (19:41 +0000)
commit807f6521ff5c2ff5385b8fbc51fd2715af03c3c2
treea88339dd6132616849740dd1c10e9d9378511312
parent25ecd6c4664edb76e8a039544c6649d9b0b5a4e3
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