* [PATCH] efi: fix pointer type errors in fdt_uefi_find_params()
@ 2014-06-13 14:54 Ard Biesheuvel
[not found] ` <1402671299-22493-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Ard Biesheuvel @ 2014-06-13 14:54 UTC (permalink / raw)
To: matt.fleming-ral2JQCrhuEAvxtiuMwx3w
Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA,
leif.lindholm-QSEj5FYQhm4dnm+yROfE0A,
roy.franz-QSEj5FYQhm4dnm+yROfE0A, msalter-H+wXaHxf7aLQT0dZR+AlfA,
Ard Biesheuvel
Fix two instances of pointer type errors, a harmless one where a const void*
value is assigned to a non-const void* variable, and a not-so-harmless one where
we pass a pointer to unsigned long where a pointer to int is expected.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
drivers/firmware/efi/efi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index cd36deb619fa..fe737832a882 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -353,8 +353,8 @@ static int __init fdt_find_uefi_params(unsigned long node, const char *uname,
int depth, void *data)
{
struct param_info *info = data;
- void *prop, *dest;
- unsigned long len;
+ void const *prop, *dest;
+ int len;
u64 val;
int i;
--
1.8.3.2
^ permalink raw reply related [flat|nested] 5+ messages in thread[parent not found: <1402671299-22493-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH] efi: fix pointer type errors in fdt_uefi_find_params() [not found] ` <1402671299-22493-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2014-06-18 9:02 ` Matt Fleming [not found] ` <20140618090245.GC24049-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Matt Fleming @ 2014-06-18 9:02 UTC (permalink / raw) To: Ard Biesheuvel Cc: matt.fleming-ral2JQCrhuEAvxtiuMwx3w, linux-efi-u79uwXL29TY76Z2rM5mHXA, leif.lindholm-QSEj5FYQhm4dnm+yROfE0A, roy.franz-QSEj5FYQhm4dnm+yROfE0A, msalter-H+wXaHxf7aLQT0dZR+AlfA On Fri, 13 Jun, at 04:54:59PM, Ard Biesheuvel wrote: > Fix two instances of pointer type errors, a harmless one where a const void* > value is assigned to a non-const void* variable, and a not-so-harmless one where > we pass a pointer to unsigned long where a pointer to int is expected. > > Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > --- > drivers/firmware/efi/efi.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c > index cd36deb619fa..fe737832a882 100644 > --- a/drivers/firmware/efi/efi.c > +++ b/drivers/firmware/efi/efi.c > @@ -353,8 +353,8 @@ static int __init fdt_find_uefi_params(unsigned long node, const char *uname, > int depth, void *data) > { > struct param_info *info = data; > - void *prop, *dest; > - unsigned long len; > + void const *prop, *dest; > + int len; > u64 val; > int i; const void *? -- Matt Fleming, Intel Open Source Technology Center ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20140618090245.GC24049-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>]
* Re: [PATCH] efi: fix pointer type errors in fdt_uefi_find_params() [not found] ` <20140618090245.GC24049-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org> @ 2014-06-18 9:06 ` Ard Biesheuvel [not found] ` <CAKv+Gu-PKHx8Z64W0v2jA8p2w6whewhgVdYaQyBfJRZrPSFLyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Ard Biesheuvel @ 2014-06-18 9:06 UTC (permalink / raw) To: Matt Fleming Cc: Matt Fleming, linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Leif Lindholm, Roy Franz, Mark Salter On 18 June 2014 11:02, Matt Fleming <matt-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org> wrote: > On Fri, 13 Jun, at 04:54:59PM, Ard Biesheuvel wrote: >> Fix two instances of pointer type errors, a harmless one where a const void* >> value is assigned to a non-const void* variable, and a not-so-harmless one where >> we pass a pointer to unsigned long where a pointer to int is expected. >> >> Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> >> --- >> drivers/firmware/efi/efi.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c >> index cd36deb619fa..fe737832a882 100644 >> --- a/drivers/firmware/efi/efi.c >> +++ b/drivers/firmware/efi/efi.c >> @@ -353,8 +353,8 @@ static int __init fdt_find_uefi_params(unsigned long node, const char *uname, >> int depth, void *data) >> { >> struct param_info *info = data; >> - void *prop, *dest; >> - unsigned long len; >> + void const *prop, *dest; >> + int len; >> u64 val; >> int i; > > const void *? > You say potato, I say po-tah-to? But seriously, whichever you prefer ... Regards, Ard. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAKv+Gu-PKHx8Z64W0v2jA8p2w6whewhgVdYaQyBfJRZrPSFLyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] efi: fix pointer type errors in fdt_uefi_find_params() [not found] ` <CAKv+Gu-PKHx8Z64W0v2jA8p2w6whewhgVdYaQyBfJRZrPSFLyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-06-18 9:28 ` Matt Fleming [not found] ` <20140618092845.GE24049-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Matt Fleming @ 2014-06-18 9:28 UTC (permalink / raw) To: Ard Biesheuvel Cc: Matt Fleming, linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Leif Lindholm, Roy Franz, Mark Salter On Wed, 18 Jun, at 11:06:09AM, Ard Biesheuvel wrote: > > You say potato, I say po-tah-to? > But seriously, whichever you prefer ... $ git grep "const void" | wc -l 4441 $ git grep "void const" | wc -l 50 I say potato, you say "tasty carbohydrate ball" But yeah, it's not a big deal and I can fix this up when applying. -- Matt Fleming, Intel Open Source Technology Center ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20140618092845.GE24049-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>]
* Re: [PATCH] efi: fix pointer type errors in fdt_uefi_find_params() [not found] ` <20140618092845.GE24049-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org> @ 2014-06-18 10:53 ` Ard Biesheuvel 0 siblings, 0 replies; 5+ messages in thread From: Ard Biesheuvel @ 2014-06-18 10:53 UTC (permalink / raw) To: Matt Fleming Cc: Matt Fleming, linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Leif Lindholm, Roy Franz, Mark Salter On 18 June 2014 11:28, Matt Fleming <matt-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org> wrote: > On Wed, 18 Jun, at 11:06:09AM, Ard Biesheuvel wrote: >> >> You say potato, I say po-tah-to? >> But seriously, whichever you prefer ... > > $ git grep "const void" | wc -l > 4441 > > $ git grep "void const" | wc -l > 50 > > I say potato, you say "tasty carbohydrate ball" > > But yeah, it's not a big deal and I can fix this up when applying. > Actually, it appears I messed up the subject line too: s/fdt_uefi_find_params/fdt_find_uefi_params/ Cheers, Ard. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-18 10:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-13 14:54 [PATCH] efi: fix pointer type errors in fdt_uefi_find_params() Ard Biesheuvel
[not found] ` <1402671299-22493-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-06-18 9:02 ` Matt Fleming
[not found] ` <20140618090245.GC24049-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2014-06-18 9:06 ` Ard Biesheuvel
[not found] ` <CAKv+Gu-PKHx8Z64W0v2jA8p2w6whewhgVdYaQyBfJRZrPSFLyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-18 9:28 ` Matt Fleming
[not found] ` <20140618092845.GE24049-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2014-06-18 10:53 ` Ard Biesheuvel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox