[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9c40bcca-eee3-43b7-8b80-09a0efaa409f@163.com>
Date: Mon, 6 Jan 2025 21:56:07 +0800
From: Hans Zhang <18255117159@....com>
To: Niklas Cassel <cassel@...nel.org>
Cc: manivannan.sadhasivam@...aro.org, kw@...ux.com, kishon@...nel.org,
arnd@...db.de, gregkh@...uxfoundation.org, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org, rockswang7@...il.com
Subject: Re: [v8] misc: pci_endpoint_test: Fix overflow of bar_size
On 2025/1/6 19:49, Niklas Cassel wrote:
>>
>> Signed-off-by: Hans Zhang <18255117159@....com>
>> Reviewed-by: Niklas Cassel <cassel@...nel.org>
>> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
>
> When significantly changing the patch from one version to another,
> (as in this case), you are supposed to drop the Reviewed-by tags.
Okay, i will remove the reviewer.
>
> Doing a:
> $ git grep -A 10 "IS_ENABLED(CONFIG_PHYS_ADDR_T_64BIT"
> does not show very many hits, which suggests that this is not the proper
> way to solve this.
>
> I don't know the proper solution to this. How is resource_size_t handled
> in other PCI driver when being built on with 32-bit PHYS_ADDR_T ?
>
> Can't you just cast the resource_size_t to u64 before doing the division?
>
Thank you Niklas. I'll try it.
Regards
Hans
Powered by blists - more mailing lists