lcheck: Handle boilerplate in the start line of c comment correctly

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
diff --git a/lcheck.py b/lcheck.py
index 1409cd4..368837d 100755
--- a/lcheck.py
+++ b/lcheck.py
@@ -791,6 +791,8 @@
                 return 0
 
         stop_bp = False
+        start_bp = False
+        start_bp_comment = -1
         endbp = 0
 
         while i < len(orig):
@@ -802,6 +804,16 @@
                 if self.stop_boilerplate(l, i, args):
                     stop_bp = True
                 if not stop_bp and self.line_is_boilerplate(i, args):
+                    if not start_bp:
+                        start_bp = True
+                        ls = l.strip()
+                        if ls.startswith('/*'):
+                            if ls.endswith('*/'):
+                                continue
+                            j += 1
+                            self.patch.append('/*n')
+                            start_bp_comment = j
+                            continue
                     # HACK
                     if not self.exclude_from_boilerplate(l, i):
                         # Protect copyright notices
@@ -815,7 +827,7 @@
                             l = self.sanitize_copyright(i, l)
                 else:
                     pass
- 
+
                 # HACK
                 if l and self.line_is_missed_boilerplate(l, i):
                     endbp = j + 1
@@ -825,6 +837,13 @@
             if not l:
                 print('OOPS: %s: %d %d' %(self.path, i, j))
                 continue
+
+            if start_bp_comment >= 0 and start_bp_comment == j:
+                if l.strip() == '*/':
+                    self.patch.pop(-1)
+                    j -= 1
+                    continue
+
             j += 1
             self.patch.append(l)
 
@@ -1145,7 +1164,7 @@
         licenses_m = {}
 
         variants = []
-        
+
         for entry in self.entries:
             tot_files += 1
             if entry.has_spdx():