From: Olaf Weber Date: Fri, 27 Jan 2017 15:17:01 +0000 (+0100) Subject: LU-9119 lnet: remove "struct' from generated comment X-Git-Tag: 2.15.65~98 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=03dd4734a5999a34f8bf77a53f2d7a30fce75b61;p=fs%2Flustre-release.git LU-9119 lnet: remove "struct' from generated comment The CHECK_STRUCT() generates a comment saying "Checks for struct " followed by the type name. If the type name is 'struct mumble' the result is "Checks for struct struct mumble". Drop the extra "struct". Test-Parameters: trivial testlist=sanity-lnet Signed-off-by: Olaf Weber Signed-off-by: Olaf Weber Change-Id: I90b13a2c500c63accb90ef567b197defd5521dea Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55507 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Chris Horn Reviewed-by: Timothy Day Reviewed-by: Oleg Drokin --- diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index 0825c0b..cf96e8e 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -823,7 +823,7 @@ static void lnet_assert_wire_constants(void) wh_object_cookie) != 8); BUILD_BUG_ON((int)sizeof(((struct lnet_handle_wire *)0)->wh_object_cookie) != 8); - /* Checks for struct struct lnet_magicversion */ + /* Checks for lnet_magicversion */ BUILD_BUG_ON((int)sizeof(struct lnet_magicversion) != 8); BUILD_BUG_ON((int)offsetof(struct lnet_magicversion, magic) != 0); BUILD_BUG_ON((int)sizeof(((struct lnet_magicversion *)0)->magic) != 4); @@ -833,7 +833,7 @@ static void lnet_assert_wire_constants(void) version_minor) != 6); BUILD_BUG_ON((int)sizeof(((struct lnet_magicversion *)0)->version_minor) != 2); - /* Checks for struct _lnet_hdr_nid4 */ + /* Checks for _lnet_hdr_nid4 */ BUILD_BUG_ON((int)sizeof(struct _lnet_hdr_nid4) != 72); BUILD_BUG_ON((int)offsetof(struct _lnet_hdr_nid4, dest_nid) != 0); BUILD_BUG_ON((int)sizeof(((struct _lnet_hdr_nid4 *)0)->dest_nid) != 8); diff --git a/lnet/utils/wirecheck.c b/lnet/utils/wirecheck.c index c431bf3..af61b1f 100644 --- a/lnet/utils/wirecheck.c +++ b/lnet/utils/wirecheck.c @@ -61,7 +61,7 @@ do { \ #define CHECK_STRUCT(s) \ do { \ BLANK_LINE(); \ - COMMENT("Checks for struct "#s); \ + COMMENT("Checks for "#s); \ CHECK_VALUE((int)sizeof(s)); \ } while (0)