From: James Simmons Date: Tue, 14 Apr 2020 18:31:14 +0000 (-0400) Subject: LU-6142 build: match lnet comment style to linux net layer X-Git-Tag: 2.13.54~161 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F38223%2F4;p=fs%2Flustre-release.git LU-6142 build: match lnet comment style to linux net layer The network layer of the linux kernel has a comment style of /* and in the future LNet will be placed in the Linux network * subsystem which means this comment format will be required. */ Test-Parameters: trivial Change-Id: Ia3584662954c529b4fb72ab4515f3888d8d64072 Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/38223 Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo Reviewed-by: Arshad Hussain Reviewed-by: Oleg Drokin --- diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index 15b9dd6..763c205 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -3042,7 +3042,7 @@ sub process { # Block comment styles # Networking with an initial /* - if ($realfile =~ m@^(drivers/net/|net/)@ && + if ($realfile =~ m@^(drivers/net/|net/|lnet)@ && $prevrawline =~ /^\+[ \t]*\/\*[ \t]*$/ && $rawline =~ /^\+[ \t]*\*/ && $realline > 2) {