]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
tree: Change nvme_dev from global to static
authorJeremy Kerr <jk@codeconstruct.com.au>
Tue, 12 Jul 2022 09:20:25 +0000 (17:20 +0800)
committerDaniel Wagner <dwagner@suse.de>
Fri, 12 Aug 2022 06:51:06 +0000 (08:51 +0200)
commit110f6f152db8943ee1990532639538e67e644b68
tree788e271d18d5e49ff431011e16d5c69050ffea4e
parent5808f743b9a6b6b90906c7a8344edc7e1f03d272
tree: Change nvme_dev from global to static

We're currently exposing the global struct nvme_dev, to allow the old
users access to the name and statbuf data. Now that users have their
local reference (along with the fd) through parse_and_open instead, we
can drop the public definition, and declare it static to nvme.c.

We still keep the static declaration; this will be removed in an
upcoming change.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
nvme.c
nvme.h
plugins/innogrit/innogrit-nvme.c
plugins/intel/intel-nvme.c
plugins/memblaze/memblaze-nvme.c
plugins/scaleflux/sfx-nvme.c
plugins/seagate/seagate-nvme.c
plugins/shannon/shannon-nvme.c
plugins/solidigm/solidigm-garbage-collection.c
plugins/solidigm/solidigm-smart.c
plugins/wdc/wdc-nvme.c