@@ -823,7 +823,7 @@ static int get_telemetry_log(int argc, char **argv, struct command *acmd,
823823 __cleanup_free struct nvme_id_ctrl * id_ctrl = NULL ;
824824 _cleanup_nvme_global_ctx_ struct libnvme_global_ctx * ctx = NULL ;
825825 _cleanup_nvme_transport_handle_ struct libnvme_transport_handle * hdl = NULL ;
826- _cleanup_fd_ int output = -1 ;
826+ __cleanup_fd int output = -1 ;
827827 int err = 0 ;
828828 size_t total_size = 0 ;
829829 __u8 * data_ptr = NULL ;
@@ -1831,7 +1831,7 @@ static int get_boot_part_log(int argc, char **argv, struct command *acmd, struct
18311831 __cleanup_free __u8 * bp_log = NULL ;
18321832 nvme_print_flags_t flags ;
18331833 int err = -1 ;
1834- _cleanup_fd_ int output = -1 ;
1834+ __cleanup_fd int output = -1 ;
18351835 __u32 bpsz = 0 ;
18361836
18371837 struct config {
@@ -2111,7 +2111,7 @@ static int io_mgmt_send(int argc, char **argv, struct command *acmd, struct plug
21112111
21122112 _cleanup_nvme_transport_handle_ struct libnvme_transport_handle * hdl = NULL ;
21132113 _cleanup_nvme_global_ctx_ struct libnvme_global_ctx * ctx = NULL ;
2114- _cleanup_fd_ int dfd = STDIN_FILENO ;
2114+ __cleanup_fd int dfd = STDIN_FILENO ;
21152115 __cleanup_free void * buf = NULL ;
21162116 struct libnvme_passthru_cmd cmd ;
21172117 int err = -1 ;
@@ -2189,7 +2189,7 @@ static int io_mgmt_recv(int argc, char **argv, struct command *acmd, struct plug
21892189 _cleanup_nvme_global_ctx_ struct libnvme_global_ctx * ctx = NULL ;
21902190 __cleanup_free void * buf = NULL ;
21912191 struct libnvme_passthru_cmd cmd ;
2192- _cleanup_fd_ int dfd = -1 ;
2192+ __cleanup_fd int dfd = -1 ;
21932193 int err = -1 ;
21942194
21952195 struct config {
@@ -5124,7 +5124,7 @@ static int fw_download(int argc, char **argv, struct command *acmd, struct plugi
51245124 _cleanup_nvme_global_ctx_ struct libnvme_global_ctx * ctx = NULL ;
51255125 _cleanup_nvme_transport_handle_ struct libnvme_transport_handle * hdl = NULL ;
51265126 _cleanup_huge_ struct nvme_mem_huge mh = { 0 , };
5127- _cleanup_fd_ int fw_fd = -1 ;
5127+ __cleanup_fd int fw_fd = -1 ;
51285128 unsigned int fw_size , pos ;
51295129 int err ;
51305130 struct stat sb ;
@@ -6861,7 +6861,7 @@ static int set_feature(int argc, char **argv, struct command *acmd, struct plugi
68616861 _cleanup_nvme_global_ctx_ struct libnvme_global_ctx * ctx = NULL ;
68626862 _cleanup_nvme_transport_handle_ struct libnvme_transport_handle * hdl = NULL ;
68636863 __cleanup_free void * buf = NULL ;
6864- _cleanup_fd_ int ffd = STDIN_FILENO ;
6864+ __cleanup_fd int ffd = STDIN_FILENO ;
68656865 int err ;
68666866 __u64 result ;
68676867 nvme_print_flags_t flags ;
@@ -7007,7 +7007,7 @@ static int sec_send(int argc, char **argv, struct command *acmd, struct plugin *
70077007 _cleanup_nvme_transport_handle_ struct libnvme_transport_handle * hdl = NULL ;
70087008 struct libnvme_passthru_cmd cmd ;
70097009 __cleanup_free void * sec_buf = NULL ;
7010- _cleanup_fd_ int sec_fd = -1 ;
7010+ __cleanup_fd int sec_fd = -1 ;
70117011 unsigned int sec_size ;
70127012 int err ;
70137013 nvme_print_flags_t flags ;
@@ -7120,7 +7120,7 @@ static int dir_send(int argc, char **argv, struct command *acmd, struct plugin *
71207120 __cleanup_free void * buf = NULL ;
71217121 struct libnvme_passthru_cmd cmd ;
71227122 __u32 dw12 = 0 ;
7123- _cleanup_fd_ int ffd = STDIN_FILENO ;
7123+ __cleanup_fd int ffd = STDIN_FILENO ;
71247124 int err ;
71257125
71267126 struct config {
@@ -8322,7 +8322,7 @@ static int submit_io(int opcode, char *command, const char *desc, int argc, char
83228322 unsigned int logical_block_size = 0 ;
83238323 struct timeval start_time , end_time ;
83248324 __cleanup_free void * mbuffer = NULL ;
8325- _cleanup_fd_ int dfd = -1 , mfd = -1 ;
8325+ __cleanup_fd int dfd = -1 , mfd = -1 ;
83268326 __u16 control = 0 , nblocks = 0 ;
83278327 struct libnvme_passthru_cmd cmd ;
83288328 __u8 sts = 0 , pif = 0 ;
@@ -9274,7 +9274,7 @@ static int passthru(int argc, char **argv, bool admin,
92749274 _cleanup_huge_ struct nvme_mem_huge mh = { 0 , };
92759275 _cleanup_nvme_global_ctx_ struct libnvme_global_ctx * ctx = NULL ;
92769276 _cleanup_nvme_transport_handle_ struct libnvme_transport_handle * hdl = NULL ;
9277- _cleanup_fd_ int dfd = -1 , mfd = -1 ;
9277+ __cleanup_fd int dfd = -1 , mfd = -1 ;
92789278 int flags ;
92799279 int mode = 0644 ;
92809280 void * data = NULL ;
@@ -10426,7 +10426,7 @@ static int libnvme_mi(int argc, char **argv, __u8 admin_opcode, const char *desc
1042610426 void * data = NULL ;
1042710427 int err = 0 ;
1042810428 bool send ;
10429- _cleanup_fd_ int fd = -1 ;
10429+ __cleanup_fd int fd = -1 ;
1043010430 int flags ;
1043110431 _cleanup_huge_ struct nvme_mem_huge mh = { 0 , };
1043210432 _cleanup_nvme_global_ctx_ struct libnvme_global_ctx * ctx = NULL ;
0 commit comments