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, 14 Jun 2021 11:57:42 +0000 (13:57 +0200)
commit706998e70104d93d7e137b92ff0c216aee66c0dd
tree9de23b36803a446e0ddc19c87c2c07852166eb02
parent91445d5eed6b19d6d31506fb7c3f65e9acc175c5
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