linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: fix uninitialised variable in VSX alignment code
@ 2008-08-28  4:57 Michael Neuling
  0 siblings, 0 replies; only message in thread
From: Michael Neuling @ 2008-08-28  4:57 UTC (permalink / raw)
  To: paulus, benh; +Cc: linuxppc-dev

This fixes an uninitialised variable in the VSX alignment code.  It can
cause warnings from GCC (noticed with GCC 4.1.1).

Signed-off-by: Michael Neuling <mikey@neuling.org>
---
paulus: for your 2.6.27 tree.

Kudos to paulus for finding this.

 arch/powerpc/kernel/align.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6-ozlabs/arch/powerpc/kernel/align.c
===================================================================
--- linux-2.6-ozlabs.orig/arch/powerpc/kernel/align.c
+++ linux-2.6-ozlabs/arch/powerpc/kernel/align.c
@@ -647,7 +647,7 @@ static int emulate_vsx(unsigned char __u
 		       unsigned int flags, unsigned int length)
 {
 	char *ptr = (char *) &current->thread.TS_FPR(reg);
-	int ret;
+	int ret = 0;
 
 	flush_vsx_to_thread(current);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-28  4:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-28  4:57 [PATCH] powerpc: fix uninitialised variable in VSX alignment code Michael Neuling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).