diff mbox series

[v10,10/10] fix armv7 compilation warning

Message ID 20230807151735.84093-11-eajames@linux.ibm.com
State New
Headers show
Series None | expand

Commit Message

Eddie James Aug. 7, 2023, 3:17 p.m. UTC
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
---
 lib/tpm-v2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ilias Apalodimas Aug. 7, 2023, 3:50 p.m. UTC | #1
Hi Eddie,

On Mon, 7 Aug 2023 at 18:18, Eddie James <eajames@linux.ibm.com> wrote:
>
> From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
> ---
>  lib/tpm-v2.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c
> index d22e21985b..bd0fb078dc 100644
> --- a/lib/tpm-v2.c
> +++ b/lib/tpm-v2.c
> @@ -671,7 +671,7 @@ __weak int tcg2_platform_get_log(struct udevice *dev, void **addr, u32 *size)
>         } else {
>                 struct ofnode_phandle_args args;
>                 phys_addr_t a;
> -               phys_size_t s;
> +               fdt_size_t s;

It's been a while since I fixed this, but iirc this had to be squashed
to your changes?

Cheers
/Ilias
>
>                 if (dev_read_phandle_with_args(dev, "memory-region", NULL, 0,
>                                                0, &args))
> --
> 2.39.3
>
Eddie James Aug. 7, 2023, 5:09 p.m. UTC | #2
On 8/7/23 10:50, Ilias Apalodimas wrote:
> Hi Eddie,
>
> On Mon, 7 Aug 2023 at 18:18, Eddie James <eajames@linux.ibm.com> wrote:
>> From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
>>
>> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
>> ---
>>   lib/tpm-v2.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c
>> index d22e21985b..bd0fb078dc 100644
>> --- a/lib/tpm-v2.c
>> +++ b/lib/tpm-v2.c
>> @@ -671,7 +671,7 @@ __weak int tcg2_platform_get_log(struct udevice *dev, void **addr, u32 *size)
>>          } else {
>>                  struct ofnode_phandle_args args;
>>                  phys_addr_t a;
>> -               phys_size_t s;
>> +               fdt_size_t s;
> It's been a while since I fixed this, but iirc this had to be squashed
> to your changes?


Oh, ok, I can do that.

Thanks,

Eddie


>
> Cheers
> /Ilias
>>                  if (dev_read_phandle_with_args(dev, "memory-region", NULL, 0,
>>                                                 0, &args))
>> --
>> 2.39.3
>>
diff mbox series

Patch

diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c
index d22e21985b..bd0fb078dc 100644
--- a/lib/tpm-v2.c
+++ b/lib/tpm-v2.c
@@ -671,7 +671,7 @@  __weak int tcg2_platform_get_log(struct udevice *dev, void **addr, u32 *size)
 	} else {
 		struct ofnode_phandle_args args;
 		phys_addr_t a;
-		phys_size_t s;
+		fdt_size_t s;
 
 		if (dev_read_phandle_with_args(dev, "memory-region", NULL, 0,
 					       0, &args))