lkml.org 
[lkml]   [2002]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: Linux 2.4.20-rc2 in2000.c and t128.c build fixes (resend)
    Marcelo,
    it seems the gcc 3.2 build fixes for in2000.c and t128.c got lost.

    Please see:

    http://marc.theaimsgroup.com/?l=linux-kernel&m=103641735125372&w=2
    http://marc.theaimsgroup.com/?l=linux-kernel&m=103641959127368&w=2
    http://marc.theaimsgroup.com/?l=linux-kernel&m=103641876226674&w=2

    Example error without the patch:

    gcc -D__KERNEL__ -I/usr/src/linux-2.4.20rc2/include -Wall
    -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
    -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -mcpu=i686
    -march=i686 -falign-loops -falign-jumps -falign-functions -nostdinc
    -iwithprefix include -DKBUILD_BASENAME=in2000 -c -o in2000.o in2000.c
    in2000.c:1919: base_tab causes a section type conflict
    in2000.c:1926: int_tab causes a section type conflict
    make[3]: *** [in2000.o] Error 1

    The attached and combined patch is modified to reflect Alan's comment as
    referenced above.
    --
    Andreas Steinmetz
    D.O.M. Datenverarbeitung GmbH
    diff -rNu old/drivers/scsi/in2000.c linux/drivers/scsi/in2000.c
    --- old/drivers/scsi/in2000.c 2001-09-30 21:26:07.000000000 +0200
    +++ linux/drivers/scsi/in2000.c 2002-11-04 14:18:58.000000000 +0100
    @@ -1916,14 +1916,14 @@
    0
    };

    -static const unsigned short base_tab[] in2000__INITDATA = {
    +static unsigned short base_tab[] in2000__INITDATA = {
    0x220,
    0x200,
    0x110,
    0x100,
    };

    -static const int int_tab[] in2000__INITDATA = {
    +static int int_tab[] in2000__INITDATA = {
    15,
    14,
    11,
    diff -rNu old/drivers/scsi/t128.c linux/drivers/scsi/t128.c
    --- old/drivers/scsi/t128.c 2001-12-21 18:41:55.000000000 +0100
    +++ kubux/drivers/scsi/t128.c 2002-11-04 14:21:47.000000000 +0100
    @@ -142,7 +142,7 @@

    #define NO_BASES (sizeof (bases) / sizeof (struct base))

    -static const struct signature {
    +static struct signature {
    const char *string;
    int offset;
    } signatures[] __initdata = {
    \
     
     \ /
      Last update: 2005-03-22 13:31    [W:0.023 / U:0.740 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site