Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264610AbTGCQCT (ORCPT ); Thu, 3 Jul 2003 12:02:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264898AbTGCQCS (ORCPT ); Thu, 3 Jul 2003 12:02:18 -0400 Received: from hermes.fachschaften.tu-muenchen.de ([129.187.202.12]:33747 "HELO hermes.fachschaften.tu-muenchen.de") by vger.kernel.org with SMTP id S264610AbTGCQAL (ORCPT ); Thu, 3 Jul 2003 12:00:11 -0400 Date: Thu, 3 Jul 2003 18:14:29 +0200 From: Adrian Bunk To: Alan Cox Cc: Kernel Mailing List , trivial@rustcorp.com.au Subject: [patch] 2.5.74: i2o_scsi.c must include pci.h Message-ID: <20030703161429.GN282@fs.tum.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2050 Lines: 62 I got the following compile error with 2.5.74: <-- snip --> ... CC drivers/message/i2o/i2o_scsi.o drivers/message/i2o/i2o_scsi.c: In function `i2o_scsi_reply': drivers/message/i2o/i2o_scsi.c:327: warning: implicit declaration of function `pci_unmap_sg' drivers/message/i2o/i2o_scsi.c:329: warning: implicit declaration of function `pci_unmap_single' drivers/message/i2o/i2o_scsi.c: In function `i2o_scsi_queuecommand': drivers/message/i2o/i2o_scsi.c:763: warning: implicit declaration of function `pci_map_sg' drivers/message/i2o/i2o_scsi.c:833: warning: implicit declaration of function `pci_map_single' ... LD .tmp_vmlinux1 drivers/built-in.o(.text+0x5e871c): In function `i2o_scsi_reply': : undefined reference to `pci_unmap_single' drivers/built-in.o(.text+0x5e873c): In function `i2o_scsi_reply': : undefined reference to `pci_unmap_sg' drivers/built-in.o(.text+0x5e9471): In function `i2o_scsi_queuecommand': : undefined reference to `pci_map_sg' drivers/built-in.o(.text+0x5e9781): In function `i2o_scsi_queuecommand': : undefined reference to `pci_map_single' make: *** [.tmp_vmlinux1] Error 1 <-- snip --> The fix is simple: --- linux-2.5.74-not-full/drivers/message/i2o/i2o_scsi.c.old 2003-07-03 17:59:18.000000000 +0200 +++ linux-2.5.74-not-full/drivers/message/i2o/i2o_scsi.c 2003-07-03 18:00:11.000000000 +0200 @@ -49,6 +49,7 @@ #include #include #include +#include #include #include #include cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed - 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/