[PATCH] common: spl: spl_dfu.c: Fix warning associated with PCI subclass_code
Mattijs Korpershoek
mkorpershoek at kernel.org
Thu Mar 12 09:59:52 CET 2026
Hi,
On Thu, 05 Mar 2026 16:08:14 +0530, Siddharth Vadapalli wrote:
> The subclass_code member of the pci_ep_header structure is a 1-byte
> field. The macro PCI_CLASS_MEMORY_RAM is a concetation of baseclass_code
> and subclass_code as follows:
> PCI_BASE_CLASS_MEMORY: 0x05
> Subclass Code for RAM: 0x00
> PCI_CLASS_MEMORY_RAM: 0x0500
> Hence, instead of extracting it via an implicity type conversion from int
> to u8 which throws a warning, explicitly mask the bits to extract the
> subclass_code.
>
> [...]
Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu)
[1/1] common: spl: spl_dfu.c: Fix warning associated with PCI subclass_code
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/433a17aca15481cde866a9bc636b61584360fbb3
--
Mattijs
More information about the U-Boot
mailing list