[PATCH next V2] PCI: brmstb: Fix type mismatch for num_inbound_wins in brcm_pcie_get_inbound_wins

Krzysztof Wilczyński kw at linux.com
Sat Sep 7 09:46:13 PDT 2024


Hello,

> Change num_inbound_wins from u8 to int to correctly handle
> potential negative error codes returned by brcm_pcie_get_inbound_wins().
> The u8 type was inappropriate for capturing the function's return value,
> which can include error codes.

I squashed with the current code on the controller/brcmstb branch, see:

  - https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=controller/brcmstb&id=ae6476c6de187bea90c729e3e0188143300fa671

And credited you via the Co-developed-by tag such that you get credit for
fixing this issue.  Thank you, by the way.

There is no Fixes: tag as this code is not yet merged into the mainline.

	Krzysztof



More information about the linux-arm-kernel mailing list