[PATCH] nvme: make some sysfs diagnostic structures static

Keith Busch kbusch at kernel.org
Wed Jun 10 07:31:39 PDT 2026


On Wed, Jun 10, 2026 at 08:53:32AM +0000, John Garry wrote:
> Building with C=1 generates the following warnings:
> drivers/nvme/host/sysfs.c:397:25: warning: symbol 'dev_attr_io_errors' was not declared. Should it be static?
> drivers/nvme/host/sysfs.c:444:30: warning: symbol 'nvme_ns_diag_attr_group' was not declared. Should it be static?
> drivers/nvme/host/sysfs.c:1150:25: warning: symbol 'dev_attr_adm_errors' was not declared. Should it be static?
> 
> Make those structures static.

Thanks, applied to nvme-7.2.



More information about the Linux-nvme mailing list