1. 19 4月, 2018 6 次提交
  2. 15 3月, 2018 1 次提交
    • C
      scsi: lpfc: make several unions static, fix non-ANSI prototype · fab2e466
      Colin Ian King 提交于
      There are several unions that are local to the source and do not need to
      be in global scope, so make them static. Also add in a missing void
      parameter to functions lpfc_nvme_cmd_template and
      lpfc_nvmet_cmd_template to clean up non-ANSI warning.
      
      Cleans up sparse warnings:
      drivers/scsi/lpfc/lpfc_nvme.c:68:19: warning: symbol
      'lpfc_iread_cmd_template' was not declared. Should it be static?
      drivers/scsi/lpfc/lpfc_nvme.c:69:19: warning: symbol
      'lpfc_iwrite_cmd_template' was not declared. Should it be static?
      drivers/scsi/lpfc/lpfc_nvme.c:70:19: warning: symbol
      'lpfc_icmnd_cmd_template' was not declared. Should it be static?
      drivers/scsi/lpfc/lpfc_nvme.c:74:24: warning: non-ANSI function
      'lpfc_tsend_cmd_template' was not declared. Should it be static?
      drivers/scsi/lpfc/lpfc_nvmet.c:78:19: warning: symbol
      'lpfc_treceive_cmd_template' was not declared. Should it be static?
      drivers/scsi/lpfc/lpfc_nvmet.c:79:19: warning: symbol
      'lpfc_trsp_cmd_template' was not declared. Should it be static?
      drivers/scsi/lpfc/lpfc_nvmet.c:83:25: warning: non-ANSI function
      declaration of function 'lpfc_nvmet_cmd_template'
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Acked-by: NJames Smart <james.smart@broadcom.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      fab2e466
  3. 13 3月, 2018 10 次提交
  4. 07 3月, 2018 1 次提交
    • J
      scsi: lpfc: use __raw_writeX on DPP copies · 4c06619f
      James Smart 提交于
      Commit 1351e69f ("scsi: lpfc: Add push-to-adapter support to sli4")
      fails compilation on some 32-bit systems as writeq() is not supported on
      all architectures. Additionally, it was pointed out that as writeX()
      does byteswapping if necessary for pci vs the cpu endianness, the code
      was broken on BE PPC.
      
      After discussions with Arnd Bergmann, we've resolved the issue
      to the following:
        Instead of writeX(), use __raw_writeX() - which writes to io
          space while preserving byte order. To use this, the code
          was changed to use a different buffer that lpfc prepped
          via sli_pcimem_bcopy() that was set to the bytestream to
          be written.
        On platforms with __raw_writeq support, use the routine, otherwise
          use __raw_writel()
      
      [mkp: checkpatch]
      
      Fixes: 1351e69f ("scsi: lpfc: Add push-to-adapter support to sli4")
      Signed-off-by: NDick Kennedy <dick.kennedy@broadcom.com>
      Signed-off-by: NJames Smart <james.smart@broadcom.com>
      Reviewed-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      4c06619f
  5. 23 2月, 2018 13 次提交
  6. 13 2月, 2018 9 次提交