Re: [patch V2 01/40] irqchip/irq-mvebu-icu: Fix works by chance pointer assignment
From: Marc Zyngier <maz@kernel.org>
Date: 2022-11-24 12:50:39
Also in:
linux-pci, lkml
From: Marc Zyngier <maz@kernel.org>
Date: 2022-11-24 12:50:39
Also in:
linux-pci, lkml
On Mon, 21 Nov 2022 14:39:29 +0000, Thomas Gleixner [off-list ref] 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 <redacted> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Gregory Clement <gregory.clement@bootlin.com> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Marc Zyngier <maz@kernel.org> M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel