lkml.org 
[lkml]   [2008]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] hpt366: fix section mismatch warnings
    Sam Ravnborg wrote:

    > hpt366: fix section mismatch warnings

    > Fix following warnings:
    > WARNING: o-sparc64/vmlinux.o(.data+0x195a38): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt370
    > WARNING: o-sparc64/vmlinux.o(.data+0x195a40): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt370a
    > WARNING: o-sparc64/vmlinux.o(.data+0x195a48): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt372
    > WARNING: o-sparc64/vmlinux.o(.data+0x195a50): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt372n

    > Replace a static array with a small switch resulting in
    > more readable code.
    > Be consistent in use of __devinitconst for const data
    > to avoid section type conflicts.
    > Mark the pci table __devinitconst.

    > Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

    Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

    MBR, Sergei


    \
     
     \ /
      Last update: 2008-02-22 20:55    [W:0.031 / U:2.064 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site