Re: [PATCH V2] blk-mq: kill warning when building block/blk-mq-debugfs-zoned.c

Ming Lei
2022-03-09T01:15:57Z

On Wed, Mar 02, 2022 at 08:34:31AM +0800, Ming Lei wrote:
> Fix the following warning when building block/blk-mq-debugfs-zoned.c:
>
> In file included from block/blk-mq-debugfs-zoned.c:7:
> block/blk-mq-debugfs.h:24:14: warning: ‘struct blk_mq_hw_ctx’ declared inside parameter list will not be visible outside of this definition or declaration
> 24 | struct blk_mq_hw_ctx *hctx);
> | ^~~~~~~~~~~~~
>
> Cc: Christoph Hellwig <hch@lst.de>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Ming Lei <ming.lei@redhat.com>
> ---
> V2:
> - forward declaration of struct blk_mq_hw_ctx instead of including
> header, as suggested by Christoph

Hello Jens,

This patch looks missed, can you take a look?

Thanks,
Ming