lkml.org 
[lkml]   [2000]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    SubjectRe: test12-pre5 does not compile
    From
    [mkloppstech@freenet.de]
    > dummy.c: In function `dummy_init_module':
    > dummy.c:103: invalid type argument of `->'

    Known bug. They say the fix is in Linus's patch queue.

    --- include/linux/module.h~ Tue Dec 5 00:53:23 2000
    +++ include/linux/module.h Tue Dec 5 17:24:47 2000
    @@ -345,7 +345,7 @@
    #endif /* MODULE */

    #ifdef CONFIG_MODULES
    -#define SET_MODULE_OWNER(some_struct) do { some_struct->owner = THIS_MODULE; } while (0)
    +#define SET_MODULE_OWNER(some_struct) do { (some_struct)->owner = THIS_MODULE; } while (0)
    #else
    #define SET_MODULE_OWNER(some_struct) do { } while (0)
    #endif
    -
    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 12:51    [W:0.021 / U:2.632 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site