Re: warning in 2.4.1pre10

From: Peter Samuelson (peter@cadcamlab.org)
Date: Wed Jan 24 2001 - 19:45:00 EST


[J. A. Magallon]
> It is harmless, 'cause the last sentence in the funtion is a panic,
> but it is good to add the 'return 0', just to shut up the compiler.

The correct fix is __attribute__((noreturn)) in the panic() prototype.
As it happens, this has already been done....

Peter

--- 2.3.99pre4pre2/include/linux/raid/md_k.h~ Thu Feb 24 22:02:59 2000
+++ 2.3.99pre4pre2/include/linux/raid/md_k.h Wed Jan 24 18:40:28 2001
@@ -15,6 +15,8 @@
 #ifndef _MD_K_H
 #define _MD_K_H
 
+#include <linux/kernel.h> // for panic()
+
 #define MD_RESERVED 0UL
 #define LINEAR 1UL
 #define STRIPED 2UL
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 31 2001 - 21:00:20 EST