lkml.org 
[lkml]   [2001]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: warning in 2.4.1pre10
From

[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/
\
 
 \ /
  Last update: 2005-03-22 13:23    [from the cache]
©2003-2011 Jasper Spaans