@@ -880,7 +880,7 @@ static int get_telemetry_log(int argc, char **argv, struct command *cmd,
880
880
881
881
_cleanup_free_ struct nvme_telemetry_log * log = NULL ;
882
882
_cleanup_nvme_dev_ struct nvme_dev * dev = NULL ;
883
- _cleanup_file_ int output = -1 ;
883
+ _cleanup_fd_ int output = -1 ;
884
884
int err = 0 ;
885
885
size_t total_size ;
886
886
__u8 * data_ptr = NULL ;
@@ -1808,7 +1808,7 @@ static int get_boot_part_log(int argc, char **argv, struct command *cmd, struct
1808
1808
_cleanup_free_ __u8 * bp_log = NULL ;
1809
1809
nvme_print_flags_t flags ;
1810
1810
int err = -1 ;
1811
- _cleanup_file_ int output = -1 ;
1811
+ _cleanup_fd_ int output = -1 ;
1812
1812
__u32 bpsz = 0 ;
1813
1813
1814
1814
struct config {
@@ -2183,7 +2183,7 @@ static int io_mgmt_recv(int argc, char **argv, struct command *cmd, struct plugi
2183
2183
_cleanup_nvme_dev_ struct nvme_dev * dev = NULL ;
2184
2184
_cleanup_free_ void * buf = NULL ;
2185
2185
int err = -1 ;
2186
- _cleanup_file_ int dfd = -1 ;
2186
+ _cleanup_fd_ int dfd = -1 ;
2187
2187
2188
2188
struct config {
2189
2189
__u16 mos ;
@@ -4903,7 +4903,7 @@ static int fw_download(int argc, char **argv, struct command *cmd, struct plugin
4903
4903
4904
4904
_cleanup_nvme_dev_ struct nvme_dev * dev = NULL ;
4905
4905
_cleanup_huge_ struct nvme_mem_huge mh = { 0 , };
4906
- _cleanup_file_ int fw_fd = -1 ;
4906
+ _cleanup_fd_ int fw_fd = -1 ;
4907
4907
unsigned int fw_size , pos ;
4908
4908
int err ;
4909
4909
struct stat sb ;
@@ -6374,7 +6374,7 @@ static int set_feature(int argc, char **argv, struct command *cmd, struct plugin
6374
6374
6375
6375
_cleanup_nvme_dev_ struct nvme_dev * dev = NULL ;
6376
6376
_cleanup_free_ void * buf = NULL ;
6377
- _cleanup_file_ int ffd = STDIN_FILENO ;
6377
+ _cleanup_fd_ int ffd = STDIN_FILENO ;
6378
6378
int err ;
6379
6379
__u32 result ;
6380
6380
@@ -6524,7 +6524,7 @@ static int sec_send(int argc, char **argv, struct command *cmd, struct plugin *p
6524
6524
6525
6525
_cleanup_nvme_dev_ struct nvme_dev * dev = NULL ;
6526
6526
_cleanup_free_ void * sec_buf = NULL ;
6527
- _cleanup_file_ int sec_fd = -1 ;
6527
+ _cleanup_fd_ int sec_fd = -1 ;
6528
6528
unsigned int sec_size ;
6529
6529
int err ;
6530
6530
@@ -6633,7 +6633,7 @@ static int dir_send(int argc, char **argv, struct command *cmd, struct plugin *p
6633
6633
_cleanup_free_ void * buf = NULL ;
6634
6634
__u32 result ;
6635
6635
__u32 dw12 = 0 ;
6636
- _cleanup_file_ int ffd = STDIN_FILENO ;
6636
+ _cleanup_fd_ int ffd = STDIN_FILENO ;
6637
6637
int err ;
6638
6638
6639
6639
struct config {
@@ -7720,7 +7720,7 @@ static int submit_io(int opcode, char *command, const char *desc, int argc, char
7720
7720
void * buffer ;
7721
7721
_cleanup_free_ void * mbuffer = NULL ;
7722
7722
int err = 0 ;
7723
- _cleanup_file_ int dfd = -1 , mfd = -1 ;
7723
+ _cleanup_fd_ int dfd = -1 , mfd = -1 ;
7724
7724
int flags ;
7725
7725
int mode = 0644 ;
7726
7726
__u16 control = 0 , nblocks = 0 ;
@@ -8728,7 +8728,7 @@ static int passthru(int argc, char **argv, bool admin,
8728
8728
8729
8729
_cleanup_huge_ struct nvme_mem_huge mh = { 0 , };
8730
8730
_cleanup_nvme_dev_ struct nvme_dev * dev = NULL ;
8731
- _cleanup_file_ int dfd = -1 , mfd = -1 ;
8731
+ _cleanup_fd_ int dfd = -1 , mfd = -1 ;
8732
8732
int flags ;
8733
8733
int mode = 0644 ;
8734
8734
void * data = NULL ;
@@ -9663,7 +9663,7 @@ static int nvme_mi(int argc, char **argv, __u8 admin_opcode, const char *desc)
9663
9663
void * data = NULL ;
9664
9664
int err = 0 ;
9665
9665
bool send ;
9666
- _cleanup_file_ int fd = -1 ;
9666
+ _cleanup_fd_ int fd = -1 ;
9667
9667
int flags ;
9668
9668
_cleanup_huge_ struct nvme_mem_huge mh = { 0 , };
9669
9669
_cleanup_nvme_dev_ struct nvme_dev * dev = NULL ;
0 commit comments