19 Jun, 2019

3 commits

  • Based on 1 normalized pattern(s):

    gplv2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 58 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081207.556988620@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    this file is subject to the terms and conditions of the gnu general
    public license v2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 1 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Enrico Weigelt
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081203.508532280@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

14 Jun, 2019

1 commit

  • At least for ARM64 kernels compiled with the crosstoolchain from
    Debian/stretch or with the toolchain from kernel.org the line number is
    not decoded correctly by 'decode_stacktrace.sh':

    $ echo "[ 136.513051] f1+0x0/0xc [kcrash]" | \
    CROSS_COMPILE=/opt/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- \
    ./scripts/decode_stacktrace.sh /scratch/linux-arm64/vmlinux \
    /scratch/linux-arm64 \
    /nfs/debian/lib/modules/4.20.0-devel
    [ 136.513051] f1 (/linux/drivers/staging/kcrash/kcrash.c:68) kcrash

    If addr2line from the toolchain is used the decoded line number is correct:

    [ 136.513051] f1 (/linux/drivers/staging/kcrash/kcrash.c:57) kcrash

    Link: http://lkml.kernel.org/r/20190527083425.3763-1-manut@linutronix.de
    Signed-off-by: Manuel Traut
    Acked-by: Konstantin Khlebnikov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Manuel Traut
     

09 Jun, 2019

1 commit

  • Pull yet more SPDX updates from Greg KH:
    "Another round of SPDX header file fixes for 5.2-rc4

    These are all more "GPL-2.0-or-later" or "GPL-2.0-only" tags being
    added, based on the text in the files. We are slowly chipping away at
    the 700+ different ways people tried to write the license text. All of
    these were reviewed on the spdx mailing list by a number of different
    people.

    We now have over 60% of the kernel files covered with SPDX tags:
    $ ./scripts/spdxcheck.py -v 2>&1 | grep Files
    Files checked: 64533
    Files with SPDX: 40392
    Files with errors: 0

    I think the majority of the "easy" fixups are now done, it's now the
    start of the longer-tail of crazy variants to wade through"

    * tag 'spdx-5.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (159 commits)
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 450
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 449
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 448
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 446
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 445
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 444
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 443
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 442
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 440
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 438
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 437
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 436
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 435
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 434
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 433
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 432
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 431
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 430
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 429
    ...

    Linus Torvalds
     

07 Jun, 2019

1 commit

  • To print the pathname that will be used by shell in the current
    environment, 'command -v' is a standardized way. [1]

    'which' is also often used in scripts, but it is less portable.

    When I worked on commit bd55f96fa9fc ("kbuild: refactor cc-cross-prefix
    implementation"), I was eager to use 'command -v' but it did not work.
    (The reason is explained below.)

    I kept 'which' as before but got rid of '> /dev/null 2>&1' as I
    thought it was no longer needed. Sorry, I was wrong.

    It works well on my Ubuntu machine, but Alexey Brodkin reports noisy
    warnings on CentOS7 when 'which' fails to find the given command in
    the PATH environment.

    $ which foo
    which: no foo in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)

    Given that behavior of 'which' depends on system (and it may not be
    installed by default), I want to try 'command -v' once again.

    The specification [1] clearly describes the behavior of 'command -v'
    when the given command is not found:

    Otherwise, no output shall be written and the exit status shall reflect
    that the name was not found.

    However, we need a little magic to use 'command -v' from Make.

    $(shell ...) passes the argument to a subshell for execution, and
    returns the standard output of the command.

    Here is a trick. GNU Make may optimize this by executing the command
    directly instead of forking a subshell, if no shell special characters
    are found in the command and omitting the subshell will not change the
    behavior.

    In this case, no shell special character is used. So, Make will try
    to run it directly. However, 'command' is a shell-builtin command,
    then Make would fail to find it in the PATH environment:

    $ make ARCH=m68k defconfig
    make: command: Command not found
    make: command: Command not found
    make: command: Command not found

    In fact, Make has a table of shell-builtin commands because it must
    ask the shell to execute them.

    Until recently, 'command' was missing in the table.

    This issue was fixed by the following commit:

    | commit 1af314465e5dfe3e8baa839a32a72e83c04f26ef
    | Author: Paul Smith
    | Date: Sun Nov 12 18:10:28 2017 -0500
    |
    | * job.c: Add "command" as a known shell built-in.
    |
    | This is not a POSIX shell built-in but it's common in UNIX shells.
    | Reported by Nick Bowler .

    Because the latest release is GNU Make 4.2.1 in 2016, this commit is
    not included in any released versions. (But some distributions may
    have back-ported it.)

    We need to trick Make to spawn a subshell. There are various ways to
    do so:

    1) Use a shell special character '~' as dummy

    $(shell : ~; command -v $(c)gcc)

    2) Use a variable reference that always expands to the empty string
    (suggested by David Laight)

    $(shell command$${x:+} -v $(c)gcc)

    3) Use redirect

    $(shell command -v $(c)gcc 2>/dev/null)

    I chose 3) to not confuse people. The stderr would not be polluted
    anyway, but it will provide extra safety, and is easy to understand.

    Tested on Make 3.81, 3.82, 4.0, 4.1, 4.2, 4.2.1

    [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html

    Fixes: bd55f96fa9fc ("kbuild: refactor cc-cross-prefix implementation")
    Cc: linux-stable # 5.1
    Reported-by: Alexey Brodkin
    Signed-off-by: Masahiro Yamada
    Tested-by: Alexey Brodkin

    Masahiro Yamada
     

05 Jun, 2019

10 commits

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation version 2 of the license

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 315 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Armijn Hemel
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190531190115.503150771@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    gpl 2 0 applies

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 1 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Armijn Hemel
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190531190115.220546219@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    this program file is free software you can redistribute it and or
    modify it under the terms of the gnu general public license as
    published by the free software foundation version 2 of the license
    this program is distributed in the hope that it will be useful but
    without any warranty without even the implied warranty of
    merchantability or fitness for a particular purpose see the gnu
    general public license for more details you should have received a
    copy of the gnu general public license along with this program in a
    file named copying if not write to the free software foundation inc
    51 franklin street fifth floor boston ma 02110 1301 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 1 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Richard Fontana
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190531081038.017566012@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    licensed under the gnu general public license version 2 gplv2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 5 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Kate Stewart
    Reviewed-by: Armijn Hemel
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190531081036.993848054@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    this program file is free software you can redistribute it and or
    modify it under the terms of the gnu general public license as
    published by the free software foundation version 2 of the license

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 1 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Armijn Hemel
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190531081036.527324761@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    released under gplv2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 1 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Alexios Zavras
    Reviewed-by: Armijn Hemel
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190530000436.946199729@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    gpl v2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 19 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Reviewed-by: Steve Winslow
    Reviewed-by: Kate Stewart
    Reviewed-by: Alexios Zavras
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190529141333.108140152@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • The following error occurs for the `make ARCH=arm64 checkstack` case:

    aarch64-linux-gnu-objdump -d vmlinux $(find . -name '*.ko') | \
    perl ./scripts/checkstack.pl arm64
    wrong or unknown architecture "arm64"

    As suggested by Masahiro Yamada, fix the above error using regular
    expressions in the same way it was fixed for the `ARCH=x86` case via
    commit fda9f9903be6 ("scripts/checkstack.pl: automatically handle
    32-bit and 64-bit mode for ARCH=x86").

    Suggested-by: Masahiro Yamada
    Signed-off-by: George G. Davis
    Signed-off-by: Masahiro Yamada

    George G. Davis
     
  • The buildtar script might want to invoke a make, so tell the parent
    make to pass the jobserver token pipe to the subcommand by prefixing
    the command with a +.

    This addresses the issue seen here:

    /bin/sh ../scripts/package/buildtar tar-pkg
    make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.

    See https://www.gnu.org/software/make/manual/html_node/Job-Slots.html
    for more information.

    Signed-off-by: Trevor Bourget
    Signed-off-by: Masahiro Yamada

    Trevor Bourget
     
  • Adding SPDX license identifier is pretty safe; however, here is one
    exception.

    Since commit ec8f24b7faaf ("treewide: Add SPDX license identifier -
    Makefile/Kconfig"), "make testconfig" would not pass.

    When Kconfig detects a circular file inclusion, it displays error
    messages with a file name and a line number prefixed to each line.

    The unit test checks if Kconfig emits the error messages correctly
    (this also checks the line number correctness).

    Now that the test input has the SPDX license identifier at the very top,
    the line numbers in the expected stderr should be incremented by 1.

    Fixes: ec8f24b7faaf ("treewide: Add SPDX license identifier - Makefile/Kconfig")
    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

02 Jun, 2019

3 commits

  • Merge misc fixes from Andrew Morton:
    "Various fixes and followups"

    * emailed patches from Andrew Morton :
    mm, compaction: make sure we isolate a valid PFN
    include/linux/generic-radix-tree.h: fix kerneldoc comment
    kernel/signal.c: trace_signal_deliver when signal_group_exit
    drivers/iommu/intel-iommu.c: fix variable 'iommu' set but not used
    spdxcheck.py: fix directory structures
    kasan: initialize tag to 0xff in __kasan_kmalloc
    z3fold: fix sheduling while atomic
    scripts/gdb: fix invocation when CONFIG_COMMON_CLK is not set
    mm/gup: continue VM_FAULT_RETRY processing even for pre-faults
    ocfs2: fix error path kobject memory leak
    memcg: make it work on sparse non-0-node systems
    mm, memcg: consider subtrees in memory.events
    prctl_set_mm: downgrade mmap_sem to read lock
    prctl_set_mm: refactor checks from validate_prctl_map
    kernel/fork.c: make max_threads symbol static
    arch/arm/boot/compressed/decompress.c: fix build error due to lz4 changes
    arch/parisc/configs/c8000_defconfig: remove obsoleted CONFIG_DEBUG_SLAB_LEAK
    mm/vmalloc.c: fix typo in comment
    lib/sort.c: fix kernel-doc notation warnings
    mm: fix Documentation/vm/hmm.rst Sphinx warnings

    Linus Torvalds
     
  • The LICENSE directory has recently changed structure and this makes
    spdxcheck fails as per below:

    FAIL: "Blob or Tree named 'other' not found"
    Traceback (most recent call last):
    File "scripts/spdxcheck.py", line 240, in
    spdx = read_spdxdata(repo)
    File "scripts/spdxcheck.py", line 41, in read_spdxdata
    for el in lictree[d].traverse():
    [...]
    KeyError: "Blob or Tree named 'other' not found"

    Fix the script to restore the correctness on checkpatch License checking.

    References: 62be257e986d ("LICENSES: Rename other to deprecated")
    References: 8ea8814fcdcb ("LICENSES: Clearly mark dual license only licenses")
    Link: http://lkml.kernel.org/r/20190523084755.56739-1-vincenzo.frascino@arm.com
    Signed-off-by: Vincenzo Frascino
    Cc: Joe Perches
    Cc: Christoph Hellwig
    Cc: Thomas Gleixner
    Cc: Jeremy Cline
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vincenzo Frascino
     
  • CLK_GET_RATE_NOCACHE depends on CONFIG_COMMON_CLK. Importing constants.py
    when CONFIG_COMMON_CLK is not defined causes:

    (gdb) lx-symbols
    (...)
    File "scripts/gdb/linux/proc.py", line 15, in
    from linux import constants
    File "scripts/gdb/linux/constants.py", line 2, in
    LX_CLK_GET_RATE_NOCACHE = gdb.parse_and_eval("CLK_GET_RATE_NOCACHE")
    gdb.error: No symbol "CLK_GET_RATE_NOCACHE" in current context.

    Link: http://lkml.kernel.org/r/20190523195313.24701-1-farosas@linux.ibm.com
    Fixes: e7e6f462c1be ("scripts/gdb: print cached rate in lx-clk-summary")
    Signed-off-by: Fabiano Rosas
    Reviewed-by: Stephen Boyd
    Cc: Jan Kiszka
    Cc: Kieran Bingham
    Cc: Leonard Crestez
    Cc: Jackie Liu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fabiano Rosas
     

01 Jun, 2019

1 commit


31 May, 2019

7 commits

  • Pull yet more SPDX updates from Greg KH:
    "Here is another set of reviewed patches that adds SPDX tags to
    different kernel files, based on a set of rules that are being used to
    parse the comments to try to determine that the license of the file is
    "GPL-2.0-or-later" or "GPL-2.0-only". Only the "obvious" versions of
    these matches are included here, a number of "non-obvious" variants of
    text have been found but those have been postponed for later review
    and analysis.

    There is also a patch in here to add the proper SPDX header to a bunch
    of Kbuild files that we have missed in the past due to new files being
    added and forgetting that Kbuild uses two different file names for
    Makefiles. This issue was reported by the Kbuild maintainer.

    These patches have been out for review on the linux-spdx@vger mailing
    list, and while they were created by automatic tools, they were
    hand-verified by a bunch of different people, all whom names are on
    the patches are reviewers"

    * tag 'spdx-5.2-rc3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (82 commits)
    treewide: Add SPDX license identifier - Kbuild
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 225
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 224
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 223
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 222
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 221
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 220
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 218
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 217
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 216
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 215
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 214
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 213
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 211
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 210
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 209
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 207
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 203
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201
    ...

    Linus Torvalds
     
  • Add SPDX license identifiers to all Make/Kconfig files which:

    - Have no license information of any form

    These files fall under the project license, GPL v2 only. The resulting SPDX
    license identifier is:

    GPL-2.0

    Reported-by: Masahiro Yamada
    Signed-off-by: Greg Kroah-Hartman
    Reviewed-by: Kate Stewart
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Based on 1 normalized pattern(s):

    released under gpl v2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 15 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Steve Winslow
    Reviewed-by: Allison Randal
    Reviewed-by: Alexios Zavras
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190528171438.895196075@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    licensed under the terms of the gnu gpl version 2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 1 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Alexios Zavras
    Reviewed-by: Richard Fontana
    Reviewed-by: Steve Winslow
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190528170027.911569875@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    licensed under the terms of the gnu gpl license version 2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 62 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Reviewed-by: Richard Fontana
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070033.929121379@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 3 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version [author] [kishon] [vijay] [abraham]
    [i] [kishon]@[ti] [com] this program is distributed in the hope that
    it will be useful but without any warranty without even the implied
    warranty of merchantability or fitness for a particular purpose see
    the gnu general public license for more details

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version [author] [graeme] [gregory]
    [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i]
    [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema]
    [hk] [hemahk]@[ti] [com] this program is distributed in the hope
    that it will be useful but without any warranty without even the
    implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 1105 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details you
    should have received a copy of the gnu general public license along
    with this program if not write to the free software foundation inc
    59 temple place suite 330 boston ma 02111 1307 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 1334 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070033.113240726@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

30 May, 2019

1 commit

  • Pull documentation fixes from Jonathan Corbet:
    "The Sphinx 2.0 release contained a few incompatible API changes that
    broke our extensions and, thus, the documentation build in general.
    Who knew that those deprecation warnings it was outputting actually
    meant we should change something? This set of fixes makes the build
    work again with Sphinx 2.0 and eliminates the warnings for 1.8. As
    part of that, we also need a few fixes to the docs for places where
    the new Sphinx is more strict.

    It is a bit late in the cycle for this kind of change, but it does fix
    problems that people are experiencing now.

    There has been some talk of raising the minimum version of Sphinx we
    support. I don't want to do that abruptly, though, so these changes
    add some glue to continue to support versions back to 1.3. We will be
    adding some infrastructure soon to nudge users of old versions
    forward, with the idea of maybe increasing our minimum version (and
    removing this glue) sometime in the future"

    * tag 'docs-5.2-fixes2' of git://git.lwn.net/linux:
    drm/i915: Maintain consistent documentation subsection ordering
    scripts/sphinx-pre-install: make it handle Sphinx versions
    docs: Fix conf.py for Sphinx 2.0
    docs: fix multiple doc build warnings in enumeration.rst
    lib/list_sort: fix kerneldoc build error
    docs: fix numaperf.rst and add it to the doc tree
    doc: Cope with the deprecation of AutoReporter
    doc: Cope with Sphinx logging deprecations

    Linus Torvalds
     

25 May, 2019

2 commits

  • Pull Devicetree fixes from Rob Herring:

    - Update checkpatch.pl to use DT vendor-prefixes.yaml

    - Fix DT binding references to files converted to DT schema

    - Clean-up Arm CPU binding examples to match schema

    - Add Sifive block versioning scheme documentation

    - Pass binding directory base to validation tools for reference lookups

    * tag 'devicetree-fixes-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
    checkpatch.pl: Update DT vendor prefix check
    dt: bindings: mtd: replace references to nand.txt with nand-controller.yaml
    dt-bindings: interrupt-controller: arm,gic: Fix schema errors in example
    dt-bindings: arm: Clean up CPU binding examples
    dt: fix refs that were renamed to json with the same file name
    dt-bindings: Pass binding directory to validation tools
    dt-bindings: sifive: describe sifive-blocks versioning

    Linus Torvalds
     
  • Pule more SPDX updates from Greg KH:
    "Here is another set of reviewed patches that adds SPDX tags to
    different kernel files, based on a set of rules that are being used to
    parse the comments to try to determine that the license of the file is
    "GPL-2.0-or-later".

    Only the "obvious" versions of these matches are included here, a
    number of "non-obvious" variants of text have been found but those
    have been postponed for later review and analysis.

    These patches have been out for review on the linux-spdx@vger mailing
    list, and while they were created by automatic tools, they were
    hand-verified by a bunch of different people, all whom names are on
    the patches are reviewers"

    * tag 'spdx-5.2-rc2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (85 commits)
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 125
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 123
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 122
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 121
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 120
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 119
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 118
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 116
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 114
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 113
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 112
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 111
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 110
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 106
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 105
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 104
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 103
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 102
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 101
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 98
    ...

    Linus Torvalds
     

24 May, 2019

4 commits

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details you
    should have received a copy of the gnu general public license along
    with this program if not write to the free software foundation inc
    675 mass ave cambridge ma 02139 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 441 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Michael Ellerman (powerpc)
    Reviewed-by: Richard Fontana
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190520071858.739733335@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    this program is a part of the linux kernel and may be freely copied
    under the terms of the gnu general public license gpl version 2 or
    at your option any later version

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 1 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190520071858.118952876@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public licence as published by
    the free software foundation either version 2 of the licence or at
    your option any later version

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 114 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190520170857.552531963@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • As we want to switch to a newer Sphinx version in the future,
    add some version detected logic, checking if the current
    version meets the requirement and suggesting upgrade it the
    version is supported but too old.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

23 May, 2019

2 commits

  • Pull documentation fixes from Jonathan Corbet:
    "A handful of fixes for a docs build problem, along with catching the
    spdxcheck.py script up with the current state of affairs"

    * tag 'docs-5.2-fixes' of git://git.lwn.net/linux:
    Documentation: kdump: fix minor typo
    scripts/spdxcheck.py: Add dual license subdirectory
    scripts/spdxcheck.py: Fix path to deprecated licenses
    counter: fix Documentation build error due to incorrect source file name

    Linus Torvalds
     
  • In commit 8122de54602e ("dt-bindings: Convert vendor prefixes to
    json-schema"), vendor-prefixes.txt has been converted to a DT schema.
    Update the checkpatch.pl DT check to extract vendor prefixes from the new
    vendor-prefixes.yaml file.

    Fixes: 8122de54602e ("dt-bindings: Convert vendor prefixes to json-schema")
    Cc: Joe Perches
    Signed-off-by: Rob Herring

    Rob Herring
     

22 May, 2019

2 commits

  • In order to have $ref's to schema files within the kernel, we need to
    pass the base path of bindings to the schema validation tools.

    Cc: Masahiro Yamada
    Cc: Michal Marek
    Cc: devicetree@vger.kernel.org
    Cc: linux-kbuild@vger.kernel.org
    Signed-off-by: Rob Herring

    Rob Herring
     
  • Pull SPDX update from Greg KH:
    "Here is a series of patches that add SPDX tags to different kernel
    files, based on two different things:

    - SPDX entries are added to a bunch of files that we missed a year
    ago that do not have any license information at all.

    These were either missed because the tool saw the MODULE_LICENSE()
    tag, or some EXPORT_SYMBOL tags, and got confused and thought the
    file had a real license, or the files have been added since the
    last big sweep, or they were Makefile/Kconfig files, which we
    didn't touch last time.

    - Add GPL-2.0-only or GPL-2.0-or-later tags to files where our scan
    tools can determine the license text in the file itself. Where this
    happens, the license text is removed, in order to cut down on the
    700+ different ways we have in the kernel today, in a quest to get
    rid of all of these.

    These patches have been out for review on the linux-spdx@vger mailing
    list, and while they were created by automatic tools, they were
    hand-verified by a bunch of different people, all whom names are on
    the patches are reviewers.

    The reason for these "large" patches is if we were to continue to
    progress at the current rate of change in the kernel, adding license
    tags to individual files in different subsystems, we would be finished
    in about 10 years at the earliest.

    There will be more series of these types of patches coming over the
    next few weeks as the tools and reviewers crunch through the more
    "odd" variants of how to say "GPLv2" that developers have come up with
    over the years, combined with other fun oddities (GPL + a BSD
    disclaimer?) that are being unearthed, with the goal for the whole
    kernel to be cleaned up.

    These diffstats are not small, 3840 files are touched, over 10k lines
    removed in just 24 patches"

    * tag 'spdx-5.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (24 commits)
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 25
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 24
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 23
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 22
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 21
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 20
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 19
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 18
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 17
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 15
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 14
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 12
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 11
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 10
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 9
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 7
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 5
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 4
    treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 3
    ...

    Linus Torvalds
     

21 May, 2019

2 commits

  • The licenses from the other directory were partially moved to the dual
    directory in commit 8ea8814fcdcb ("LICENSES: Clearly mark dual license only
    licenses"). checkpatch therefore rejected files like
    drivers/staging/android/ashmem.h with

    WARNING: 'SPDX-License-Identifier: GPL-2.0 OR Apache-2.0 */' is not supported in LICENSES/...
    #1: FILE: drivers/staging/android/ashmem.h:1:
    +/* SPDX-License-Identifier: GPL-2.0 OR Apache-2.0 */

    Fixes: 8ea8814fcdcb ("LICENSES: Clearly mark dual license only licenses")
    Signed-off-by: Sven Eckelmann
    Reviewed-by: Christoph Hellwig
    Signed-off-by: Jonathan Corbet

    Sven Eckelmann
     
  • Add SPDX license identifiers to all Make/Kconfig files which:

    - Have no license information of any form

    These files fall under the project license, GPL v2 only. The resulting SPDX
    license identifier is:

    GPL-2.0-only

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner