All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kexec-tools, ppc64: fix build error on ppc64
@ 2010-05-05  1:48 ` Michael Neuling
  0 siblings, 0 replies; 17+ messages in thread
From: Michael Neuling @ 2010-05-05  1:48 UTC (permalink / raw)
  To: Simon Horman, kexec; +Cc: Maxim Uvarov, linuxppc-dev

6adc05c6e3fdbc8b9f5d915af78ca05d0a09cb17 "some kexec MIPS
improvements" broke pp64 as it turned on -Werror for all archs.

This fixes the warning and hence ppc64 building.

Signed-off-by: Michael Neuling <mikey@neuling.org>
---
I've posted a second patch to fix the issue of changing one archs
Makefile, effecting all other archs.

 kexec/arch/ppc64/fs2dt.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: kexec-tools/kexec/arch/ppc64/fs2dt.c
===================================================================
--- kexec-tools.orig/kexec/arch/ppc64/fs2dt.c
+++ kexec-tools/kexec/arch/ppc64/fs2dt.c
@@ -357,7 +357,8 @@ static void putprops(char *fn, struct di
  * Compare function used to sort the device-tree directories
  * This function will be passed to scandir.
  */
-static int comparefunc(const void *dentry1, const void *dentry2)
+static int comparefunc(const struct dirent **dentry1,
+		       const struct dirent **dentry2)
 {
 	char *str1 = (*(struct dirent **)dentry1)->d_name;
 	char *str2 = (*(struct dirent **)dentry2)->d_name;

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-05-05  8:29 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05  1:48 [PATCH] kexec-tools, ppc64: fix build error on ppc64 Michael Neuling
2010-05-05  1:48 ` Michael Neuling
2010-05-05  1:51 ` [PATCH] kexec-tools: don't include every archs Makefile Michael Neuling
2010-05-05  3:31   ` Simon Horman
2010-05-05  4:00     ` Michael Neuling
2010-05-05  6:44       ` Simon Horman
2010-05-05  1:56 ` [PATCH] kexec-tools, ppc64: fix build error on ppc64 Dale Farnsworth
2010-05-05  2:33 ` Simon Horman
2010-05-05  2:33   ` Simon Horman
2010-05-05  3:35   ` Michael Neuling
2010-05-05  3:35     ` Michael Neuling
2010-05-05  3:39     ` Simon Horman
2010-05-05  3:39       ` Simon Horman
2010-05-05  7:46       ` Maxim Uvarov
2010-05-05  7:46         ` Maxim Uvarov
2010-05-05  8:29         ` Simon Horman
2010-05-05  8:29           ` Simon Horman

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.