Re: [PATCH 2/6] blk-mq: use the introduced blk_mq_unquiesce_queue()

2017-05-26 Thread Ming Lei
On Fri, May 26, 2017 at 03:46:51PM +0800, kbuild test robot wrote:
> Hi Ming,
> 
> [auto build test ERROR on block/for-next]
> [also build test ERROR on v4.12-rc2 next-20170525]
> [if your patch is applied to the wrong git tree, please drop us a note to 
> help improve the system]
> 
> url:
> https://github.com/0day-ci/linux/commits/Ming-Lei/blk-mq-introduce-blk_mq_unquiesce_queue/20170526-140138
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 
> for-next
> config: x86_64-randconfig-x019-201721 (attached as .config)
> compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
> reproduce:
> # save the attached .config to linux build tree
> make ARCH=x86_64 
> 
> Note: the 
> linux-review/Ming-Lei/blk-mq-introduce-blk_mq_unquiesce_queue/20170526-140138 
> HEAD 470e70e5203ed8f76bb7c1a86db58023098bfc21 builds fine.
>   It only hurts bisectibility.
> 
> All errors (new ones prefixed by >>):
> 
>drivers/scsi/scsi_lib.c: In function 'scsi_internal_device_unblock':
> >> drivers/scsi/scsi_lib.c:3033:7: error: implicit declaration of function 
> >> 'blk_queue_quiesced' [-Werror=implicit-function-declaration]
>   if (blk_queue_quiesced(q))
>   ^~
>Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
>Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
>Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:test_and_clear_bit
>Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
>Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit
>Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
>Cyclomatic Complexity 1 include/uapi/linux/swab.h:__swab16p
>Cyclomatic Complexity 1 
> include/uapi/linux/byteorder/little_endian.h:__be16_to_cpup
>Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
>Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
>Cyclomatic Complexity 1 include/linux/list.h:__list_add_valid
>Cyclomatic Complexity 1 include/linux/list.h:__list_del_entry_valid
>Cyclomatic Complexity 2 include/linux/list.h:__list_add
>Cyclomatic Complexity 1 include/linux/list.h:list_add_tail
>Cyclomatic Complexity 1 include/linux/list.h:__list_del
>Cyclomatic Complexity 2 include/linux/list.h:__list_del_entry
>Cyclomatic Complexity 1 include/linux/list.h:list_del
>Cyclomatic Complexity 1 include/linux/list.h:list_del_init
>Cyclomatic Complexity 1 include/linux/list.h:list_move_tail
>Cyclomatic Complexity 1 include/linux/list.h:list_empty
>Cyclomatic Complexity 1 include/linux/list.h:__list_splice
>Cyclomatic Complexity 2 include/linux/list.h:list_splice
>Cyclomatic Complexity 2 include/linux/list.h:list_splice_init
>Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current
>Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
>Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_read
>Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_set
>Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_inc
>Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_dec
>Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_add_return
>Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_sub_return
>Cyclomatic Complexity 1 include/linux/jump_label.h:static_key_count
>Cyclomatic Complexity 2 include/linux/jump_label.h:static_key_false
>Cyclomatic Complexity 1 
> arch/x86/include/asm/paravirt.h:arch_local_save_flags
>Cyclomatic Complexity 1 
> arch/x86/include/asm/irqflags.h:arch_irqs_disabled_flags
>Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
>Cyclomatic Complexity 1 
> arch/x86/include/asm/preempt.h:__preempt_count_dec_and_test
>Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
>Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock_irq
>Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irq
>Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irqrestore
>Cyclomatic Complexity 1 
> include/linux/rcupdate.h:rcu_read_lock_sched_notrace
>Cyclomatic Complexity 1 include/linux/mm.h:lowmem_page_address
>Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled_inc
>Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled_dec
>Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disable
>Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_enable
>Cyclomatic Complexity 1 include/linux/highmem.h:kmap_atomic
>Cyclomatic Complexity 1 include/linux/blk_types.h:op_is_write
>Cyclomatic Complexity 1 include/linux/slab.h:kmem_cache_alloc_node
>Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
>Cyclomatic Complexity 3 include/linux/slab.h:kmalloc
>Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
>Cyclomatic 

Re: [PATCH 2/6] blk-mq: use the introduced blk_mq_unquiesce_queue()

2017-05-26 Thread kbuild test robot
Hi Ming,

[auto build test ERROR on block/for-next]
[also build test ERROR on v4.12-rc2 next-20170525]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Ming-Lei/blk-mq-introduce-blk_mq_unquiesce_queue/20170526-140138
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 
for-next
config: x86_64-randconfig-x019-201721 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

Note: the 
linux-review/Ming-Lei/blk-mq-introduce-blk_mq_unquiesce_queue/20170526-140138 
HEAD 470e70e5203ed8f76bb7c1a86db58023098bfc21 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/scsi/scsi_lib.c: In function 'scsi_internal_device_unblock':
>> drivers/scsi/scsi_lib.c:3033:7: error: implicit declaration of function 
>> 'blk_queue_quiesced' [-Werror=implicit-function-declaration]
  if (blk_queue_quiesced(q))
  ^~
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:test_and_clear_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
   Cyclomatic Complexity 1 include/uapi/linux/swab.h:__swab16p
   Cyclomatic Complexity 1 
include/uapi/linux/byteorder/little_endian.h:__be16_to_cpup
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 1 include/linux/list.h:__list_add_valid
   Cyclomatic Complexity 1 include/linux/list.h:__list_del_entry_valid
   Cyclomatic Complexity 2 include/linux/list.h:__list_add
   Cyclomatic Complexity 1 include/linux/list.h:list_add_tail
   Cyclomatic Complexity 1 include/linux/list.h:__list_del
   Cyclomatic Complexity 2 include/linux/list.h:__list_del_entry
   Cyclomatic Complexity 1 include/linux/list.h:list_del
   Cyclomatic Complexity 1 include/linux/list.h:list_del_init
   Cyclomatic Complexity 1 include/linux/list.h:list_move_tail
   Cyclomatic Complexity 1 include/linux/list.h:list_empty
   Cyclomatic Complexity 1 include/linux/list.h:__list_splice
   Cyclomatic Complexity 2 include/linux/list.h:list_splice
   Cyclomatic Complexity 2 include/linux/list.h:list_splice_init
   Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_read
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_set
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_inc
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_dec
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_add_return
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_sub_return
   Cyclomatic Complexity 1 include/linux/jump_label.h:static_key_count
   Cyclomatic Complexity 2 include/linux/jump_label.h:static_key_false
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_save_flags
   Cyclomatic Complexity 1 
arch/x86/include/asm/irqflags.h:arch_irqs_disabled_flags
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
   Cyclomatic Complexity 1 
arch/x86/include/asm/preempt.h:__preempt_count_dec_and_test
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock_irq
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irq
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irqrestore
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_lock_sched_notrace
   Cyclomatic Complexity 1 include/linux/mm.h:lowmem_page_address
   Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled_inc
   Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled_dec
   Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disable
   Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_enable
   Cyclomatic Complexity 1 include/linux/highmem.h:kmap_atomic
   Cyclomatic Complexity 1 include/linux/blk_types.h:op_is_write
   Cyclomatic Complexity 1 include/linux/slab.h:kmem_cache_alloc_node
   Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 3 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 1 include/linux/blkdev.h:blk_rq_is_scsi
   Cyclomatic Complexity 1 include/linux/blkdev.h:blk_rq_is_private
   Cyclomatic Complexity 3 include/linux/blkdev.h:blk_rq_is_passthrough
   Cyclomatic Complexity 1