1. 07 3月, 2017 15 次提交
  2. 28 2月, 2017 2 次提交
    • A
      scsi: lpfc: use proper format string for dma_addr_t · 825c6abb
      Arnd Bergmann 提交于
      dma_addr_t may be either u32 or u64, depending on the kernel configuration,
      and we get a warning for the 32-bit case:
      
      drivers/scsi/lpfc/lpfc_nvme.c: In function 'lpfc_nvme_ls_req':
      drivers/scsi/lpfc/lpfc_logmsg.h:52:52: error: format '%llu' expects argument of type 'long long unsigned int', but argument 11 has type 'dma_addr_t {aka unsigned int}' [-Werror=format=]
      drivers/scsi/lpfc/lpfc_logmsg.h:52:52: error: format '%llu' expects argument of type 'long long unsigned int', but argument 12 has type 'dma_addr_t {aka unsigned int}' [-Werror=format=]
      drivers/scsi/lpfc/lpfc_nvme.c: In function 'lpfc_nvme_ls_abort':
      drivers/scsi/lpfc/lpfc_logmsg.h:52:52: error: format '%llu' expects argument of type 'long long unsigned int', but argument 11 has type 'dma_addr_t {aka unsigned int}' [-Werror=format=]
      drivers/scsi/lpfc/lpfc_logmsg.h:52:52: error: format '%llu' expects argument of type 'long long unsigned int', but argument 12 has type 'dma_addr_t {aka unsigned int}' [-Werror=format=]
      
      printk has a special "%pad" format string that passes the dma address by
      reference to solve this problem.
      
      Fixes: 01649561 ("scsi: lpfc: NVME Initiator: bind to nvme_fc api")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      825c6abb
    • A
      scsi: lpfc: use div_u64 for 64-bit division · 90ec7c9d
      Arnd Bergmann 提交于
      The new debugfs output causes a link error on 32-bit architectures:
      
      ERROR: "__aeabi_uldivmod" [drivers/scsi/lpfc/lpfc.ko] undefined!
      
      This code is not performance critical, so we can simply use div_u64().
      
      [mkp: fixed up whitespace]
      
      Fixes: bd2cdd5e ("scsi: lpfc: NVME Initiator: Add debugfs support")
      Fixes: 2b65e182 ("scsi: lpfc: NVME Target: Add debugfs support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      90ec7c9d
  3. 23 2月, 2017 16 次提交
  4. 07 2月, 2017 1 次提交
  5. 21 1月, 2017 2 次提交
  6. 18 1月, 2017 1 次提交
  7. 14 1月, 2017 1 次提交
    • P
      locking/atomic, kref: Add kref_read() · 2c935bc5
      Peter Zijlstra 提交于
      Since we need to change the implementation, stop exposing internals.
      
      Provide kref_read() to read the current reference count; typically
      used for debug messages.
      
      Kills two anti-patterns:
      
      	atomic_read(&kref->refcount)
      	kref->refcount.counter
      Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      2c935bc5
  8. 12 1月, 2017 1 次提交
  9. 06 1月, 2017 1 次提交