lkml.org 
[lkml]   [2001]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: SCSI compile error
    At Tue, 16 Oct 2001 12:58:30 +0300 (EEST),
    Henrikki Almusa <henrikki.almusa@helsinki.fi> wrote:
    >
    > I was compiling kernel 2.4.12 and encountered a following problem. I couldn't
    > found anything from list archives about this. I tried to fix this by using the
    > same source file from 2.4.10, but that gives same error except the line number
    > is one smaller in all lines.
    >
    > Output from compiling:
    > gcc -D__KERNEL__ -I/usr/src/linux-2.4.12/include -Wall -Wstrict-prototypes
    > -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
    > -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include
    > /usr/src/linux-2.4.12/include/linux/modversions.h -c -o cpqfcTSinit.o
    > cpqfcTSinit.c
    > cpqfcTSinit.c: In function `cpqfcTS_ioctl':
    > cpqfcTSinit.c:663: `SCSI_IOCTL_FC_TARGET_ADDRESS' undeclared (first use in this
    > function)
    > cpqfcTSinit.c:663: (Each undeclared identifier is reported only once
    > cpqfcTSinit.c:663: for each function it appears in.)
    > cpqfcTSinit.c:681: `SCSI_IOCTL_FC_TDR' undeclared (first use in this function)
    > make[2]: *** [cpqfcTSinit.o] Error 1
    > make[2]: Leaving directory `/usr/src/linux-2.4.12/drivers/scsi'
    > make[1]: *** [_modsubdir_scsi] Error 2
    > make[1]: Leaving directory `/usr/src/linux-2.4.12/drivers'
    > make: *** [_mod_drivers] Error 2
    > [root@my_comp linux-2.4.12]#
    >
    > Ps. i'm not on the kernel-list so put my email in cc atleast.

    Try this patch.

    --- include/scsi/scsi.h Wed Oct 17 13:48:50 2001
    +++ include/scsi/scsi.h.new Wed Oct 17 13:48:51 2001
    @@ -214,6 +214,12 @@
    /* Used to get the PCI location of a device */
    #define SCSI_IOCTL_GET_PCI 0x5387

    +/* Used to get Fibre Channel WWN and port_id from device */
    +#define SCSI_IOCTL_FC_TARGET_ADDRESS 0x5387
    +
    +/* Used to invoke Target Defice Reset for Fibre Channel */
    +#define SCSI_IOCTL_FC_TDR 0x5388
    +
    /*
    * Overrides for Emacs so that we follow Linus's tabbing style.
    * Emacs will notice this stuff at the end of the file and
    automatically

    -- gotom
    -
    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:08    [W:5.531 / U:0.316 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site