ib_srpt: Update encode_wr_id() argument type
Subsystems (2)
PATCH 1/3 ib_srpt: Update encode_wr_id() argument type
Since commit 6b7227866 the first argument passed to encode_wr_id() is always of type enum srpt_opcode. Make this explicit by updating the function declaration. Also insert a blank line between function definitions as is done in the rest of the Linux kernel.
Signed-off-by Bart Van Assche <[email protected]>
Cc Nicholas Bellinger <[email protected]>
Cc Roland Dreier <[email protected]>
Cc Christoph Hellwig <[email protected]>
--- drivers/infiniband/ulp/srpt/ib_srpt.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/infiniband/ulp/srpt/ib_srpt.h +3 -1
@@ -138,14 +138,16 @@ enum srpt_opcode { SRPT_RDMA_WRITE_LAST, }; -static inline u64 encode_wr_id (u8 opcode,u32 idx) +static inline u64 encode_wr_id (enum srpt_opcode opcode,u32 idx) {return ((u64 )opcode <<32 ) | idx; } +static inline enum srpt_opcode opcode_from_wr_id (u64 wr_id) {return wr_id >>32 ; } +static inline u32 idx_from_wr_id (u64 wr_id) {return (u32 )wr_id;
Signature · 6 lines
1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Bart Van Assche
Since commit
6b7227866the first argument passed toencode_wr_id()is always of type enumsrpt_opcode. Make this explicit by updating the function declaration. Also insert a blank line between function definitions as is done in the rest of the Linux kernel.Signed-off-by Bart Van Assche <[email protected]>Cc Nicholas Bellinger <[email protected]>Cc Roland Dreier <[email protected]>Cc Christoph Hellwig <[email protected]>
Series applied.
Thanks Bart!
--nab