mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
91445d5eed
commit
706998e701
@ -22,8 +22,8 @@
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
struct of_mmc_spi {
|
||||
int detect_irq;
|
||||
struct mmc_spi_platform_data pdata;
|
||||
int detect_irq;
|
||||
};
|
||||
|
||||
static struct of_mmc_spi *to_of_mmc_spi(struct device *dev)
|
||||
|
Loading…
Reference in New Issue
Block a user