diff options
| -rw-r--r-- | drivers/message/fusion/mptctl.c | 2 | ||||
| -rw-r--r-- | drivers/scsi/Makefile | 1 | ||||
| -rw-r--r-- | drivers/scsi/aacraid/linit.c | 4 | ||||
| -rw-r--r-- | drivers/scsi/aic7xxx/aiclib.c | 34 | ||||
| -rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc_io.c | 1 | ||||
| -rw-r--r-- | drivers/scsi/csiostor/csio_lnode.c | 2 | ||||
| -rw-r--r-- | drivers/scsi/device_handler/scsi_dh_alua.c | 5 | ||||
| -rw-r--r-- | drivers/scsi/ibmvscsi/ibmvfc.h | 2 | ||||
| -rw-r--r-- | drivers/scsi/mpt3sas/mpt3sas_base.c | 5 | ||||
| -rw-r--r-- | drivers/scsi/qedi/qedi_main.c | 55 | ||||
| -rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 23 | ||||
| -rw-r--r-- | drivers/scsi/qla2xxx/qla_iocb.c | 7 | ||||
| -rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 6 | ||||
| -rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 2 | ||||
| -rw-r--r-- | drivers/scsi/qla2xxx/qla_target.c | 2 | ||||
| -rw-r--r-- | drivers/scsi/qla4xxx/ql4_def.h | 2 | ||||
| -rw-r--r-- | drivers/scsi/qla4xxx/ql4_os.c | 46 | ||||
| -rw-r--r-- | drivers/scsi/storvsc_drv.c | 2 | ||||
| -rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.c | 2 | ||||
| -rw-r--r-- | drivers/scsi/ufs/ufshcd.c | 2 |
20 files changed, 107 insertions, 98 deletions
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index 8d12017b9893..4470630dd545 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c | |||
| @@ -2687,6 +2687,8 @@ mptctl_hp_targetinfo(unsigned long arg) | |||
| 2687 | __FILE__, __LINE__, iocnum); | 2687 | __FILE__, __LINE__, iocnum); |
| 2688 | return -ENODEV; | 2688 | return -ENODEV; |
| 2689 | } | 2689 | } |
| 2690 | if (karg.hdr.id >= MPT_MAX_FC_DEVICES) | ||
| 2691 | return -EINVAL; | ||
| 2690 | dctlprintk(ioc, printk(MYIOC_s_DEBUG_FMT "mptctl_hp_targetinfo called.\n", | 2692 | dctlprintk(ioc, printk(MYIOC_s_DEBUG_FMT "mptctl_hp_targetinfo called.\n", |
| 2691 | ioc->name)); | 2693 | ioc->name)); |
| 2692 | 2694 | ||
diff --git a/drivers/scsi/Makefile b/drivers/scsi/Makefile index fcfd28d2884c..de1b3fce936d 100644 --- a/drivers/scsi/Makefile +++ b/drivers/scsi/Makefile | |||
| @@ -185,7 +185,6 @@ ncr53c8xx-flags-$(CONFIG_SCSI_ZALON) \ | |||
| 185 | CFLAGS_ncr53c8xx.o := $(ncr53c8xx-flags-y) $(ncr53c8xx-flags-m) | 185 | CFLAGS_ncr53c8xx.o := $(ncr53c8xx-flags-y) $(ncr53c8xx-flags-m) |
| 186 | zalon7xx-objs := zalon.o ncr53c8xx.o | 186 | zalon7xx-objs := zalon.o ncr53c8xx.o |
| 187 | NCR_Q720_mod-objs := NCR_Q720.o ncr53c8xx.o | 187 | NCR_Q720_mod-objs := NCR_Q720.o ncr53c8xx.o |
| 188 | oktagon_esp_mod-objs := oktagon_esp.o oktagon_io.o | ||
| 189 | 188 | ||
| 190 | # Files generated that shall be removed upon make clean | 189 | # Files generated that shall be removed upon make clean |
| 191 | clean-files := 53c700_d.h 53c700_u.h | 190 | clean-files := 53c700_d.h 53c700_u.h |
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index b3b931ab77eb..2664ea0df35f 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c | |||
| @@ -1693,8 +1693,10 @@ static int aac_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
| 1693 | * Map in the registers from the adapter. | 1693 | * Map in the registers from the adapter. |
| 1694 | */ | 1694 | */ |
| 1695 | aac->base_size = AAC_MIN_FOOTPRINT_SIZE; | 1695 | aac->base_size = AAC_MIN_FOOTPRINT_SIZE; |
| 1696 | if ((*aac_drivers[index].init)(aac)) | 1696 | if ((*aac_drivers[index].init)(aac)) { |
| 1697 | error = -ENODEV; | ||
| 1697 | goto out_unmap; | 1698 | goto out_unmap; |
| 1699 | } | ||
| 1698 | 1700 | ||
| 1699 | if (aac->sync_mode) { | 1701 | if (aac->sync_mode) { |
| 1700 | if (aac_sync_mode) | 1702 | if (aac_sync_mode) |
diff --git a/drivers/scsi/aic7xxx/aiclib.c b/drivers/scsi/aic7xxx/aiclib.c deleted file mode 100644 index 828ae3d9a510..000000000000 --- a/drivers/scsi/aic7xxx/aiclib.c +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Implementation of Utility functions for all SCSI device types. | ||
| 3 | * | ||
| 4 | * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. | ||
| 5 | * Copyright (c) 1997, 1998 Kenneth D. Merry. | ||
| 6 | * All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * 1. Redistributions of source code must retain the above copyright | ||
| 12 | * notice, this list of conditions, and the following disclaimer, | ||
| 13 | * without modification, immediately at the beginning of the file. | ||
| 14 | * 2. The name of the author may not be used to endorse or promote products | ||
| 15 | * derived from this software without specific prior written permission. | ||
| 16 | * | ||
| 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | ||
| 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR | ||
| 21 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 27 | * SUCH DAMAGE. | ||
| 28 | * | ||
| 29 | * $FreeBSD: src/sys/cam/scsi/scsi_all.c,v 1.38 2002/09/23 04:56:35 mjacob Exp $ | ||
| 30 | * $Id$ | ||
| 31 | */ | ||
| 32 | |||
| 33 | #include "aiclib.h" | ||
| 34 | |||
diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c index 8e2f767147cb..5a645b8b9af1 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_io.c +++ b/drivers/scsi/bnx2fc/bnx2fc_io.c | |||
| @@ -1889,6 +1889,7 @@ void bnx2fc_process_scsi_cmd_compl(struct bnx2fc_cmd *io_req, | |||
| 1889 | /* we will not receive ABTS response for this IO */ | 1889 | /* we will not receive ABTS response for this IO */ |
| 1890 | BNX2FC_IO_DBG(io_req, "Timer context finished processing " | 1890 | BNX2FC_IO_DBG(io_req, "Timer context finished processing " |
| 1891 | "this scsi cmd\n"); | 1891 | "this scsi cmd\n"); |
| 1892 | return; | ||
| 1892 | } | 1893 | } |
| 1893 | 1894 | ||
| 1894 | /* Cancel the timeout_work, as we received IO completion */ | 1895 | /* Cancel the timeout_work, as we received IO completion */ |
diff --git a/drivers/scsi/csiostor/csio_lnode.c b/drivers/scsi/csiostor/csio_lnode.c index be5ee2d37815..7dbbbb81a1e7 100644 --- a/drivers/scsi/csiostor/csio_lnode.c +++ b/drivers/scsi/csiostor/csio_lnode.c | |||
| @@ -114,7 +114,7 @@ static enum csio_ln_ev fwevt_to_lnevt[] = { | |||
| 114 | static struct csio_lnode * | 114 | static struct csio_lnode * |
| 115 | csio_ln_lookup_by_portid(struct csio_hw *hw, uint8_t portid) | 115 | csio_ln_lookup_by_portid(struct csio_hw *hw, uint8_t portid) |
| 116 | { | 116 | { |
| 117 | struct csio_lnode *ln = hw->rln; | 117 | struct csio_lnode *ln; |
| 118 | struct list_head *tmp; | 118 | struct list_head *tmp; |
| 119 | 119 | ||
| 120 | /* Match siblings lnode with portid */ | 120 | /* Match siblings lnode with portid */ |
diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c index 022e421c2185..4b44325d1a82 100644 --- a/drivers/scsi/device_handler/scsi_dh_alua.c +++ b/drivers/scsi/device_handler/scsi_dh_alua.c | |||
| @@ -876,6 +876,11 @@ static void alua_rtpg_work(struct work_struct *work) | |||
| 876 | 876 | ||
| 877 | /** | 877 | /** |
| 878 | * alua_rtpg_queue() - cause RTPG to be submitted asynchronously | 878 | * alua_rtpg_queue() - cause RTPG to be submitted asynchronously |
| 879 | * @pg: ALUA port group associated with @sdev. | ||
| 880 | * @sdev: SCSI device for which to submit an RTPG. | ||
| 881 | * @qdata: Information about the callback to invoke after the RTPG. | ||
| 882 | * @force: Whether or not to submit an RTPG if a work item that will submit an | ||
| 883 | * RTPG already has been scheduled. | ||
| 879 | * | 884 | * |
| 880 | * Returns true if and only if alua_rtpg_work() will be called asynchronously. | 885 | * Returns true if and only if alua_rtpg_work() will be called asynchronously. |
| 881 | * That function is responsible for calling @qdata->fn(). | 886 | * That function is responsible for calling @qdata->fn(). |
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.h b/drivers/scsi/ibmvscsi/ibmvfc.h index 9a0696f68f37..b81a53c4a9a8 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.h +++ b/drivers/scsi/ibmvscsi/ibmvfc.h | |||
| @@ -367,7 +367,7 @@ enum ibmvfc_fcp_rsp_info_codes { | |||
| 367 | }; | 367 | }; |
| 368 | 368 | ||
| 369 | struct ibmvfc_fcp_rsp_info { | 369 | struct ibmvfc_fcp_rsp_info { |
| 370 | __be16 reserved; | 370 | u8 reserved[3]; |
| 371 | u8 rsp_code; | 371 | u8 rsp_code; |
| 372 | u8 reserved2[4]; | 372 | u8 reserved2[4]; |
| 373 | }__attribute__((packed, aligned (2))); | 373 | }__attribute__((packed, aligned (2))); |
diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index 13d6e4ec3022..59a87ca328d3 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c | |||
| @@ -2410,8 +2410,11 @@ _base_assign_reply_queues(struct MPT3SAS_ADAPTER *ioc) | |||
| 2410 | continue; | 2410 | continue; |
| 2411 | } | 2411 | } |
| 2412 | 2412 | ||
| 2413 | for_each_cpu(cpu, mask) | 2413 | for_each_cpu_and(cpu, mask, cpu_online_mask) { |
| 2414 | if (cpu >= ioc->cpu_msix_table_sz) | ||
| 2415 | break; | ||
| 2414 | ioc->cpu_msix_table[cpu] = reply_q->msix_index; | 2416 | ioc->cpu_msix_table[cpu] = reply_q->msix_index; |
| 2417 | } | ||
| 2415 | } | 2418 | } |
| 2416 | return; | 2419 | return; |
| 2417 | } | 2420 | } |
diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c index 029e2e69b29f..f57a94b4f0d9 100644 --- a/drivers/scsi/qedi/qedi_main.c +++ b/drivers/scsi/qedi/qedi_main.c | |||
| @@ -1724,7 +1724,6 @@ static ssize_t qedi_show_boot_eth_info(void *data, int type, char *buf) | |||
| 1724 | { | 1724 | { |
| 1725 | struct qedi_ctx *qedi = data; | 1725 | struct qedi_ctx *qedi = data; |
| 1726 | struct nvm_iscsi_initiator *initiator; | 1726 | struct nvm_iscsi_initiator *initiator; |
| 1727 | char *str = buf; | ||
| 1728 | int rc = 1; | 1727 | int rc = 1; |
| 1729 | u32 ipv6_en, dhcp_en, ip_len; | 1728 | u32 ipv6_en, dhcp_en, ip_len; |
| 1730 | struct nvm_iscsi_block *block; | 1729 | struct nvm_iscsi_block *block; |
| @@ -1758,32 +1757,32 @@ static ssize_t qedi_show_boot_eth_info(void *data, int type, char *buf) | |||
| 1758 | 1757 | ||
| 1759 | switch (type) { | 1758 | switch (type) { |
| 1760 | case ISCSI_BOOT_ETH_IP_ADDR: | 1759 | case ISCSI_BOOT_ETH_IP_ADDR: |
| 1761 | rc = snprintf(str, ip_len, fmt, ip); | 1760 | rc = snprintf(buf, ip_len, fmt, ip); |
| 1762 | break; | 1761 | break; |
| 1763 | case ISCSI_BOOT_ETH_SUBNET_MASK: | 1762 | case ISCSI_BOOT_ETH_SUBNET_MASK: |
| 1764 | |||
