Re: [patch V2 01/40] irqchip/irq-mvebu-icu: Fix works by chance pointer assignment
From: Marc Zyngier
Date: Thu Nov 24 2022 - 07:50:39 EST
On Mon, 21 Nov 2022 14:39:29 +0000,
Thomas Gleixner <tglx@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx>
> Cc: Andrew Lunn <andrew@xxxxxxx>
> Cc: Gregory Clement <gregory.clement@xxxxxxxxxxx>
> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx>
Acked-by: Marc Zyngier <maz@xxxxxxxxxx>
M.
--
Without deviation from the norm, progress is not possible.