From d3f1ceeb123da9603cd5ee3acbd4ee638a995f10 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Tue, 14 Apr 2020 14:31:14 -0400 Subject: [PATCH] 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 --- contrib/scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 1.8.3.1