Skip to content
Snippets Groups Projects
  1. Feb 22, 2019
    • Aurélien Cedeyn's avatar
      scripts/spdxcheck.py: fix C++ comment style detection · a5f4cb42
      Aurélien Cedeyn authored
      
      With the last commit to support the SuperH boot code files, we have the
      following regression:
      
      $ ./scripts/checkpatch.pl -f <(echo '/* SPDX-License-Identifier: MIT */')
      WARNING: 'SPDX-License-Identifier: MIT */' is not supported in LICENSES/..
      +/* SPDX-License-Identifier: MIT */
      
      total: 0 errors, 1 warnings, 1 lines checked
      
      NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.
      
      /dev/fd/63 has style problems, please review.
      
      NOTE: If any of the errors are false positives, please report
            them to the maintainer, see CHECKPATCH in MAINTAINERS.
      
      This is not obvious, but spdxcheck.py is launched in checkpatch.pl with :
          ...
          } elsif ($rawline =~ /(SPDX-License-Identifier: .*)/) {
              my $spdx_license = $1;
              if (!is_SPDX_License_valid($spdx_license)) {
                  WARN("SPDX_LICENSE_TAG",
                       "'$spdx_license' is not supported in LICENSES/...\n" . \
                       $herecurr);
              }
          ...
          sub is_SPDX_License_valid {
              my ($license) = @_;
              ...
              my $status = `cd "$root_path"; echo "$license" |
                            python scripts/spdxcheck.py -`;
              ...
          }
      
      The first chars before 'SPDX-License-Identifier:' are ignored.
      This commit fixes this regression.
      
      Fixes:959b4968 (scripts/spdxcheck.py: Handle special quotation mark comments)
      Signed-off-by: default avatarAurélien Cedeyn <aurelien.cedeyn@gmail.com>
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      a5f4cb42
  2. Jan 21, 2019
  3. Jan 16, 2019
    • Jonathan Corbet's avatar
      kernel-doc: suppress 'not described' warnings for embedded struct fields · be5cd20c
      Jonathan Corbet authored
      
      The ability to add kerneldoc comments for fields in embedded structures is
      useful, but it brought along a whole bunch of warnings for fields that
      could not be described before.  In many cases, there's little value in
      adding docs for these nested fields, and in cases like:
      
             	struct a {
                  struct b {
      	        int c;
      	    } d, e;
      	};
      
      "c" would have to be described twice (as d.c and e.c) to make the warnings
      go away.
      
      We can no doubt do something smarter, but simply suppressing the warnings
      for this case removes about 70 warnings from the docs build, freeing us to
      focus on the ones that matter more.  So make kerneldoc be silent about
      missing descriptions for any field containing a ".".
      
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      be5cd20c
    • Thomas Gleixner's avatar
      scripts/spdxcheck.py: Handle special quotation mark comments · 959b4968
      Thomas Gleixner authored
      
      The SuperH boot code files use a magic format for the SPDX identifier
      comment:
      
        LIST "SPDX-License-Identifier: .... "
      
      The trailing quotation mark is not stripped before the token parser is
      invoked and causes the scan to fail. Handle it gracefully.
      
      Fixes: 6a0abce4 ("sh: include: convert to SPDX identifiers")
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Cc: Simon Horman <horms+renesas@verge.net.au>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: Rich Felker <dalias@libc.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Kate Stewart <kstewart@linuxfoundation.org>
      Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      959b4968
  4. Jan 06, 2019
  5. Jan 04, 2019
  6. Dec 28, 2018
  7. Dec 21, 2018
Loading