1. 18 8月, 2016 1 次提交
  2. 16 8月, 2016 1 次提交
  3. 04 8月, 2016 3 次提交
  4. 03 8月, 2016 1 次提交
  5. 12 7月, 2016 2 次提交
    • A
      nvme-loop: fix nvme-loop Kconfig dependencies · 6eae8c45
      Arnd Bergmann 提交于
      I ran into the same problem on NVME_TARGET_RDMA now,
      which otherwise needs dependencies on both CONFIG_BLOCK and
      CONFIGFS_FS:
      
          warning: (NVME_TARGET_LOOP && NVME_TARGET_RDMA) selects NVME_TARGET which has unmet direct dependencies (BLOCK && CONFIGFS_FS)
          0xA002B368 Mon Jul 11 18:00:45 CEST 2016 failed
          In file included from ../drivers/nvme/target/core.c:16:0:
          drivers/nvme/target/nvmet.h:222:14: error: field 'inline_bio' has incomplete type
            struct bio  inline_bio;
                        ^~~~~~~~~~
          drivers/nvme/target/core.c: In function 'nvmet_async_event_work':
          drivers/nvme/target/core.c:98:3: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
             kfree(aen);
             ^~~~~
          ../drivers/nvme/target/core.c: In function 'nvmet_ns_enable':
          ../drivers/nvme/target/core.c:269:13: error: implicit declaration of function 'blkdev_get_by_path' [-Werror=implicit-function-declaration]
            ns->bdev = blkdev_get_by_path(ns->device_path, FMODE_READ | FMODE_WRITE,
      
      Folding in my patch below should address that too.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Reported-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      6eae8c45
    • W
      nvmet: fix return value check in nvmet_subsys_alloc() · 69555af2
      Wei Yongjun 提交于
      In case of error, the function kstrndup() returns NULL pointer
      not ERR_PTR(). The IS_ERR() test in the return value check
      should be replaced with NULL test.
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Reviewed-by: NJay Freyensee <james_p_freyensee@linux.intel.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      69555af2
  6. 08 7月, 2016 1 次提交
  7. 07 7月, 2016 2 次提交
    • D
      nvmet: fix an error code · f98d9ca1
      Dan Carpenter 提交于
      We accidentally return zero here when ERR_PTR(-ENOMEM) is intended.
      
      Fixes: a07b4970 ('nvmet: add a generic NVMe target')
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      f98d9ca1
    • A
      nvme-loop: add configfs dependency · 1fb47040
      Arnd Bergmann 提交于
      CONFIG_NVME_TARGET has a correct CONFIG_CONFIGFS_FS dependency, but the
      newly added NVME_TARGET_LOOP is missing this, resulting in a link
      failure:
      
      drivers/nvme/built-in.o: In function `nvmet_init_configfs':
      loop.c:(.init.text+0x2a0): undefined reference to `config_group_init'
      loop.c:(.init.text+0x2c0): undefined reference to `config_group_init_type_name'
      loop.c:(.init.text+0x318): undefined reference to `configfs_register_subsystem'
      drivers/nvme/built-in.o: In function `nvmet_exit_configfs':
      loop.c:(.exit.text+0x9c): undefined reference to `configfs_unregister_subsystem'
      
      This adds the same dependency here.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 3a85a5de ("nvme-loop: add a NVMe loopback host driver")
      Signed-off-by: NJens Axboe <axboe@fb.com>
      1fb47040
  8. 06 7月, 2016 2 次提交