答复: [PATCH] nvme: Use kobj_to_dev() instead of container_of()

tiantao (H) tiantao6 at hisilicon.com
Wed Aug 26 02:29:52 EDT 2020


Doesn't really matter for an individual driver, but it may get coppied to lots more. 
I consider it's a little tidy up. 

-----邮件原件-----
发件人: Christoph Hellwig [mailto:hch at lst.de] 
发送时间: 2020年8月26日 13:44
收件人: tiantao (H) <tiantao6 at hisilicon.com>
抄送: kbusch at kernel.org; axboe at fb.com; hch at lst.de; sagi at grimberg.me; linux-nvme at lists.infradead.org; Linuxarm <linuxarm at huawei.com>
主题: Re: [PATCH] nvme: Use kobj_to_dev() instead of container_of()

On Wed, Aug 26, 2020 at 09:20:48AM +0800, Tian Tao wrote:
> Use kobj_to_dev() instead of container_of()

Why?


More information about the Linux-nvme mailing list