* [PATCH] ia64: fix EFI_DEBUG build
@ 2021-03-22 22:14 Sergei Trofimovich
2021-03-23 8:35 ` Ard Biesheuvel
0 siblings, 1 reply; 8+ messages in thread
From: Sergei Trofimovich @ 2021-03-22 22:14 UTC (permalink / raw)
To: Ard Biesheuvel, linux-efi; +Cc: Sergei Trofimovich, linux-ia64
When enabled local debugging via `#define EFI_DEBUG 1` noticed
build failure:
ia64/kernel/efi.c:564:8: error: 'i' undeclared (first use in this function)
564 | for (i = 0, p = efi_map_start; p < efi_map_end;
| ^
CC: Ard Biesheuvel <ardb@kernel.org>
CC: linux-efi@vger.kernel.org
CC: linux-ia64@vger.kernel.org
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
---
arch/ia64/kernel/efi.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
index c5fe21de46a8..31149e41f9be 100644
--- a/arch/ia64/kernel/efi.c
+++ b/arch/ia64/kernel/efi.c
@@ -415,10 +415,10 @@ efi_get_pal_addr (void)
mask = ~((1 << IA64_GRANULE_SHIFT) - 1);
printk(KERN_INFO "CPU %d: mapping PAL code "
- "[0x%lx-0x%lx) into [0x%lx-0x%lx)\n",
- smp_processor_id(), md->phys_addr,
- md->phys_addr + efi_md_size(md),
- vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
+ "[0x%llx-0x%llx) into [0x%llx-0x%llx)\n",
+ smp_processor_id(), md->phys_addr,
+ md->phys_addr + efi_md_size(md),
+ vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
#endif
return __va(md->phys_addr);
}
@@ -560,6 +560,7 @@ efi_init (void)
{
efi_memory_desc_t *md;
void *p;
+ unsigned int i;
for (i = 0, p = efi_map_start; p < efi_map_end;
++i, p += efi_desc_size)
@@ -586,7 +587,7 @@ efi_init (void)
}
printk("mem%02d: %s "
- "range=[0x%016lx-0x%016lx) (%4lu%s)\n",
+ "range=[0x%016llx-0x%016llx) (%4lu%s)\n",
i, efi_md_typeattr_format(buf, sizeof(buf), md),
md->phys_addr,
md->phys_addr + efi_md_size(md), size, unit);
--
2.31.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] ia64: fix EFI_DEBUG build
2021-03-22 22:14 [PATCH] ia64: fix EFI_DEBUG build Sergei Trofimovich
@ 2021-03-23 8:35 ` Ard Biesheuvel
0 siblings, 0 replies; 8+ messages in thread
From: Ard Biesheuvel @ 2021-03-23 8:35 UTC (permalink / raw)
To: Sergei Trofimovich; +Cc: linux-efi, linux-ia64
On Mon, 22 Mar 2021 at 23:16, Sergei Trofimovich <slyfox@gentoo.org> wrote:
>
> When enabled local debugging via `#define EFI_DEBUG 1` noticed
> build failure:
>
> ia64/kernel/efi.c:564:8: error: 'i' undeclared (first use in this function)
> 564 | for (i = 0, p = efi_map_start; p < efi_map_end;
> | ^
>
> CC: Ard Biesheuvel <ardb@kernel.org>
> CC: linux-efi@vger.kernel.org
> CC: linux-ia64@vger.kernel.org
> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
What are the other changes for?
> ---
> arch/ia64/kernel/efi.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
> index c5fe21de46a8..31149e41f9be 100644
> --- a/arch/ia64/kernel/efi.c
> +++ b/arch/ia64/kernel/efi.c
> @@ -415,10 +415,10 @@ efi_get_pal_addr (void)
> mask = ~((1 << IA64_GRANULE_SHIFT) - 1);
>
> printk(KERN_INFO "CPU %d: mapping PAL code "
> - "[0x%lx-0x%lx) into [0x%lx-0x%lx)\n",
> - smp_processor_id(), md->phys_addr,
> - md->phys_addr + efi_md_size(md),
> - vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
> + "[0x%llx-0x%llx) into [0x%llx-0x%llx)\n",
> + smp_processor_id(), md->phys_addr,
> + md->phys_addr + efi_md_size(md),
> + vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
> #endif
> return __va(md->phys_addr);
> }
> @@ -560,6 +560,7 @@ efi_init (void)
> {
> efi_memory_desc_t *md;
> void *p;
> + unsigned int i;
>
> for (i = 0, p = efi_map_start; p < efi_map_end;
> ++i, p += efi_desc_size)
> @@ -586,7 +587,7 @@ efi_init (void)
> }
>
> printk("mem%02d: %s "
> - "range=[0x%016lx-0x%016lx) (%4lu%s)\n",
> + "range=[0x%016llx-0x%016llx) (%4lu%s)\n",
> i, efi_md_typeattr_format(buf, sizeof(buf), md),
> md->phys_addr,
> md->phys_addr + efi_md_size(md), size, unit);
> --
> 2.31.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ia64: fix EFI_DEBUG build
@ 2021-03-23 8:35 ` Ard Biesheuvel
0 siblings, 0 replies; 8+ messages in thread
From: Ard Biesheuvel @ 2021-03-23 8:35 UTC (permalink / raw)
To: Sergei Trofimovich; +Cc: linux-efi, linux-ia64
On Mon, 22 Mar 2021 at 23:16, Sergei Trofimovich <slyfox@gentoo.org> wrote:
>
> When enabled local debugging via `#define EFI_DEBUG 1` noticed
> build failure:
>
> ia64/kernel/efi.c:564:8: error: 'i' undeclared (first use in this function)
> 564 | for (i = 0, p = efi_map_start; p < efi_map_end;
> | ^
>
> CC: Ard Biesheuvel <ardb@kernel.org>
> CC: linux-efi@vger.kernel.org
> CC: linux-ia64@vger.kernel.org
> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
What are the other changes for?
> ---
> arch/ia64/kernel/efi.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
> index c5fe21de46a8..31149e41f9be 100644
> --- a/arch/ia64/kernel/efi.c
> +++ b/arch/ia64/kernel/efi.c
> @@ -415,10 +415,10 @@ efi_get_pal_addr (void)
> mask = ~((1 << IA64_GRANULE_SHIFT) - 1);
>
> printk(KERN_INFO "CPU %d: mapping PAL code "
> - "[0x%lx-0x%lx) into [0x%lx-0x%lx)\n",
> - smp_processor_id(), md->phys_addr,
> - md->phys_addr + efi_md_size(md),
> - vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
> + "[0x%llx-0x%llx) into [0x%llx-0x%llx)\n",
> + smp_processor_id(), md->phys_addr,
> + md->phys_addr + efi_md_size(md),
> + vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
> #endif
> return __va(md->phys_addr);
> }
> @@ -560,6 +560,7 @@ efi_init (void)
> {
> efi_memory_desc_t *md;
> void *p;
> + unsigned int i;
>
> for (i = 0, p = efi_map_start; p < efi_map_end;
> ++i, p += efi_desc_size)
> @@ -586,7 +587,7 @@ efi_init (void)
> }
>
> printk("mem%02d: %s "
> - "range=[0x%016lx-0x%016lx) (%4lu%s)\n",
> + "range=[0x%016llx-0x%016llx) (%4lu%s)\n",
> i, efi_md_typeattr_format(buf, sizeof(buf), md),
> md->phys_addr,
> md->phys_addr + efi_md_size(md), size, unit);
> --
> 2.31.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ia64: fix EFI_DEBUG build
2021-03-23 8:35 ` Ard Biesheuvel
(?)
@ 2021-03-23 17:58 ` Sergei Trofimovich
2021-03-24 12:33 ` Ard Biesheuvel
-1 siblings, 1 reply; 8+ messages in thread
From: Sergei Trofimovich @ 2021-03-23 17:58 UTC (permalink / raw)
To: Ard Biesheuvel; +Cc: linux-efi, linux-ia64, Sergei Trofimovich
On Tue, Mar 23, 2021 at 09:35:13AM +0100, Ard Biesheuvel wrote:
> On Mon, 22 Mar 2021 at 23:16, Sergei Trofimovich <slyfox@gentoo.org> wrote:
> >
> > When enabled local debugging via `#define EFI_DEBUG 1` noticed
> > build failure:
> >
> > ia64/kernel/efi.c:564:8: error: 'i' undeclared (first use in this function)
> > 564 | for (i = 0, p = efi_map_start; p < efi_map_end;
> > | ^
> >
> > CC: Ard Biesheuvel <ardb@kernel.org>
> > CC: linux-efi@vger.kernel.org
> > CC: linux-ia64@vger.kernel.org
> > Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
>
> What are the other changes for?
The rest are fixes for format string mismatch in %lx / unsigned long long.
Should I resend with updated comment or split it to another commit?
They all are hiding under EFI_DEBUG and are not visible by default.
> > ---
> > arch/ia64/kernel/efi.c | 11 ++++++-----
> > 1 file changed, 6 insertions(+), 5 deletions(-)
> >
> > diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
> > index c5fe21de46a8..31149e41f9be 100644
> > --- a/arch/ia64/kernel/efi.c
> > +++ b/arch/ia64/kernel/efi.c
> > @@ -415,10 +415,10 @@ efi_get_pal_addr (void)
> > mask = ~((1 << IA64_GRANULE_SHIFT) - 1);
> >
> > printk(KERN_INFO "CPU %d: mapping PAL code "
> > - "[0x%lx-0x%lx) into [0x%lx-0x%lx)\n",
> > - smp_processor_id(), md->phys_addr,
> > - md->phys_addr + efi_md_size(md),
> > - vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
> > + "[0x%llx-0x%llx) into [0x%llx-0x%llx)\n",
> > + smp_processor_id(), md->phys_addr,
> > + md->phys_addr + efi_md_size(md),
> > + vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
> > #endif
> > return __va(md->phys_addr);
> > }
> > @@ -560,6 +560,7 @@ efi_init (void)
> > {
> > efi_memory_desc_t *md;
> > void *p;
> > + unsigned int i;
> >
> > for (i = 0, p = efi_map_start; p < efi_map_end;
> > ++i, p += efi_desc_size)
> > @@ -586,7 +587,7 @@ efi_init (void)
> > }
> >
> > printk("mem%02d: %s "
> > - "range=[0x%016lx-0x%016lx) (%4lu%s)\n",
> > + "range=[0x%016llx-0x%016llx) (%4lu%s)\n",
> > i, efi_md_typeattr_format(buf, sizeof(buf), md),
> > md->phys_addr,
> > md->phys_addr + efi_md_size(md), size, unit);
> > --
> > 2.31.0
> >
--
Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ia64: fix EFI_DEBUG build
2021-03-23 17:58 ` Sergei Trofimovich
@ 2021-03-24 12:33 ` Ard Biesheuvel
0 siblings, 0 replies; 8+ messages in thread
From: Ard Biesheuvel @ 2021-03-24 12:33 UTC (permalink / raw)
To: Sergei Trofimovich; +Cc: linux-efi, linux-ia64
On Tue, 23 Mar 2021 at 18:58, Sergei Trofimovich <slyfox@gentoo.org> wrote:
>
> On Tue, Mar 23, 2021 at 09:35:13AM +0100, Ard Biesheuvel wrote:
> > On Mon, 22 Mar 2021 at 23:16, Sergei Trofimovich <slyfox@gentoo.org> wrote:
> > >
> > > When enabled local debugging via `#define EFI_DEBUG 1` noticed
> > > build failure:
> > >
> > > ia64/kernel/efi.c:564:8: error: 'i' undeclared (first use in this function)
> > > 564 | for (i = 0, p = efi_map_start; p < efi_map_end;
> > > | ^
> > >
> > > CC: Ard Biesheuvel <ardb@kernel.org>
> > > CC: linux-efi@vger.kernel.org
> > > CC: linux-ia64@vger.kernel.org
> > > Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
> >
> > What are the other changes for?
>
> The rest are fixes for format string mismatch in %lx / unsigned long long.
> Should I resend with updated comment or split it to another commit?
>
> They all are hiding under EFI_DEBUG and are not visible by default.
>
OK, but please describe the purpose of *all* changes in the commit log.
Also, the breakage seems to be caused by
commit 14fb4209094355928d5a742e35afabdf7b404c17
Author: Ard Biesheuvel <ardb@kernel.org>
Date: Mon Jan 20 10:49:11 2020 +0100
efi: Merge EFI system table revision and vendor checks
so you can include a line in the signoff area saying
Fixes: 14fb42090943559 ("efi: Merge EFI system table revision and
vendor checks")
> > > ---
> > > arch/ia64/kernel/efi.c | 11 ++++++-----
> > > 1 file changed, 6 insertions(+), 5 deletions(-)
> > >
> > > diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
> > > index c5fe21de46a8..31149e41f9be 100644
> > > --- a/arch/ia64/kernel/efi.c
> > > +++ b/arch/ia64/kernel/efi.c
> > > @@ -415,10 +415,10 @@ efi_get_pal_addr (void)
> > > mask = ~((1 << IA64_GRANULE_SHIFT) - 1);
> > >
> > > printk(KERN_INFO "CPU %d: mapping PAL code "
> > > - "[0x%lx-0x%lx) into [0x%lx-0x%lx)\n",
> > > - smp_processor_id(), md->phys_addr,
> > > - md->phys_addr + efi_md_size(md),
> > > - vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
> > > + "[0x%llx-0x%llx) into [0x%llx-0x%llx)\n",
> > > + smp_processor_id(), md->phys_addr,
> > > + md->phys_addr + efi_md_size(md),
> > > + vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
> > > #endif
> > > return __va(md->phys_addr);
> > > }
> > > @@ -560,6 +560,7 @@ efi_init (void)
> > > {
> > > efi_memory_desc_t *md;
> > > void *p;
> > > + unsigned int i;
> > >
> > > for (i = 0, p = efi_map_start; p < efi_map_end;
> > > ++i, p += efi_desc_size)
> > > @@ -586,7 +587,7 @@ efi_init (void)
> > > }
> > >
> > > printk("mem%02d: %s "
> > > - "range=[0x%016lx-0x%016lx) (%4lu%s)\n",
> > > + "range=[0x%016llx-0x%016llx) (%4lu%s)\n",
> > > i, efi_md_typeattr_format(buf, sizeof(buf), md),
> > > md->phys_addr,
> > > md->phys_addr + efi_md_size(md), size, unit);
> > > --
> > > 2.31.0
> > >
>
> --
>
> Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ia64: fix EFI_DEBUG build
@ 2021-03-24 12:33 ` Ard Biesheuvel
0 siblings, 0 replies; 8+ messages in thread
From: Ard Biesheuvel @ 2021-03-24 12:33 UTC (permalink / raw)
To: Sergei Trofimovich; +Cc: linux-efi, linux-ia64
On Tue, 23 Mar 2021 at 18:58, Sergei Trofimovich <slyfox@gentoo.org> wrote:
>
> On Tue, Mar 23, 2021 at 09:35:13AM +0100, Ard Biesheuvel wrote:
> > On Mon, 22 Mar 2021 at 23:16, Sergei Trofimovich <slyfox@gentoo.org> wrote:
> > >
> > > When enabled local debugging via `#define EFI_DEBUG 1` noticed
> > > build failure:
> > >
> > > ia64/kernel/efi.c:564:8: error: 'i' undeclared (first use in this function)
> > > 564 | for (i = 0, p = efi_map_start; p < efi_map_end;
> > > | ^
> > >
> > > CC: Ard Biesheuvel <ardb@kernel.org>
> > > CC: linux-efi@vger.kernel.org
> > > CC: linux-ia64@vger.kernel.org
> > > Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
> >
> > What are the other changes for?
>
> The rest are fixes for format string mismatch in %lx / unsigned long long.
> Should I resend with updated comment or split it to another commit?
>
> They all are hiding under EFI_DEBUG and are not visible by default.
>
OK, but please describe the purpose of *all* changes in the commit log.
Also, the breakage seems to be caused by
commit 14fb4209094355928d5a742e35afabdf7b404c17
Author: Ard Biesheuvel <ardb@kernel.org>
Date: Mon Jan 20 10:49:11 2020 +0100
efi: Merge EFI system table revision and vendor checks
so you can include a line in the signoff area saying
Fixes: 14fb42090943559 ("efi: Merge EFI system table revision and
vendor checks")
> > > ---
> > > arch/ia64/kernel/efi.c | 11 ++++++-----
> > > 1 file changed, 6 insertions(+), 5 deletions(-)
> > >
> > > diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
> > > index c5fe21de46a8..31149e41f9be 100644
> > > --- a/arch/ia64/kernel/efi.c
> > > +++ b/arch/ia64/kernel/efi.c
> > > @@ -415,10 +415,10 @@ efi_get_pal_addr (void)
> > > mask = ~((1 << IA64_GRANULE_SHIFT) - 1);
> > >
> > > printk(KERN_INFO "CPU %d: mapping PAL code "
> > > - "[0x%lx-0x%lx) into [0x%lx-0x%lx)\n",
> > > - smp_processor_id(), md->phys_addr,
> > > - md->phys_addr + efi_md_size(md),
> > > - vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
> > > + "[0x%llx-0x%llx) into [0x%llx-0x%llx)\n",
> > > + smp_processor_id(), md->phys_addr,
> > > + md->phys_addr + efi_md_size(md),
> > > + vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
> > > #endif
> > > return __va(md->phys_addr);
> > > }
> > > @@ -560,6 +560,7 @@ efi_init (void)
> > > {
> > > efi_memory_desc_t *md;
> > > void *p;
> > > + unsigned int i;
> > >
> > > for (i = 0, p = efi_map_start; p < efi_map_end;
> > > ++i, p += efi_desc_size)
> > > @@ -586,7 +587,7 @@ efi_init (void)
> > > }
> > >
> > > printk("mem%02d: %s "
> > > - "range=[0x%016lx-0x%016lx) (%4lu%s)\n",
> > > + "range=[0x%016llx-0x%016llx) (%4lu%s)\n",
> > > i, efi_md_typeattr_format(buf, sizeof(buf), md),
> > > md->phys_addr,
> > > md->phys_addr + efi_md_size(md), size, unit);
> > > --
> > > 2.31.0
> > >
>
> --
>
> Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ia64: fix EFI_DEBUG build
2021-03-24 12:33 ` Ard Biesheuvel
@ 2021-03-28 21:22 ` Sergei Trofimovich
-1 siblings, 0 replies; 8+ messages in thread
From: Sergei Trofimovich @ 2021-03-28 21:22 UTC (permalink / raw)
To: Ard Biesheuvel, linux-efi, linux-ia64; +Cc: linux-kernel, Sergei Trofimovich
When enabled local debugging via `#define EFI_DEBUG 1` noticed
build failure:
arch/ia64/kernel/efi.c:564:8: error: 'i' undeclared (first use in this function)
While at it fixed benign string format mismatches visible only
when EFI_DEBUG is enabled:
arch/ia64/kernel/efi.c:589:11:
warning: format '%lx' expects argument of type 'long unsigned int',
but argument 5 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
Fixes: 14fb42090943559 ("efi: Merge EFI system table revision and vendor checks")
CC: Ard Biesheuvel <ardb@kernel.org>
CC: linux-efi@vger.kernel.org
CC: linux-ia64@vger.kernel.org
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
---
Change since v1: mention explicitly format string change
arch/ia64/kernel/efi.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
index c5fe21de46a8..31149e41f9be 100644
--- a/arch/ia64/kernel/efi.c
+++ b/arch/ia64/kernel/efi.c
@@ -415,10 +415,10 @@ efi_get_pal_addr (void)
mask = ~((1 << IA64_GRANULE_SHIFT) - 1);
printk(KERN_INFO "CPU %d: mapping PAL code "
- "[0x%lx-0x%lx) into [0x%lx-0x%lx)\n",
- smp_processor_id(), md->phys_addr,
- md->phys_addr + efi_md_size(md),
- vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
+ "[0x%llx-0x%llx) into [0x%llx-0x%llx)\n",
+ smp_processor_id(), md->phys_addr,
+ md->phys_addr + efi_md_size(md),
+ vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
#endif
return __va(md->phys_addr);
}
@@ -560,6 +560,7 @@ efi_init (void)
{
efi_memory_desc_t *md;
void *p;
+ unsigned int i;
for (i = 0, p = efi_map_start; p < efi_map_end;
++i, p += efi_desc_size)
@@ -586,7 +587,7 @@ efi_init (void)
}
printk("mem%02d: %s "
- "range=[0x%016lx-0x%016lx) (%4lu%s)\n",
+ "range=[0x%016llx-0x%016llx) (%4lu%s)\n",
i, efi_md_typeattr_format(buf, sizeof(buf), md),
md->phys_addr,
md->phys_addr + efi_md_size(md), size, unit);
--
2.31.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2] ia64: fix EFI_DEBUG build
@ 2021-03-28 21:22 ` Sergei Trofimovich
0 siblings, 0 replies; 8+ messages in thread
From: Sergei Trofimovich @ 2021-03-28 21:22 UTC (permalink / raw)
To: Ard Biesheuvel, linux-efi, linux-ia64; +Cc: linux-kernel, Sergei Trofimovich
When enabled local debugging via `#define EFI_DEBUG 1` noticed
build failure:
arch/ia64/kernel/efi.c:564:8: error: 'i' undeclared (first use in this function)
While at it fixed benign string format mismatches visible only
when EFI_DEBUG is enabled:
arch/ia64/kernel/efi.c:589:11:
warning: format '%lx' expects argument of type 'long unsigned int',
but argument 5 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
Fixes: 14fb42090943559 ("efi: Merge EFI system table revision and vendor checks")
CC: Ard Biesheuvel <ardb@kernel.org>
CC: linux-efi@vger.kernel.org
CC: linux-ia64@vger.kernel.org
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
---
Change since v1: mention explicitly format string change
arch/ia64/kernel/efi.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
index c5fe21de46a8..31149e41f9be 100644
--- a/arch/ia64/kernel/efi.c
+++ b/arch/ia64/kernel/efi.c
@@ -415,10 +415,10 @@ efi_get_pal_addr (void)
mask = ~((1 << IA64_GRANULE_SHIFT) - 1);
printk(KERN_INFO "CPU %d: mapping PAL code "
- "[0x%lx-0x%lx) into [0x%lx-0x%lx)\n",
- smp_processor_id(), md->phys_addr,
- md->phys_addr + efi_md_size(md),
- vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
+ "[0x%llx-0x%llx) into [0x%llx-0x%llx)\n",
+ smp_processor_id(), md->phys_addr,
+ md->phys_addr + efi_md_size(md),
+ vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE);
#endif
return __va(md->phys_addr);
}
@@ -560,6 +560,7 @@ efi_init (void)
{
efi_memory_desc_t *md;
void *p;
+ unsigned int i;
for (i = 0, p = efi_map_start; p < efi_map_end;
++i, p += efi_desc_size)
@@ -586,7 +587,7 @@ efi_init (void)
}
printk("mem%02d: %s "
- "range=[0x%016lx-0x%016lx) (%4lu%s)\n",
+ "range=[0x%016llx-0x%016llx) (%4lu%s)\n",
i, efi_md_typeattr_format(buf, sizeof(buf), md),
md->phys_addr,
md->phys_addr + efi_md_size(md), size, unit);
--
2.31.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-03-28 21:23 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-22 22:14 [PATCH] ia64: fix EFI_DEBUG build Sergei Trofimovich
2021-03-23 8:35 ` Ard Biesheuvel
2021-03-23 8:35 ` Ard Biesheuvel
2021-03-23 17:58 ` Sergei Trofimovich
2021-03-24 12:33 ` Ard Biesheuvel
2021-03-24 12:33 ` Ard Biesheuvel
2021-03-28 21:22 ` [PATCH v2] " Sergei Trofimovich
2021-03-28 21:22 ` Sergei Trofimovich
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.