]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: mmc_spi: Imply container_of() to be no-op
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 28 May 2021 11:21:27 +0000 (14:21 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 31 May 2021 10:12:31 +0000 (12:12 +0200)
commit92df2ba88355a1e256b0c53d1886e5c6f6e5e6cd
tree35ba0b0a78ff48c1b251e067565e527aa57cd477
parent4651bf5ff39bd29f36830e2cb046e87c890a0cdc
mmc: mmc_spi: Imply container_of() to be no-op

Since we don't use structure field layout randomization
the manual shuffling can affect some macros, in particular
container_of() against struct of_mmc_spi, which becomes
a no-op when pdata member is the first one in the structure.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210528112127.71738-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/of_mmc_spi.c