@@ -99,25 +99,25 @@ struct nvme_passthru_cmd {
9999 * @result: Set on completion to the command's CQE DWORD 0-1 controller response
100100 */
101101struct nvme_passthru_cmd64 {
102- __u8 opcode ;
103- __u8 flags ;
104- __u16 rsvd1 ;
105- __u32 nsid ;
106- __u32 cdw2 ;
107- __u32 cdw3 ;
108- __u64 metadata ;
109- __u64 addr ;
110- __u32 metadata_len ;
111- __u32 data_len ;
112- __u32 cdw10 ;
113- __u32 cdw11 ;
114- __u32 cdw12 ;
115- __u32 cdw13 ;
116- __u32 cdw14 ;
117- __u32 cdw15 ;
118- __u32 timeout_ms ;
119- __u32 rsvd2 ;
120- __u64 result ;
102+ __u8 opcode ;
103+ __u8 flags ;
104+ __u16 rsvd1 ;
105+ __u32 nsid ;
106+ __u32 cdw2 ;
107+ __u32 cdw3 ;
108+ __u64 metadata ;
109+ __u64 addr ;
110+ __u32 metadata_len ;
111+ __u32 data_len ;
112+ __u32 cdw10 ;
113+ __u32 cdw11 ;
114+ __u32 cdw12 ;
115+ __u32 cdw13 ;
116+ __u32 cdw14 ;
117+ __u32 cdw15 ;
118+ __u32 timeout_ms ;
119+ __u32 rsvd2 ;
120+ __u64 result ;
121121};
122122
123123/**
@@ -186,12 +186,12 @@ struct nvme_uring_cmd {
186186 * @align: Alignment information
187187 */
188188#define sizeof_args (type , member , align ) \
189- ({ \
190- type s; \
191- size_t t = offsetof(type, member) + sizeof(s.member); \
192- size_t p = (sizeof(align) - (t % sizeof(align))) % sizeof(align); \
193- t + p; \
194- })
189+ ({ \
190+ type s; \
191+ size_t t = offsetof(type, member) + sizeof(s.member); \
192+ size_t p = (sizeof(align) - (t % sizeof(align))) % sizeof(align); \
193+ t + p; \
194+ })
195195
196196/**
197197 * nvme_submit_admin_passthru64() - Submit a 64-bit nvme passthrough admin
@@ -1287,8 +1287,8 @@ static inline int nvme_get_log_supported_log_pages(int fd, bool rae,
12871287 * Return: The nvme command status if a response was received (see
12881288 * &enum nvme_status_field) or -1 with errno set otherwise.
12891289 */
1290- static inline int nvme_get_log_error (int fd , unsigned nr_entries , bool rae ,
1291- struct nvme_error_log_page * err_log )
1290+ static inline int nvme_get_log_error (int fd , unsigned int nr_entries , bool rae ,
1291+ struct nvme_error_log_page * err_log )
12921292{
12931293 return nvme_get_nsid_log (fd , rae , NVME_LOG_LID_ERROR ,
12941294 NVME_NSID_ALL , sizeof (* err_log ) * nr_entries ,
@@ -1641,7 +1641,7 @@ static inline int nvme_get_log_predictable_lat_event(int fd, bool rae,
16411641 * &enum nvme_status_field) or -1 with errno set otherwise.
16421642 */
16431643static inline int nvme_get_log_ana (int fd , enum nvme_log_ana_lsp lsp , bool rae ,
1644- __u64 offset , __u32 len , void * log )
1644+ __u64 offset , __u32 len , void * log )
16451645{
16461646 struct nvme_get_log_args args = {
16471647 .lpo = offset ,
@@ -2249,7 +2249,7 @@ int nvme_set_features_auto_pst(int fd, bool apste, bool save,
22492249 * nvme_set_features_timestamp() - Set timestamp feature
22502250 * @fd: File descriptor of nvme device
22512251 * @save: Save value across power states
2252- * @timestamp: The current timestamp value to assign to this this feature
2252+ * @timestamp: The current timestamp value to assign to this feature
22532253 *
22542254 * Return: The nvme command status if a response was received (see
22552255 * &enum nvme_status_field) or -1 with errno set otherwise.
@@ -2310,7 +2310,7 @@ int nvme_set_features_rrl(int fd, __u8 rrl, __u16 nvmsetid, bool save,
23102310 */
23112311int nvme_set_features_plm_config (int fd , bool enable , __u16 nvmsetid ,
23122312 bool save , struct nvme_plm_config * data ,
2313- __u32 * result );
2313+ __u32 * result );
23142314
23152315/**
23162316 * nvme_set_features_plm_window() - Set window select feature
@@ -3250,7 +3250,7 @@ static inline int nvme_directive_recv_stream_parameters(int fd, __u32 nsid,
32503250 * &enum nvme_status_field) or -1 with errno set otherwise.
32513251 */
32523252static inline int nvme_directive_recv_stream_status (int fd , __u32 nsid ,
3253- unsigned nr_entries ,
3253+ unsigned int nr_entries ,
32543254 struct nvme_streams_directive_status * id )
32553255{
32563256 struct nvme_directive_recv_args args = {
@@ -3409,7 +3409,8 @@ int nvme_virtual_mgmt(struct nvme_virtual_mgmt_args *args);
34093409 * Return: The nvme command status if a response was received (see
34103410 * &enum nvme_status_field) or -1 with errno set otherwise.
34113411 */
3412- static inline int nvme_flush (int fd , __u32 nsid ) {
3412+ static inline int nvme_flush (int fd , __u32 nsid )
3413+ {
34133414 struct nvme_passthru_cmd cmd = {};
34143415
34153416 cmd .opcode = nvme_cmd_flush ;
0 commit comments