: grub: Fix type of 'actual' size arguments to ieee1275 interfaces.
PATCH 1/1 : grub: Fix type of 'actual' size arguments to ieee1275 interfaces.
The 'actual' argument to various ieee1275 functions is of type "grub_ssize_t" but several spots were erroneously using "int".
This happens to work on powerpc but does not on sparc64.
2009-04-07 David S. Miller <[email protected]>
* kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
* kern/ieee1275/openfw.c (grub_children_iterate): Likewise. (grub_devalias_iterate): Likewise.
--- kern/ieee1275/init.c | 2 +- kern/ieee1275/openfw.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
kern/ieee1275/init.c +1 -1
@@ -213,7 +213,7 @@ voidgrub_machine_init (void) {char args[256 ]; -int actual; +grub_ssize_t actual;grub_ieee1275_init ();
kern/ieee1275/openfw.c +2 -2
@@ -53,7 +53,7 @@ grub_children_iterate (char *devpath,char childname[64 ];char fullname[64 ];struct grub_ieee1275_devalias alias; -int actual; +grub_ssize_t actual;if (grub_ieee1275_get_property (child,"device_type" , &childtype,sizeof childtype, &actual))
@@ -86,7 +86,7 @@ grub_devalias_iterate (int (*hook) (struct grub_ieee1275_devalias *alias)) {grub_ieee1275_phandle_t aliases;char aliasname[32 ]; -int actual; +grub_ssize_t actual;struct grub_ieee1275_devalias alias;if (grub_ieee1275_finddevice ("/aliases" , &aliases))
Signature · 1 line
1.6.2.2
From: David Miller <[email protected]>
Date: Tue, 07 Apr 2009 17:03:27 -0700 (PDT)
Quoted 10 lines
The 'actual' argument to various ieee1275 functions is of type "
grub_ssize_t" but several spots were erroneously using "int".This happens to work on powerpc but does not on sparc64.
2009-04-07 David S. Miller <[email protected]>
*
kern/ieee1275/init.c(grub_machine_init): Make 'actual'grub_ssize_t.
*kern/ieee1275/openfw.c(grub_children_iterate): Likewise. (grub_devalias_iterate): Likewise.
Ping? Review appreciated, thanks!
This patch is ok. it shouldn't be int.
Quoted 21 lines · David Miller
From: David Miller <[email protected]>
Date: Tue, 07 Apr 2009 17:03:27 -0700 (PDT)Quoted 10 lines
The 'actual' argument to various ieee1275 functions is of type "
grub_ssize_t" but several spots were erroneously using "int".This happens to work on powerpc but does not on sparc64.
2009-04-07 David S. Miller <[email protected]>
*
kern/ieee1275/init.c(grub_machine_init): Make 'actual'grub_ssize_t.
*kern/ieee1275/openfw.c(grub_children_iterate): Likewise. (grub_devalias_iterate): Likewise.Ping? Review appreciated, thanks!
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 4 lines
Best Regards, Manoel Rebelo Abranches IBM Linux Technology Center Brazil
From: Manoel Rebelo Abranches <[email protected]>
Date: Thu, 09 Apr 2009 20:00:43 -0300
Quoted 1 line
This patch is ok. it shouldn't be int.
Committed, thanks.