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

    [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....


    --- 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
    Please read the FAQ at
     \ /
      Last update: 2005-03-22 13:23    [W:0.020 / U:12.592 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site