grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ns8250: Fix incorrect usage of access_size


From: Daniel Kiper
Subject: Re: [PATCH] ns8250: Fix incorrect usage of access_size
Date: Tue, 9 May 2023 16:04:19 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Tue, May 09, 2023 at 01:01:11PM +1000, Benjamin Herrenschmidt wrote:
> access_size is part of a union, so doesn't technically exist for a
> PIO port (ie, not MMIO), but we set it anyways.
>
> This doesn't cause a bug today because the other leg of the union
> doesn't have anything overlapping with it now, but it's bad, I will
> punish myself for writing it that way :-) In the meantime, fix this
> and actually name the struct inside the union for clarity of intent
> and to avoid such issue in the future.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]