mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: GOTO Masanori <gotom@debian.or.jp>
To: henrikki.almusa@helsinki.fi
Cc: linux-kernel@vger.kernel.org, gotom@debian.or.jp
Subject: Re: SCSI compile error
Date: Wed, 17 Oct 2001 13:53:07 +0900	[thread overview]
Message-ID: <w53669e50lo.wl@megaela.fe.dis.titech.ac.jp> (raw)
In-Reply-To: In your message of "Tue, 16 Oct 2001 12:58:30 +0300 (EEST)" <1003226310.3bcc04c6b2a12@www3.helsinki.fi>
In-Reply-To: <1003226310.3bcc04c6b2a12@www3.helsinki.fi>

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

      reply	other threads:[~2001-10-17  4:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-16  9:58 Henrikki Almusa
2001-10-17  4:53 ` GOTO Masanori [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=w53669e50lo.wl@megaela.fe.dis.titech.ac.jp \
    --to=gotom@debian.or.jp \
    --cc=henrikki.almusa@helsinki.fi \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®