Whamcloud - gitweb
LU-6142 build: match lnet comment style to linux net layer 23/38223/4
authorJames Simmons <jsimmons@infradead.org>
Tue, 14 Apr 2020 18:31:14 +0000 (14:31 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 1 May 2020 04:26:20 +0000 (04:26 +0000)
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 <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/38223
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/scripts/checkpatch.pl

index 15b9dd6..763c205 100755 (executable)
@@ -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) {