[Compile Regression in 2.4.25-pre8][PATCH 37/42]

From: Kronos
Date: Mon Feb 02 2004 - 15:11:48 EST



siimage.c:65: warning: control reaches end of non-void function

The last statement before the end is BUG(), but I added a return to
silence the warning.

diff -Nru -X dontdiff linux-2.4-vanilla/drivers/ide/pci/siimage.c linux-2.4/drivers/ide/pci/siimage.c
--- linux-2.4-vanilla/drivers/ide/pci/siimage.c Tue Nov 11 17:51:38 2003
+++ linux-2.4/drivers/ide/pci/siimage.c Sat Jan 31 19:07:56 2004
@@ -62,6 +62,9 @@
return 0;
}
BUG();
+
+ /* gcc will complain */
+ return 0;
}

/**

--
Reply-To: kronos@xxxxxxxxxxxxxx
Home: http://kronoz.cjb.net
You and me baby ain't nothin' but mammals
So let's do it like they do on the Discovery Channel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/