summaryrefslogtreecommitdiff
path: root/kexec/arch/ppc64
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2010-05-05 11:48:53 +1000
committerSimon Horman <horms@verge.net.au>2010-05-05 12:22:52 +1000
commit64c4e7d1aedec929ba57bd1e89577098f2a63612 (patch)
tree34852f6f74660573bd7c6c50d5835695a89d73b6 /kexec/arch/ppc64
parentd3ab86bd6d8b5203c8b6e079355d5a878db24494 (diff)
kexec-tools, ppc64: fix build error on ppc64
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> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/ppc64')
-rw-r--r--kexec/arch/ppc64/fs2dt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/arch/ppc64/fs2dt.c b/kexec/arch/ppc64/fs2dt.c
index 63d6dfd..f168cbc 100644
--- a/kexec/arch/ppc64/fs2dt.c
+++ b/kexec/arch/ppc64/fs2dt.c
@@ -357,7 +357,8 @@ static void putprops(char *fn, struct dirent **nlist, int numlist)
* 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;