lkml.org 
[lkml]   [2001]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    SubjectRe: Linux 2.4.15-pre4 - merge with Alan
    From
       From: Neil Brown <neilb@cse.unsw.edu.au>
    Date: Tue, 13 Nov 2001 16:54:00 +1100 (EST)

    uhci.c:2986: warning: initialization discards qualifiers from pointer target type

    The correct fix for this one is below and already sent
    to Linus:

    diff -u --recursive --new-file --exclude=CVS --exclude=.cvsignore vanilla/linux/include/linux/module.h linux/include/linux/module.h
    --- vanilla/linux/include/linux/module.h Mon Nov 12 15:13:12 2001
    +++ linux/include/linux/module.h Mon Nov 12 17:11:04 2001
    @@ -317,7 +317,7 @@
    * const, other exit data may be writable.
    */
    #define MODULE_GENERIC_TABLE(gtype,name) \
    -static struct gtype##_id * __module_##gtype##_table \
    +static const struct gtype##_id * __module_##gtype##_table \
    __attribute__ ((unused, __section__(".data.exit"))) = name

    #ifndef __GENKSYMS__
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 13:13    [W:7.572 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site