1. 16 9月, 2017 1 次提交
  2. 26 8月, 2017 2 次提交
    • A
      scsi: lpfc: avoid false-positive gcc-8 warning · 5fe5a6c9
      Arnd Bergmann 提交于
      This is an interesting regression with gcc-8, showing a harmless warning
      for correct code:
      
      In file included from include/linux/kernel.h:13:0,
                       ...
                       from drivers/scsi/lpfc/lpfc_debugfs.c:23:
      include/linux/printk.h:301:2: error: 'eq' may be used uninitialized in this function [-Werror=maybe-uninitialized]
        printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
        ^~~~~~
      In file included from drivers/scsi/lpfc/lpfc_debugfs.c:58:0:
      drivers/scsi/lpfc/lpfc_debugfs.h:451:31: note: 'eq' was declared here
      
      I managed to reduce the warning into a small test case for gcc-8 that I
      reported in the gcc bugzilla[1].
      
      As a workaround, this changes the logic to move the two assignments of
      'eq' out of the conditions and instead make the index conditional.  This
      works for all configurations I tried and avoids adding a bogus
      initialization.
      Acked-by: NJames Smart <james.smart@broadcom.com>
      Link: [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81958Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      5fe5a6c9
    • A
      scsi: lpfc: avoid an unused function warning · 73626173
      Arnd Bergmann 提交于
      The only reference to lpfc_nvmet_replenish_context() is inside of an
      disabled:
      
      drivers/scsi/lpfc/lpfc_nvmet.c:1457:1: error: 'lpfc_nvmet_replenish_context' defined but not used [-Werror=unused-function]
      
      This replaces the preprocessor conditional with a C condition, so the
      compiler can see that the function is intentionally unused.
      
      Fixes: 9a38e4f1c82f ("scsi: lpfc: Fix MRQ > 1 context list handling")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      73626173
  3. 25 8月, 2017 21 次提交
  4. 10 8月, 2017 1 次提交
    • J
      lpfc: support nvmet_fc defer_rcv callback · 50738420
      James Smart 提交于
      Currently, calls to nvmet_fc_rcv_fcp_req() always copied the
      FC-NVME cmd iu to a temporary buffer before returning, allowing
      the driver to immediately repost the buffer to the hardware.
      
      To address timing conditions on queue element structures vs async
      command reception, the nvmet_fc transport occasionally may need to
      hold on to the command iu buffer for a short period. In these cases,
      the nvmet_fc_rcv_fcp_req() will return a special return code
      (-EOVERFLOW). In these cases, the LLDD must delay until the new
      defer_rcv lldd callback is called before recycling the buffer back
      to the hw.
      
      This patch adds support for the new nvmet_fc transport defer_rcv
      callback and recognition of the new error code when passing commands
      to the transport.
      Signed-off-by: NDick Kennedy <dick.kennedy@broadcom.com>
      Signed-off-by: NJames Smart <james.smart@broadcom.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      50738420
  5. 08 8月, 2017 1 次提交
  6. 04 7月, 2017 1 次提交
  7. 02 7月, 2017 2 次提交
  8. 27 6月, 2017 2 次提交
  9. 20 6月, 2017 9 次提交