Re: [v5] misc: pci_endpoint_test: Fix overflow of bar_size

Bjorn Helgaas
2025-01-03T22:12:24Z

On Fri, Jan 03, 2025 at 04:02:00PM -0600, Bjorn Helgaas wrote:
> On Wed, Jan 01, 2025 at 11:15:09PM +0800, Hans Zhang wrote:
> > With 8GB BAR2, running pcitest -b 2 fails with "TEST FAILED".
> >
> > The return value of the `pci_resource_len` interface is not an integer.
> > Using `pcitest` with an 8GB BAR2, the bar_size of integer type will
> > overflow.
> > Change the data type of bar_size from integer to resource_size_t, to fix
> > the above issue.
>
> Add blank lines between paragraphs.
>
> Looks good to me.

Apart from the kernel test robot error [1], of course. Obviously that
needs to be resolved.

[1] https://lore.kernel.org/r/202501021000.7Cwcopot-lkp@intel.com