Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 20 Nov 2002 10:28:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 20 Nov 2002 10:28:23 -0500 Received: from orion.netbank.com.br ([200.203.199.90]:13833 "EHLO orion.netbank.com.br") by vger.kernel.org with ESMTP id ; Wed, 20 Nov 2002 10:28:13 -0500 Date: Wed, 20 Nov 2002 13:35:02 -0200 From: Arnaldo Carvalho de Melo To: Linus Torvalds Cc: Linux Kernel Mailing List Subject: [PATCH] scsi: fix up header cleanups: add include Message-ID: <20021120153501.GA24201@conectiva.com.br> Mail-Followup-To: Arnaldo Carvalho de Melo , Linus Torvalds , Linux Kernel Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Url: http://advogato.org/person/acme Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 21742 Lines: 766 Linus, Please pull from: master.kernel.org:/home/acme/BK/includes-2.5 Now there just this outstanding changeset. This tree was cloned from yours today. - Arnaldo You can import this changeset into BK by piping this whole message to: '| bk receive [path to repository]' or apply the patch as usual. =================================================================== ChangeSet@1.912, 2002-11-20 11:21:44-02:00, acme@conectiva.com.br o scsi: fix up header cleanups: add include Also use strsep in ibmmca.c, as strtok is gone from the kernel. BusLogic.c | 8 +++++--- NCR_D700.c | 8 ++++---- advansys.c | 14 ++++++-------- aha1542.c | 10 ++++------ aha1740.c | 10 +++++----- atp870u.c | 14 ++++++-------- cpqfcTSinit.c | 13 +++++-------- fd_mcs.c | 4 ++-- fdomain.c | 15 ++++++++------- ibmmca.c | 14 +++++++------- in2000.c | 13 ++++++------- inia100.c | 9 ++++++--- mca_53c9x.c | 6 +++--- psi240i.c | 8 ++++---- qlogicfas.c | 6 ++++-- seagate.c | 14 ++++++++------ u14-34f.c | 14 ++++++++------ ultrastor.c | 8 ++++---- wd7000.c | 13 +++++++------ 19 files changed, 102 insertions(+), 99 deletions(-) diff -Nru a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c --- a/drivers/scsi/BusLogic.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/BusLogic.c Wed Nov 20 12:01:43 2002 @@ -29,24 +29,26 @@ #define BusLogic_DriverVersion "2.1.16" #define BusLogic_DriverDate "18 July 2002" +#include #include #include -#include #include +#include #include #include #include #include #include #include -#include #include #include #include +/* #include This include file is currently busted */ + #include #include #include -/* #include This include file is currently busted */ + #include "scsi.h" #include "hosts.h" #include "BusLogic.h" diff -Nru a/drivers/scsi/NCR_D700.c b/drivers/scsi/NCR_D700.c --- a/drivers/scsi/NCR_D700.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/NCR_D700.c Wed Nov 20 12:01:43 2002 @@ -93,25 +93,25 @@ #define NCR_D700_VERSION "2.2" #include +#include +#include #include #include +#include #include #include #include #include #include -#include #include #include #include + #include #include #include #include #include -#include -#include - #include "scsi.h" #include "hosts.h" diff -Nru a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c --- a/drivers/scsi/advansys.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/advansys.c Wed Nov 20 12:01:43 2002 @@ -789,25 +789,23 @@ #endif /* CONFIG_X86 && !CONFIG_ISA */ #include -#include #include #include #include +#include #include #include #include #include #include -#include -#include -#include #include #include -#if ASC_LINUX_KERNEL24 #include -#elif ASC_LINUX_KERNEL22 -#include -#endif + +#include +#include +#include + #include "scsi.h" #include "hosts.h" #include "advansys.h" diff -Nru a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c --- a/drivers/scsi/aha1542.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/aha1542.c Wed Nov 20 12:01:43 2002 @@ -27,28 +27,26 @@ #include #include - +#include #include #include #include #include #include -#include #include #include #include #include #include +#include +#include + #include #include #include -#include -#include #include "scsi.h" #include "hosts.h" - - #include "aha1542.h" #define SCSI_BUF_PA(address) isa_virt_to_bus(address) diff -Nru a/drivers/scsi/aha1740.c b/drivers/scsi/aha1740.c --- a/drivers/scsi/aha1740.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/aha1740.c Wed Nov 20 12:01:43 2002 @@ -30,23 +30,23 @@ * are deemed to be part of the source code. */ +#include +#include #include #include #include #include #include #include -#include -#include +#include +#include #include #include -#include + #include "scsi.h" #include "hosts.h" - #include "aha1740.h" -#include /* IF YOU ARE HAVING PROBLEMS WITH THIS DRIVER, AND WANT TO WATCH IT WORK, THEN: diff -Nru a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c --- a/drivers/scsi/atp870u.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/atp870u.c Wed Nov 20 12:01:43 2002 @@ -17,26 +17,24 @@ */ #include - +#include #include #include #include #include #include -#include #include #include -#include -#include #include #include -#include "scsi.h" -#include "hosts.h" +#include +#include +#include +#include "scsi.h" +#include "hosts.h" #include "atp870u.h" - -#include /* * static const char RCSid[] = "$Header: /usr/src/linux/kernel/blk_drv/scsi/RCS/atp870u.c,v 1.0 1997/05/07 15:22:00 root Exp root $"; diff -Nru a/drivers/scsi/cpqfcTSinit.c b/drivers/scsi/cpqfcTSinit.c --- a/drivers/scsi/cpqfcTSinit.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/cpqfcTSinit.c Wed Nov 20 12:01:43 2002 @@ -31,20 +31,21 @@ #define LinuxVersionCode(v, p, s) (((v)<<16)+((p)<<8)+(s)) +#include +#include +#include +#include #include #include #include -#include #include #include #include #include #include #include // request_region() prototype -#include // ioremap() -//#if LINUX_VERSION_CODE >= LinuxVersionCode(2,4,7) #include -//#endif + #ifdef __alpha__ #define __KERNEL_SYSCALLS__ #endif @@ -61,10 +62,6 @@ #include "cpqfcTStrigger.h" #include "cpqfcTS.h" - -#include -#include -#include /* Embedded module documentation macros - see module.h */ MODULE_AUTHOR("Compaq Computer Corporation"); diff -Nru a/drivers/scsi/fd_mcs.c b/drivers/scsi/fd_mcs.c --- a/drivers/scsi/fd_mcs.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/fd_mcs.c Wed Nov 20 12:01:43 2002 @@ -78,8 +78,7 @@ **************************************************************************/ #include - -#include +#include #include #include #include @@ -88,6 +87,7 @@ #include #include #include + #include #include diff -Nru a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c --- a/drivers/scsi/fdomain.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/fdomain.c Wed Nov 20 12:01:43 2002 @@ -277,14 +277,10 @@ #undef MODULE #endif +#include /* for CONFIG_PCI */ #include -#include -#include +#include #include -#include "scsi.h" -#include "hosts.h" -#include "fdomain.h" -#include #include #include #include @@ -294,7 +290,12 @@ #include #include -#include /* for CONFIG_PCI */ +#include +#include + +#include "scsi.h" +#include "hosts.h" +#include "fdomain.h" #define VERSION "$Revision: 5.50 $" diff -Nru a/drivers/scsi/ibmmca.c b/drivers/scsi/ibmmca.c --- a/drivers/scsi/ibmmca.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/ibmmca.c Wed Nov 20 12:01:43 2002 @@ -17,6 +17,7 @@ */ +#include #ifndef LINUX_VERSION_CODE #include #endif @@ -28,22 +29,23 @@ #include #include #include +#include #include #include -#include #include #include #include #include #include -#include #include -#include #include + +#include +#include + #include "scsi.h" #include "hosts.h" #include "ibmmca.h" -#include /* current version of this driver-source: */ #define IBMMCA_SCSI_DRIVER_VERSION "4.0b-ac" @@ -1396,9 +1398,8 @@ io_base = 0; id_base = 0; if (str) { - token = strtok(str, ","); j = 0; - while (token) { + while ((token = strsep(&str, ",")) != NULL) { if (!strcmp(token, "activity")) display_mode |= LED_ACTIVITY; if (!strcmp(token, "display")) @@ -1422,7 +1423,6 @@ scsi_id[id_base++] = simple_strtoul(token, NULL, 0); j++; } - token = strtok(NULL, ","); } } else if (ints) { for (i = 0; i < IM_MAX_HOSTS && 2 * i + 2 < ints[0]; i++) { diff -Nru a/drivers/scsi/in2000.c b/drivers/scsi/in2000.c --- a/drivers/scsi/in2000.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/in2000.c Wed Nov 20 12:01:43 2002 @@ -114,18 +114,17 @@ */ #include - -#include -#include +#include +#include +#include #include #include #include -#include #include -#include - -#include #include + +#include +#include #include "scsi.h" #include "hosts.h" diff -Nru a/drivers/scsi/inia100.c b/drivers/scsi/inia100.c --- a/drivers/scsi/inia100.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/inia100.c Wed Nov 20 12:01:43 2002 @@ -75,9 +75,9 @@ #include -#include #include #include +#include #include #include #include @@ -86,12 +86,15 @@ #include #include #include -#include +//#include +#include #include + #include +#include + #include "scsi.h" #include "hosts.h" -#include #include "inia100.h" static Scsi_Host_Template driver_template = INIA100; diff -Nru a/drivers/scsi/mca_53c9x.c b/drivers/scsi/mca_53c9x.c --- a/drivers/scsi/mca_53c9x.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/mca_53c9x.c Wed Nov 20 12:01:43 2002 @@ -30,8 +30,10 @@ * look. */ -#include #include +#include +#include +#include #include #include #include @@ -45,10 +47,8 @@ #include "mca_53c9x.h" #include -#include #include #include - #include static int dma_bytes_sent(struct NCR_ESP *, int); diff -Nru a/drivers/scsi/psi240i.c b/drivers/scsi/psi240i.c --- a/drivers/scsi/psi240i.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/psi240i.c Wed Nov 20 12:01:43 2002 @@ -26,25 +26,25 @@ #include +#include #include #include #include #include #include -#include +#include #include #include +#include + #include #include #include -#include #include "scsi.h" #include "hosts.h" #include "psi240i.h" #include "psi_chip.h" - -#include //#define DEBUG 1 diff -Nru a/drivers/scsi/qlogicfas.c b/drivers/scsi/qlogicfas.c --- a/drivers/scsi/qlogicfas.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/qlogicfas.c Wed Nov 20 12:01:43 2002 @@ -136,17 +136,19 @@ #include #include #include +#include #include -#include #include #include #include +#include + #include #include + #include "scsi.h" #include "hosts.h" #include "qlogicfas.h" -#include /*----------------------------------------------------------------*/ /* driver state info, local to driver */ diff -Nru a/drivers/scsi/seagate.c b/drivers/scsi/seagate.c --- a/drivers/scsi/seagate.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/seagate.c Wed Nov 20 12:01:43 2002 @@ -88,22 +88,24 @@ */ #include - -#include -#include +#include #include #include -#include #include #include #include #include #include +#include + +#include +#include +#include + #include "scsi.h" #include "hosts.h" #include "seagate.h" -#include -#include + #include #ifdef DEBUG diff -Nru a/drivers/scsi/u14-34f.c b/drivers/scsi/u14-34f.c --- a/drivers/scsi/u14-34f.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/u14-34f.c Wed Nov 20 12:01:43 2002 @@ -393,7 +393,7 @@ #endif #include -#include +#include #include #include #include @@ -402,11 +402,6 @@ #include #include #include -#include "scsi.h" -#include "hosts.h" -#include -#include -#include "u14-34f.h" #include #include #include @@ -414,6 +409,13 @@ #include #include #include + +#include +#include + +#include "scsi.h" +#include "hosts.h" +#include "u14-34f.h" #if !defined(__BIG_ENDIAN_BITFIELD) && !defined(__LITTLE_ENDIAN_BITFIELD) #error "Adjust your defines" diff -Nru a/drivers/scsi/ultrastor.c b/drivers/scsi/ultrastor.c --- a/drivers/scsi/ultrastor.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/ultrastor.c Wed Nov 20 12:01:43 2002 @@ -128,25 +128,25 @@ */ #include - +#include +#include #include #include -#include #include #include #include #include +#include + #include #include #include #include #define ULTRASTOR_PRIVATE /* Get the private stuff from ultrastor.h */ -#include #include "scsi.h" #include "hosts.h" #include "ultrastor.h" -#include #define FALSE 0 #define TRUE 1 diff -Nru a/drivers/scsi/wd7000.c b/drivers/scsi/wd7000.c --- a/drivers/scsi/wd7000.c Wed Nov 20 12:01:43 2002 +++ b/drivers/scsi/wd7000.c Wed Nov 20 12:01:43 2002 @@ -161,24 +161,25 @@ */ #include - -#include +#include #include #include #include -#include #include #include -#include -#include -#include #include #include #include #include #include + +#include +#include +#include + #include "scsi.h" #include "hosts.h" + #include #define ANY2SCSI_INLINE /* undef this to use old macros */ =================================================================== This BitKeeper patch contains the following changesets: 1.912 ## Wrapped with gzip_uu ## begin 664 bkpatch14511 M'XL(`,>5VST``^U<:W/;QA7]+/Z*K3W3L=.(W/=#4V5DFVW*B2?Q.,FGIN-9 M`@L1$1\R04KV%#^^=P%2!$$(Y*+M%TYL61#QN+JX./?@[-V[?HE^S=SRZL)& M,]=[B?ZQR%97%]%B[J)5^F#[T6+6'R_AP,?%`@X,)HN9&[S]89#.H^DZ=MDE M[8L>'/Y@5]$$/;AE=G5!^NQIS^KKO;NZ^/BW[W]]_^9CKW=]C=Y-[/S6_>Q6 MZ/JZMUHL'^PTSF[L:C)=S/NKI9UG,[2]QW0Z_7H3NW%JY_W%\K9F@!#XKK!B/!>:2=P;(M(WA"),!X0, M*$:$7%%RQ?DEIE<8(Q^3FWHLT%^(09>X]Q;];YU_UXO0`F51EEZA)/V"UO=H MXFSLEBB:.CM?WV=7R,8QVD0>_76:SM=?X$&LW'*YOE_U)]^!!?AZ,\T6:)TY ME*V6F;N'"U`ZGLTB<.M;9#._>[6X0VF&;N'64+)?IXC:-$IO5/=0Y$UKSG%`A";=F MC+F.U5B=XF+=:,5%B85@82[:^`&.?3WP4.7<"$ES#1^LP<8F"@+@DE,\K-FL M.,@)53K,P?LLI1RGAQ&4G$B14\>,B\:2<2RXMV^QXAWA`M(J#(.$7S*> M''KGMSI7%L>61TH9.4XB?))[^R:K[AFE29A[2?QI%C6@CRK%9&Y%$D64)M0* MET0N/L6[/8L5YS"1A()S]Y[$3_#LQWY]HA\$C%/(A5W2L&>2P,[&,D^BDX-5L5ATT M7`0Z&-U_3J)??D[GZ:KNH\D%DXSE<6+'6"9QP@R-!#_)QT.S50AB'.JF7=UK MA=<-�:WFJ,4YF`LP!%"V^`D^AESV*5_C@W)LR[[7NN3GY$:J%R;:2,"*=. M)#1F"3O%NSV+U03!1HE`Y^9@`Q\Z1P5L38)'Y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