1. 15 10月, 2017 2 次提交
  2. 05 10月, 2017 1 次提交
  3. 30 9月, 2017 8 次提交
  4. 29 9月, 2017 2 次提交
    • C
      RDMA/hns: remove redundant assignment to variable j · e930b4d8
      Colin Ian King 提交于
      Variable j is being assigned to loop_j and then later being
      assigned to a new value in for loops. The first initialization
      is therefore redundant and can be removed.
      
      Cleans up clang warning:
      warning: Value stored to 'j' is never read
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      e930b4d8
    • C
      RDMA/hns: make various function static, fixes warnings · 281d0ccf
      Colin Ian King 提交于
      The functions hns_roce_table_mhop_get, hns_roce_table_mhop_put,
      hns_roce_cleanup_mhop_hem_table,  hns_roce_v1_post_mbox,
      hns_roce_cmq_setup_basic_desc, hns_roce_cmq_send,
      hns_roce_cmq_query_hw_info are all local to the source and do
      not need to be in global scope, so make them static.
      
      Cleans up sparse warnings:
      symbol 'hns_roce_table_mhop_get' was not declared. Should it be static?
      symbol 'hns_roce_table_mhop_put' was not declared. Should it be static?
      symbol 'hns_roce_cleanup_mhop_hem_table' was not declared. Should it be
      static?
      symbol 'hns_roce_v1_post_mbox' was not declared. Should it be static?
      symbol 'hns_roce_cmq_setup_basic_desc' was not declared. Should it be
      static?
      symbol 'hns_roce_cmq_send' was not declared. Should it be static?
      symbol 'hns_roce_cmq_query_hw_info' was not declared. Should it be static?
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      281d0ccf
  5. 27 9月, 2017 21 次提交
  6. 16 8月, 2017 1 次提交
  7. 14 8月, 2017 2 次提交
  8. 05 8月, 2017 1 次提交
  9. 01 8月, 2017 1 次提交
    • A
      IB/hns: include linux/interrupt.h · 967de358
      Arnd Bergmann 提交于
      I ran into this build error on linux-next:
      
      drivers/infiniband/hw/hns/hns_roce_eq.c:477:8: error: unknown type name 'irqreturn_t'
       static irqreturn_t hns_roce_msi_x_interrupt(int irq, void *eq_ptr)
              ^~~~~~~~~~~
      drivers/infiniband/hw/hns/hns_roce_eq.c: In function 'hns_roce_msi_x_interrupt':
      drivers/infiniband/hw/hns/hns_roce_eq.c:485:9: error: implicit declaration of function 'IRQ_RETVAL'; did you mean 'BPF_RVAL'? [-Werror=implicit-function-declaration]
        return IRQ_RETVAL(int_work);
      
      I have bisected this to a seemingly unrelated change that happened
      to remove some indirect header inclusions. Simply including the
      required header explicitly fixes the build failure.
      
      Fixes: 09c75704 ("xfrm: remove flow cache")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      967de358
  10. 29 7月, 2017 1 次提交
    • D
      RDMA/hns: fix build regression · ecd840ff
      Doug Ledford 提交于
      The 0day build system flags implicit includes as errors.  A patch from
      Matan Barak to allow hns_roce, an aarch64 specific RDMA driver, to be
      built on other arches, but it resulted in build regressions.  The
      problem is that hns_roce_device.h needs a definition for __raw_writeq
      but did not have an include to provide it.  Add <linux/io.h> as an
      include to resolve the issue.
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      ecd840ff