[patch V2 01/40] irqchip/irq-mvebu-icu: Fix works by chance pointer assignment
Marc Zyngier
maz at kernel.org
Thu Nov 24 04:50:30 PST 2022
On Mon, 21 Nov 2022 14:39:29 +0000,
Thomas Gleixner <tglx at linutronix.de> wrote:
>
> Assigning a void pointer which points to a struct to two different data
> types only works by chance if the second type is the first member of the
> struct.
>
> Replace this works by chance code by using the primary struct pointer.
>
> Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
> Cc: Andrew Lunn <andrew at lunn.ch>
> Cc: Gregory Clement <gregory.clement at bootlin.com>
> Cc: Sebastian Hesselbarth <sebastian.hesselbarth at gmail.com>
Acked-by: Marc Zyngier <maz at kernel.org>
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list