summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-03-09 12:56:17 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2019-03-09 12:56:17 -0500
commit1a29e857507046e413ca7a4a7c9cd32fed9ea255 (patch)
tree5a46d9c4dcab39fc588a9ac2c9f5e4c866d41254 /scripts
parentc4703acd6d4a58dc4b31ad2a8f8b14becb898d25 (diff)
parent4064174becc09a5a2385a27c8a6fd40888b0e13c (diff)
Merge tag 'docs-5.1' of git://git.lwn.net/linux
Pull documentation updates from Jonathan Corbet: "A fairly routine cycle for docs - lots of typo fixes, some new documents, and more translations. There's also some LICENSES adjustments from Thomas" * tag 'docs-5.1' of git://git.lwn.net/linux: (74 commits) docs: Bring some order to filesystem documentation Documentation/locking/lockdep: Drop last two chars of sample states doc: rcu: Suspicious RCU usage is a warning docs: driver-api: iio: fix errors in documentation Documentation/process/howto: Update for 4.x -> 5.x versioning docs: Explicitly state that the 'Fixes:' tag shouldn't split lines doc: security: Add kern-doc for lsm_hooks.h doc: sctp: Merge and clean up rst files Docs: Correct /proc/stat path scripts/spdxcheck.py: fix C++ comment style detection doc: fix typos in license-rules.rst Documentation: fix admin-guide/README.rst minimum gcc version requirement doc: process: complete removal of info about -git patches doc: translations: sync translations 'remove info about -git patches' perf-security: wrap paragraphs on 72 columns perf-security: elaborate on perf_events/Perf privileged users perf-security: document collected perf_events/Perf data categories perf-security: document perf_events/Perf resource control sysfs.txt: add note on available attribute macros docs: kernel-doc: typo "if ... if" -> "if ... is" ...
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl13
-rwxr-xr-xscripts/kernel-doc2
-rwxr-xr-xscripts/spdxcheck.py8
3 files changed, 8 insertions, 15 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 8d8d26b5cbbd..5b756278df13 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -6396,19 +6396,6 @@ sub process {
6396 } 6396 }
6397 } 6397 }
6398 6398
6399# check for bool bitfields
6400 if ($sline =~ /^.\s+bool\s*$Ident\s*:\s*\d+\s*;/) {
6401 WARN("BOOL_BITFIELD",
6402 "Avoid using bool as bitfield. Prefer bool bitfields as unsigned int or u<8|16|32>\n" . $herecurr);
6403 }
6404
6405# check for bool use in .h files
6406 if ($realfile =~ /\.h$/ &&
6407 $sline =~ /^.\s+bool\s*$Ident\s*(?::\s*d+\s*)?;/) {
6408 CHK("BOOL_MEMBER",
6409 "Avoid using bool structure members because of possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384\n" . $herecurr);
6410 }
6411
6412# check for semaphores initialized locked 6399# check for semaphores initialized locked
6413 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) { 6400 if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) {
6414 WARN("CONSIDER_COMPLETION", 6401 WARN("CONSIDER_COMPLETION",
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index c5333d251985..3350e498b4ce 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1474,7 +1474,7 @@ sub push_parameter($$$$) {
1474 if (!defined $parameterdescs{$param} && $param !~ /^#/) { 1474 if (!defined $parameterdescs{$param} && $param !~ /^#/) {
1475 $parameterdescs{$param} = $undescribed; 1475 $parameterdescs{$param} = $undescribed;
1476 1476
1477 if (show_warnings($type, $declaration_name)) { 1477 if (show_warnings($type, $declaration_name) && $param !~ /\./) {
1478 print STDERR 1478 print STDERR
1479 "${file}:$.: warning: Function parameter or member '$param' not described in '$declaration_name'\n"; 1479 "${file}:$.: warning: Function parameter or member '$param' not described in '$declaration_name'\n";
1480 ++$warnings; 1480 ++$warnings;
diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py
index e559c6294c39..4fe392e507fb 100755
--- a/scripts/spdxcheck.py
+++ b/scripts/spdxcheck.py
@@ -175,7 +175,13 @@ class id_parser(object):
175 self.lines_checked += 1 175 self.lines_checked += 1
176 if line.find("SPDX-License-Identifier:") < 0: 176 if line.find("SPDX-License-Identifier:") < 0:
177 continue 177 continue
178 expr = line.split(':')[1].replace('*/', '').strip() 178 expr = line.split(':')[1].strip()
179 # Remove trailing comment closure
180 if line.strip().endswith('*/'):
181 expr = expr.rstrip('*/').strip()
182 # Special case for SH magic boot code files
183 if line.startswith('LIST \"'):
184 expr = expr.rstrip('\"').strip()
179 self.parse(expr) 185 self.parse(expr)
180 self.spdx_valid += 1 186 self.spdx_valid += 1
181 # 187 #