merge by hand - fix up rejections in Documentation/DocBook/Makefile
authorJames Bottomley <jejb@titanic.(none)>
Fri, 20 May 2005 20:27:44 +0000 (15:27 -0500)
committerJames Bottomley <jejb@titanic.(none)>
Fri, 20 May 2005 20:27:44 +0000 (15:27 -0500)
1  2 
Documentation/DocBook/Makefile
drivers/scsi/Kconfig
drivers/scsi/NCR53C9x.c
drivers/scsi/aacraid/linit.c
drivers/scsi/scsi.c
drivers/scsi/scsi_error.c

index e69d68659455f7aeefc7e9f4edb251387ecf6215,e69b3d2e788436b0db1ecfb38245aeb4aeed0f60..87da3478fada4298d0b2d9c396904e2e3e7fa8f0
@@@ -7,11 -7,10 +7,10 @@@
  # list of DOCBOOKS.
  
  DOCBOOKS := wanbook.xml z8530book.xml mcabook.xml videobook.xml \
-           kernel-hacking.xml kernel-locking.xml via-audio.xml \
-           deviceiobook.xml procfs-guide.xml tulip-user.xml \
-           writing_usb_driver.xml sis900.xml kernel-api.xml \
-           journal-api.xml lsm.xml usb.xml gadget.xml libata.xml \
-           mtdnand.xml librs.xml
+           kernel-hacking.xml kernel-locking.xml deviceiobook.xml \
 -          procfs-guide.xml writing_usb_driver.xml scsidrivers.xml \
++          procfs-guide.xml writing_usb_driver.xml \
+           sis900.xml kernel-api.xml journal-api.xml lsm.xml usb.xml \
+           gadget.xml libata.xml mtdnand.xml librs.xml
  
  ###
  # The build process is as follows (targets):
@@@ -42,14 -41,16 +41,16 @@@ MAN := $(patsubst %.xml, %.9, $(BOOKS)
  mandocs: $(MAN)
  
  installmandocs: mandocs
-       $(MAKEMAN) install Documentation/DocBook/man
+       mkdir -p /usr/local/man/man9/
+       install Documentation/DocBook/man/*.9.gz /usr/local/man/man9/
  
  ###
  #External programs used
  KERNELDOC = scripts/kernel-doc
  DOCPROC   = scripts/basic/docproc
- SPLITMAN  = $(PERL) $(srctree)/scripts/split-man
- MAKEMAN   = $(PERL) $(srctree)/scripts/makeman
+ XMLTOFLAGS = -m Documentation/DocBook/stylesheet.xsl
+ #XMLTOFLAGS += --skip-validation
  
  ###
  # DOCPROC is used for two purposes:
@@@ -96,45 -97,44 +97,44 @@@ $(obj)/procfs-guide.xml: $(C-procfs-exa
  # Rules to generate postscript, PDF and HTML
  # db2html creates a directory. Generate a html file used for timestamp
  
- quiet_cmd_db2ps = DB2PS   $@
-       cmd_db2ps = db2ps -o $(dir $@) $<
+ quiet_cmd_db2ps = XMLTO    $@
+       cmd_db2ps = xmlto ps $(XMLTOFLAGS) -o $(dir $@) $<
  %.ps : %.xml
-       @(which db2ps > /dev/null 2>&1) || \
-        (echo "*** You need to install DocBook stylesheets ***"; \
+       @(which xmlto > /dev/null 2>&1) || \
+        (echo "*** You need to install xmlto ***"; \
          exit 1)
        $(call cmd,db2ps)
  
- quiet_cmd_db2pdf = DB2PDF  $@
-       cmd_db2pdf = db2pdf -o $(dir $@) $<
+ quiet_cmd_db2pdf = XMLTO   $@
+       cmd_db2pdf = xmlto pdf $(XMLTOFLAGS) -o $(dir $@) $<
  %.pdf : %.xml
-       @(which db2pdf > /dev/null 2>&1) || \
-        (echo "*** You need to install DocBook stylesheets ***"; \
+       @(which xmlto > /dev/null 2>&1) || \
+        (echo "*** You need to install xmlto ***"; \
          exit 1)
        $(call cmd,db2pdf)
  
- quiet_cmd_db2html = DB2HTML $@
-       cmd_db2html = db2html -o $(patsubst %.html,%,$@) $< &&                \
-               echo '<a HREF="$(patsubst %.html,%,$(notdir $@))/book1.html"> \
+ quiet_cmd_db2html = XMLTO  $@
+       cmd_db2html = xmlto xhtml $(XMLTOFLAGS) -o $(patsubst %.html,%,$@) $< && \
+               echo '<a HREF="$(patsubst %.html,%,$(notdir $@))/index.html"> \
           Goto $(patsubst %.html,%,$(notdir $@))</a><p>' > $@
  
  %.html:       %.xml
-       @(which db2html > /dev/null 2>&1) || \
-        (echo "*** You need to install DocBook stylesheets ***"; \
+       @(which xmlto > /dev/null 2>&1) || \
+        (echo "*** You need to install xmlto ***"; \
          exit 1)
        @rm -rf $@ $(patsubst %.html,%,$@)
        $(call cmd,db2html)
        @if [ ! -z "$(PNG-$(basename $(notdir $@)))" ]; then \
              cp $(PNG-$(basename $(notdir $@))) $(patsubst %.html,%,$@); fi
  
- ###
- # Rule to generate man files - output is placed in the man subdirectory
- %.9:  %.xml
- ifneq ($(KBUILD_SRC),)
-       $(Q)mkdir -p $(objtree)/Documentation/DocBook/man
- endif
-       $(SPLITMAN) $< $(objtree)/Documentation/DocBook/man "$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)"
-       $(MAKEMAN) convert $(objtree)/Documentation/DocBook/man $<
+ quiet_cmd_db2man = XMLTO   $@
+       cmd_db2man = if grep -q refentry $<; then xmlto man $(XMLTOFLAGS) -o $(obj)/man $< ; gzip -f $(obj)/man/*.9; fi
+ %.9 : %.xml
+       @(which xmlto > /dev/null 2>&1) || \
+        (echo "*** You need to install xmlto ***"; \
+         exit 1)
+       $(call cmd,db2man)
+       @touch $@
  
  ###
  # Rules to generate postscripts and PNG imgages from .fig format files
diff --combined drivers/scsi/Kconfig
index ba88be399a59c3f954cb1cac48461ba0f420543e,1811cb240315a33c8aea5ddf9d6ccd24c5c51060..88e34095ca4e11a1a106b0a5d1fb6d11ba0194c7
@@@ -137,24 -137,6 +137,24 @@@ config CHR_DEV_S
  
          If unsure, say N.
  
 +config CHR_DEV_SCH
 +      tristate "SCSI media changer support"
 +      depends on SCSI
 +      ---help---
 +        This is a driver for SCSI media changers.  Most common devices are
 +        tape libraries and MOD/CDROM jukeboxes.  *Real* jukeboxes, you
 +        don't need this for those tiny 6-slot cdrom changers.  Media
 +        changers are listed as "Type: Medium Changer" in /proc/scsi/scsi.
 +        If you have such hardware and want to use it with linux, say Y
 +        here.  Check <file:Documentation/scsi-changer.txt> for details.
 +      
 +        If you want to compile this as a module ( = code which can be
 +        inserted in and removed from the running kernel whenever you want),
 +        say M here and read <file:Documentation/modules.txt> and
 +        <file:Documentation/scsi.txt>. The module will be called ch.o.
 +        If unsure, say N.
 +      
 +
  comment "Some SCSI devices (e.g. CD jukebox) support multiple LUNs"
        depends on SCSI
  
@@@ -278,7 -260,7 +278,7 @@@ config SCSI_3W_9XX
  
  config SCSI_7000FASST
        tristate "7000FASST SCSI support"
-       depends on ISA && SCSI
+       depends on ISA && SCSI && ISA_DMA_API
        help
          This driver supports the Western Digital 7000 SCSI host adapter
          family.  Some information is in the source:
@@@ -313,7 -295,7 +313,7 @@@ config SCSI_AHA152
  
  config SCSI_AHA1542
        tristate "Adaptec AHA1542 support"
-       depends on ISA && SCSI
+       depends on ISA && SCSI && ISA_DMA_API
        ---help---
          This is support for a SCSI host adapter.  It is explained in section
          3.4 of the SCSI-HOWTO, available from
@@@ -533,7 -515,7 +533,7 @@@ config SCSI_SATA_VITESS
  
  config SCSI_BUSLOGIC
        tristate "BusLogic SCSI support"
-       depends on (PCI || ISA || MCA) && SCSI && (BROKEN || !SPARC64)
+       depends on (PCI || ISA || MCA) && SCSI && ISA_DMA_API
        ---help---
          This is support for BusLogic MultiMaster and FlashPoint SCSI Host
          Adapters. Consult the SCSI-HOWTO, available from
@@@ -589,7 -571,7 +589,7 @@@ config SCSI_DTC328
  
  config SCSI_EATA
        tristate "EATA ISA/EISA/PCI (DPT and generic EATA/DMA-compliant boards) support"
-       depends on (ISA || EISA || PCI) && SCSI && (BROKEN || !SPARC64)
+       depends on (ISA || EISA || PCI) && SCSI && ISA_DMA_API
        ---help---
          This driver supports all EATA/DMA-compliant SCSI host adapters.  DPT
          ISA and all EISA I/O addresses are probed looking for the "EATA"
@@@ -683,7 -665,7 +683,7 @@@ config SCSI_FD_MC
  
  config SCSI_GDTH
        tristate "Intel/ICP (former GDT SCSI Disk Array) RAID Controller support"
-       depends on (ISA || EISA || PCI) && SCSI && (BROKEN || !SPARC64)
+       depends on (ISA || EISA || PCI) && SCSI && ISA_DMA_API
        ---help---
          Formerly called GDT SCSI Disk Array Controller Support.
  
@@@ -1210,6 -1192,28 +1210,6 @@@ config SCSI_PAS1
          To compile this driver as a module, choose M here: the
          module will be called pas16.
  
 -config SCSI_PCI2000
 -      tristate "PCI2000 support"
 -      depends on PCI && SCSI && BROKEN
 -      help
 -        This is support for the PCI2000I EIDE interface card which acts as a
 -        SCSI host adapter.  Please read the SCSI-HOWTO, available from
 -        <http://www.tldp.org/docs.html#howto>.
 -
 -        To compile this driver as a module, choose M here: the
 -        module will be called pci2000.
 -
 -config SCSI_PCI2220I
 -      tristate "PCI2220i support"
 -      depends on PCI && SCSI && BROKEN
 -      help
 -        This is support for the PCI2220i EIDE interface card which acts as a
 -        SCSI host adapter.  Please read the SCSI-HOWTO, available from
 -        <http://www.tldp.org/docs.html#howto>.
 -
 -        To compile this driver as a module, choose M here: the
 -        module will be called pci2220i.
 -
  config SCSI_PSI240I
        tristate "PSI240i support"
        depends on ISA && SCSI
@@@ -1412,7 -1416,7 +1412,7 @@@ config SCSI_T12
  
  config SCSI_U14_34F
        tristate "UltraStor 14F/34F support"
-       depends on ISA && SCSI
+       depends on ISA && SCSI && ISA_DMA_API
        ---help---
          This is support for the UltraStor 14F and 34F SCSI-2 host adapters.
          The source at <file:drivers/scsi/u14-34f.c> contains some
diff --combined drivers/scsi/NCR53C9x.c
index 74293f62a622cea46eb9d4ee1a45ba755066fd6c,74b93564a258fdc44ee45e73c833a157b31ec0f5..064781a2cb1a885ed0222ab6b581fc8fbd61ecf9
@@@ -94,7 -94,7 +94,7 @@@ enum 
  };
  
  /* The master ring of all esp hosts we are managing in this driver. */
 -struct NCR_ESP *espchain;
 +static struct NCR_ESP *espchain;
  int nesps = 0, esps_in_use = 0, esps_running = 0;
  
  irqreturn_t esp_intr(int irq, void *dev_id, struct pt_regs *pregs);
@@@ -1824,7 -1824,10 +1824,10 @@@ static int esp_do_data(struct NCR_ESP *
                /* loop */
                while (hmuch) {
                        int j, fifo_stuck = 0, newphase;
-                       unsigned long flags, timeout;
+                       unsigned long timeout;
+ #if 0
+                       unsigned long flags;
+ #endif
  #if 0
                        if ( i % 10 )
                                ESPDATA(("\r"));
index 7e9e6b3186ae8407bda1465e74e184688a2d509e,242fa77513f5a6e3502d2ae12cf3be65ff82853c..5fd8f3ee98043bc26aaeb9ac9d8fd35e8b5514cd
@@@ -215,7 -215,7 +215,7 @@@ static int aac_queuecommand(struct scsi
   *    Returns a static string describing the device in question
   */
  
 -const char *aac_info(struct Scsi_Host *shost)
 +static const char *aac_info(struct Scsi_Host *shost)
  {
        struct aac_dev *dev = (struct aac_dev *)shost->hostdata;
        return aac_drivers[dev->cardtype].name;
@@@ -288,7 -288,7 +288,7 @@@ static int aac_biosparm(struct scsi_dev
         *      translations ( 64/32, 128/32, 255/63 ).
         */
        buf = scsi_bios_ptable(bdev);
 -      if(*(unsigned short *)(buf + 0x40) == cpu_to_le16(0xaa55)) {
 +      if(*(__le16 *)(buf + 0x40) == cpu_to_le16(0xaa55)) {
                struct partition *first = (struct partition * )buf;
                struct partition *entry = first;
                int saved_cylinders = param->cylinders;
@@@ -450,7 -450,7 +450,7 @@@ static int aac_cfg_open(struct inode *i
                }
        }
  
-       return 0;
+       return err;
  }
  
  /**
diff --combined drivers/scsi/scsi.c
index 0d730f646bce895a2f7ef3cabd72a1335311b3d2,184bcaeaf8127620cea60423ac35e7a50eaac5b6..5578ae9a9e45f9f60c99f767e878799f58fda13a
@@@ -542,7 -542,7 +542,7 @@@ int scsi_dispatch_cmd(struct scsi_cmnd 
                 * that the device is no longer present */
                cmd->result = DID_NO_CONNECT << 16;
                atomic_inc(&cmd->device->iorequest_cnt);
-               scsi_done(cmd);
+               __scsi_done(cmd);
                /* return 0 (because the command has been processed) */
                goto out;
        }
        }
        spin_unlock_irqrestore(host->host_lock, flags);
        if (rtn) {
 -              atomic_inc(&cmd->device->iodone_cnt);
 -              scsi_queue_insert(cmd,
 -                              (rtn == SCSI_MLQUEUE_DEVICE_BUSY) ?
 -                               rtn : SCSI_MLQUEUE_HOST_BUSY);
 +              if (scsi_delete_timer(cmd)) {
 +                      atomic_inc(&cmd->device->iodone_cnt);
 +                      scsi_queue_insert(cmd,
 +                                        (rtn == SCSI_MLQUEUE_DEVICE_BUSY) ?
 +                                        rtn : SCSI_MLQUEUE_HOST_BUSY);
 +              }
                SCSI_LOG_MLQUEUE(3,
                    printk("queuecommand : request rejected\n"));
        }
index 103558574662dd8e6c9cfa084f2a8cfecdd02b5e,2bf1ee2b47b645b8bcaf74640e139ee5c018e076..cb789c35262c6296c2b502df724c831ae918cd46
@@@ -434,7 -434,8 +434,7 @@@ static void scsi_eh_times_out(struct sc
        SCSI_LOG_ERROR_RECOVERY(3, printk("%s: scmd:%p\n", __FUNCTION__,
                                          scmd));
  
 -      if (scmd->device->host->eh_action)
 -              up(scmd->device->host->eh_action);
 +      up(scmd->device->host->eh_action);
  }
  
  /**
@@@ -456,7 -457,8 +456,7 @@@ static void scsi_eh_done(struct scsi_cm
                SCSI_LOG_ERROR_RECOVERY(3, printk("%s scmd: %p result: %x\n",
                                           __FUNCTION__, scmd, scmd->result));
  
 -              if (scmd->device->host->eh_action)
 -                      up(scmd->device->host->eh_action);
 +              up(scmd->device->host->eh_action);
        }
  }
  
@@@ -582,7 -584,7 +582,7 @@@ static int scsi_request_sense(struct sc
  
        memcpy(scmd->cmnd, generic_sense, sizeof(generic_sense));
  
-       scsi_result = kmalloc(252, GFP_ATOMIC | (scmd->device->host->hostt->unchecked_isa_dma) ? __GFP_DMA : 0);
+       scsi_result = kmalloc(252, GFP_ATOMIC | ((scmd->device->host->hostt->unchecked_isa_dma) ? __GFP_DMA : 0));
  
  
        if (unlikely(!scsi_result)) {
@@@ -1868,6 -1870,7 +1868,6 @@@ scsi_reset_provider(struct scsi_device 
                rtn = FAILED;
        }
  
 -      scsi_delete_timer(scmd);
        scsi_next_command(scmd);
        return rtn;
  }