From 3af10d510078ddf050fbda2ef80bdc6920d89f8d Mon Sep 17 00:00:00 2001 From: Steve Guminski Date: Mon, 7 Aug 2017 14:01:32 -0400 Subject: [PATCH] LU-6210 ptlrpc: Use C99 initializer in ptlrpc_register_rqbd() This patch makes no functional changes. The struct initializer in ptlrpc_register_rqbd() is updated to C99 syntax. C89 positional initializers require values to be placed in the correct order. This will cause errors if the fields of the struct definition are reordered or fields are added or removed. C99 named initializers avoid this problem, and also automatically clear any values that are not explicitly set. Test-Parameters: trivial Signed-off-by: Steve Guminski Change-Id: I7c24bac3ba6be6732b206406cd74b0d4f8a1f9c2 Reviewed-on: https://review.whamcloud.com/28479 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lustre/ptlrpc/niobuf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lustre/ptlrpc/niobuf.c b/lustre/ptlrpc/niobuf.c index 9998690..ee7163c 100644 --- a/lustre/ptlrpc/niobuf.c +++ b/lustre/ptlrpc/niobuf.c @@ -944,7 +944,10 @@ EXPORT_SYMBOL(ptl_send_rpc); int ptlrpc_register_rqbd(struct ptlrpc_request_buffer_desc *rqbd) { struct ptlrpc_service *service = rqbd->rqbd_svcpt->scp_service; - static struct lnet_process_id match_id = {LNET_NID_ANY, LNET_PID_ANY}; + static struct lnet_process_id match_id = { + .nid = LNET_NID_ANY, + .pid = LNET_PID_ANY + }; int rc; struct lnet_md md; struct lnet_handle_me me_h; -- 1.8.3.1