]> Git Repo - linux.git/commitdiff
Merge tag 'spdx_identifiers-4.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel...
authorLinus Torvalds <[email protected]>
Thu, 2 Nov 2017 17:04:46 +0000 (10:04 -0700)
committerLinus Torvalds <[email protected]>
Thu, 2 Nov 2017 17:04:46 +0000 (10:04 -0700)
Pull initial SPDX identifiers from Greg KH:
 "License cleanup: add SPDX license identifiers to some files

  Many source files in the tree are missing licensing information, which
  makes it harder for compliance tools to determine the correct license.

  By default all files without license information are under the default
  license of the kernel, which is GPL version 2.

  Update the files which contain no license information with the
  'GPL-2.0' SPDX license identifier. The SPDX identifier is a legally
  binding shorthand, which can be used instead of the full boiler plate
  text.

  This patch is based on work done by Thomas Gleixner and Kate Stewart
  and Philippe Ombredanne.

  How this work was done:

  Patches were generated and checked against linux-4.14-rc6 for a subset
  of the use cases:

   - file had no licensing information it it.

   - file was a */uapi/* one with no licensing information in it,

   - file was a */uapi/* one with existing licensing information,

  Further patches will be generated in subsequent months to fix up cases
  where non-standard license headers were used, and references to
  license had to be inferred by heuristics based on keywords.

  The analysis to determine which SPDX License Identifier to be applied
  to a file was done in a spreadsheet of side by side results from of
  the output of two independent scanners (ScanCode & Windriver)
  producing SPDX tag:value files created by Philippe Ombredanne.
  Philippe prepared the base worksheet, and did an initial spot review
  of a few 1000 files.

  The 4.13 kernel was the starting point of the analysis with 60,537
  files assessed. Kate Stewart did a file by file comparison of the
  scanner results in the spreadsheet to determine which SPDX license
  identifier(s) to be applied to the file. She confirmed any
  determination that was not immediately clear with lawyers working with
  the Linux Foundation.

  Criteria used to select files for SPDX license identifier tagging was:

   - Files considered eligible had to be source code files.

   - Make and config files were included as candidates if they contained
     >5 lines of source

   - File already had some variant of a license header in it (even if <5
     lines).

  All documentation files were explicitly excluded.

  The following heuristics were used to determine which SPDX license
  identifiers to apply.

   - when both scanners couldn't find any license traces, file was
     considered to have no license information in it, and the top level
     COPYING file license applied.

     For non */uapi/* files that summary was:

       SPDX license identifier                            # files
       ---------------------------------------------------|-------
       GPL-2.0                                              11139

     and resulted in the first patch in this series.

     If that file was a */uapi/* path one, it was "GPL-2.0 WITH
     Linux-syscall-note" otherwise it was "GPL-2.0". Results of that
     was:

       SPDX license identifier                            # files
       ---------------------------------------------------|-------
       GPL-2.0 WITH Linux-syscall-note                        930

     and resulted in the second patch in this series.

   - if a file had some form of licensing information in it, and was one
     of the */uapi/* ones, it was denoted with the Linux-syscall-note if
     any GPL family license was found in the file or had no licensing in
     it (per prior point). Results summary:

       SPDX license identifier                            # files
       ---------------------------------------------------|------
       GPL-2.0 WITH Linux-syscall-note                       270
       GPL-2.0+ WITH Linux-syscall-note                      169
       ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21
       ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17
       LGPL-2.1+ WITH Linux-syscall-note                      15
       GPL-1.0+ WITH Linux-syscall-note                       14
       ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5
       LGPL-2.0+ WITH Linux-syscall-note                       4
       LGPL-2.1 WITH Linux-syscall-note                        3
       ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3
       ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1

     and that resulted in the third patch in this series.

   - when the two scanners agreed on the detected license(s), that
     became the concluded license(s).

   - when there was disagreement between the two scanners (one detected
     a license but the other didn't, or they both detected different
     licenses) a manual inspection of the file occurred.

   - In most cases a manual inspection of the information in the file
     resulted in a clear resolution of the license that should apply
     (and which scanner probably needed to revisit its heuristics).

   - When it was not immediately clear, the license identifier was
     confirmed with lawyers working with the Linux Foundation.

   - If there was any question as to the appropriate license identifier,
     the file was flagged for further research and to be revisited later
     in time.

  In total, over 70 hours of logged manual review was done on the
  spreadsheet to determine the SPDX license identifiers to apply to the
  source files by Kate, Philippe, Thomas and, in some cases,
  confirmation by lawyers working with the Linux Foundation.

  Kate also obtained a third independent scan of the 4.13 code base from
  FOSSology, and compared selected files where the other two scanners
  disagreed against that SPDX file, to see if there was new insights.
  The Windriver scanner is based on an older version of FOSSology in
  part, so they are related.

  Thomas did random spot checks in about 500 files from the spreadsheets
  for the uapi headers and agreed with SPDX license identifier in the
  files he inspected. For the non-uapi files Thomas did random spot
  checks in about 15000 files.

  In initial set of patches against 4.14-rc6, 3 files were found to have
  copy/paste license identifier errors, and have been fixed to reflect
  the correct identifier.

  Additionally Philippe spent 10 hours this week doing a detailed manual
  inspection and review of the 12,461 patched files from the initial
  patch version early this week with:

   - a full scancode scan run, collecting the matched texts, detected
     license ids and scores

   - reviewing anything where there was a license detected (about 500+
     files) to ensure that the applied SPDX license was correct

   - reviewing anything where there was no detection but the patch
     license was not GPL-2.0 WITH Linux-syscall-note to ensure that the
     applied SPDX license was correct

  This produced a worksheet with 20 files needing minor correction. This
  worksheet was then exported into 3 different .csv files for the
  different types of files to be modified.

  These .csv files were then reviewed by Greg. Thomas wrote a script to
  parse the csv files and add the proper SPDX tag to the file, in the
  format that the file expected. This script was further refined by Greg
  based on the output to detect more types of files automatically and to
  distinguish between header and source .c files (which need different
  comment types.) Finally Greg ran the script using the .csv files to
  generate the patches.

Reviewed-by: Kate Stewart <[email protected]>
Reviewed-by: Philippe Ombredanne <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>"
* tag 'spdx_identifiers-4.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
  License cleanup: add SPDX license identifier to uapi header files with a license
  License cleanup: add SPDX license identifier to uapi header files with no license
  License cleanup: add SPDX GPL-2.0 license identifier to files with no license

40 files changed:
1  2 
Makefile
arch/alpha/kernel/sys_alcor.c
arch/alpha/kernel/sys_cabriolet.c
arch/alpha/kernel/sys_dp264.c
arch/alpha/kernel/sys_eb64p.c
arch/alpha/kernel/sys_eiger.c
arch/alpha/kernel/sys_miata.c
arch/alpha/kernel/sys_mikasa.c
arch/alpha/kernel/sys_nautilus.c
arch/alpha/kernel/sys_noritake.c
arch/alpha/kernel/sys_rawhide.c
arch/alpha/kernel/sys_ruffian.c
arch/alpha/kernel/sys_rx164.c
arch/alpha/kernel/sys_sable.c
arch/alpha/kernel/sys_sio.c
arch/alpha/kernel/sys_sx164.c
arch/alpha/kernel/sys_takara.c
arch/alpha/kernel/sys_wildfire.c
arch/s390/kernel/entry.S
arch/x86/entry/entry_64.S
arch/x86/include/asm/io.h
arch/x86/mm/fault.c
drivers/s390/scsi/zfcp_erp.c
drivers/s390/scsi/zfcp_scsi.c
fs/ceph/caps.c
include/linux/if_tap.h
include/linux/swait.h
include/net/pkt_cls.h
include/net/sch_generic.h
include/uapi/linux/bpf.h
include/uapi/linux/sctp.h
include/uapi/linux/spi/spidev.h
lib/ioremap.c
net/wireless/sme.c
scripts/Makefile.modpost
security/apparmor/Makefile
sound/soc/codecs/adau17x1.h
tools/scripts/Makefile.include
tools/testing/selftests/tc-testing/tdc.py
tools/testing/selftests/tc-testing/tdc_config.py

diff --combined Makefile
index 5f91a28a3cea65c4c5d79be124c86ae5998b0f7a,4d1dcce4fbb95b16b42c003d416122a8e83473b1..3a8868ee967e69ef0fbbb101f58ce4c00d40db0c
+++ b/Makefile
@@@ -1,7 -1,8 +1,8 @@@
+ # SPDX-License-Identifier: GPL-2.0
  VERSION = 4
  PATCHLEVEL = 14
  SUBLEVEL = 0
 -EXTRAVERSION = -rc6
 +EXTRAVERSION = -rc7
  NAME = Fearless Coyote
  
  # *DOCUMENTATION*
@@@ -130,8 -131,8 +131,8 @@@ endi
  ifneq ($(KBUILD_OUTPUT),)
  # check that the output directory actually exists
  saved-output := $(KBUILD_OUTPUT)
 -$(shell [ -d $(KBUILD_OUTPUT) ] || mkdir -p $(KBUILD_OUTPUT))
 -KBUILD_OUTPUT := $(realpath $(KBUILD_OUTPUT))
 +KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \
 +                                                              && /bin/pwd)
  $(if $(KBUILD_OUTPUT),, \
       $(error failed to create output directory "$(saved-output)"))
  
@@@ -697,11 -698,11 +698,11 @@@ KBUILD_CFLAGS += $(stackp-flag
  
  ifeq ($(cc-name),clang)
  ifneq ($(CROSS_COMPILE),)
 -CLANG_TARGET  := -target $(notdir $(CROSS_COMPILE:%-=%))
 +CLANG_TARGET  := --target=$(notdir $(CROSS_COMPILE:%-=%))
  GCC_TOOLCHAIN := $(realpath $(dir $(shell which $(LD)))/..)
  endif
  ifneq ($(GCC_TOOLCHAIN),)
 -CLANG_GCC_TC  := -gcc-toolchain $(GCC_TOOLCHAIN)
 +CLANG_GCC_TC  := --gcc-toolchain=$(GCC_TOOLCHAIN)
  endif
  KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
  KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
@@@ -1399,7 -1400,7 +1400,7 @@@ help
        @echo  '                    Build, install, and boot kernel before'
        @echo  '                    running kselftest on it'
        @echo  '  kselftest-clean - Remove all generated kselftest files'
 -      @echo  '  kselftest-merge - Merge all the config dependencies of kselftest to existed'
 +      @echo  '  kselftest-merge - Merge all the config dependencies of kselftest to existing'
        @echo  '                    .config.'
        @echo  ''
        @echo 'Userspace tools targets:'
index 7ad074fd5ab5066bf7534713da4060852fd6bcba,dabb0d205c40ddb15fb5f49926b49c2face755e0..e56efd5b855fed163d93d96a7ed5b2c4c5a5b361
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_alcor.c
   *
@@@ -181,10 -182,10 +182,10 @@@ alcor_init_irq(void
   * comes in on.  This makes interrupt processing much easier.
   */
  
 -static int __init
 +static int
  alcor_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[7][5] __initdata = {
 +      static char irq_tab[7][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                /* note: IDSEL 17 is XLT only */
                {16+13, 16+13, 16+13, 16+13, 16+13},    /* IdSel 17,  TULIP  */
index c0fa1fe5ce773fbda6d4b0a4253052a60dff98af,b8687dadd0387f6985d93425209ca2fa1487035b..10bc46a4ec40b29fb2207d77f572dc6779d40dc0
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_cabriolet.c
   *
@@@ -173,10 -174,10 +174,10 @@@ pc164_init_irq(void
   * because it is the Saturn IO (SIO) PCI/ISA Bridge Chip.
   */
  
 -static inline int __init
 +static inline int
  eb66p_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[5][5] __initdata = {
 +      static char irq_tab[5][5] = {
                /*INT  INTA  INTB  INTC   INTD */
                {16+0, 16+0, 16+5,  16+9, 16+13},  /* IdSel 6,  slot 0, J25 */
                {16+1, 16+1, 16+6, 16+10, 16+14},  /* IdSel 7,  slot 1, J26 */
   * because it is the Saturn IO (SIO) PCI/ISA Bridge Chip.
   */
  
 -static inline int __init
 +static inline int
  cabriolet_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[5][5] __initdata = {
 +      static char irq_tab[5][5] = {
                /*INT   INTA  INTB  INTC   INTD */
                { 16+2, 16+2, 16+7, 16+11, 16+15}, /* IdSel 5,  slot 2, J21 */
                { 16+0, 16+0, 16+5,  16+9, 16+13}, /* IdSel 6,  slot 0, J19 */
@@@ -287,10 -288,10 +288,10 @@@ cia_cab_init_pci(void
   * 
   */
  
 -static inline int __init
 +static inline int
  alphapc164_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[7][5] __initdata = {
 +      static char irq_tab[7][5] = {
                /*INT   INTA  INTB   INTC   INTD */
                { 16+2, 16+2, 16+9,  16+13, 16+17}, /* IdSel  5, slot 2, J20 */
                { 16+0, 16+0, 16+7,  16+11, 16+15}, /* IdSel  6, slot 0, J29 */
index 9e1e40ea1d14be8e20e99155e5f589b33499e5ba,3d816947de135975056d660910e0bdf97dc4d6e8..d335086218207d9327df05499ded58ea2b4deeff
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_dp264.c
   *
@@@ -356,7 -357,7 +357,7 @@@ clipper_init_irq(void
   *  10         64 bit PCI option slot 3 (not bus 0)
   */
  
 -static int __init
 +static int
  isa_irq_fixup(const struct pci_dev *dev, int irq)
  {
        u8 irq8;
        return irq8 & 0xf;
  }
  
 -static int __init
 +static int
  dp264_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[6][5] __initdata = {
 +      static char irq_tab[6][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                {    -1,    -1,    -1,    -1,    -1}, /* IdSel 5 ISA Bridge */
                { 16+ 3, 16+ 3, 16+ 2, 16+ 2, 16+ 2}, /* IdSel 6 SCSI builtin*/
        return isa_irq_fixup(dev, irq);
  }
  
 -static int __init
 +static int
  monet_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[13][5] __initdata = {
 +      static char irq_tab[13][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                {    45,    45,    45,    45,    45}, /* IdSel 3 21143 PCI1 */
                {    -1,    -1,    -1,    -1,    -1}, /* IdSel 4 unused */
        return isa_irq_fixup(dev, COMMON_TABLE_LOOKUP);
  }
  
 -static u8 __init
 +static u8
  monet_swizzle(struct pci_dev *dev, u8 *pinp)
  {
        struct pci_controller *hose = dev->sysdata;
        return slot;
  }
  
 -static int __init
 +static int
  webbrick_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[13][5] __initdata = {
 +      static char irq_tab[13][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                {    -1,    -1,    -1,    -1,    -1}, /* IdSel 7 ISA Bridge */
                {    -1,    -1,    -1,    -1,    -1}, /* IdSel 8 unused */
        return isa_irq_fixup(dev, COMMON_TABLE_LOOKUP);
  }
  
 -static int __init
 +static int
  clipper_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[7][5] __initdata = {
 +      static char irq_tab[7][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                { 16+ 8, 16+ 8, 16+ 9, 16+10, 16+11}, /* IdSel 1 slot 1 */
                { 16+12, 16+12, 16+13, 16+14, 16+15}, /* IdSel 2 slot 2 */
index 372661c5653793f7695fb1e36598bb38269d0552,59fd789dfc8066880cf85dda7fce7deed6e012a1..5251937ec1b469129ae16088c57248846482d61e
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_eb64p.c
   *
@@@ -167,10 -168,10 +168,10 @@@ eb64p_init_irq(void
   * comes in on.  This makes interrupt processing much easier.
   */
  
 -static int __init
 +static int
  eb64p_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[5][5] __initdata = {
 +      static char irq_tab[5][5] = {
                /*INT  INTA  INTB  INTC   INTD */
                {16+7, 16+7, 16+7, 16+7,  16+7},  /* IdSel 5,  slot ?, ?? */
                {16+0, 16+0, 16+2, 16+4,  16+9},  /* IdSel 6,  slot ?, ?? */
index 2731738b5872c415637d87aaa70e495fd85f7d75,3c8c36d954480d8387f4ad91baef7173a6120c29..016f79251141a547f47f1c98c0bfc13c1ca98851
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_eiger.c
   *
@@@ -141,7 -142,7 +142,7 @@@ eiger_init_irq(void
        }
  }
  
 -static int __init
 +static int
  eiger_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
        u8 irq_orig;
        return irq_orig - 0x80;
  }
  
 -static u8 __init
 +static u8
  eiger_swizzle(struct pci_dev *dev, u8 *pinp)
  {
        struct pci_controller *hose = dev->sysdata;
index 731d693fa1f99cf3d5d493676217eebf7c323b85,d20337768606dae25d8b653244a2b1ba76d88bfd..6fa07dc5339d2c70f4c969d7a77bc7246772a49b
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_miata.c
   *
@@@ -149,10 -150,10 +150,10 @@@ miata_init_irq(void
   * comes in on.  This makes interrupt processing much easier.
   */
  
 -static int __init
 +static int
  miata_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -        static char irq_tab[18][5] __initdata = {
 +        static char irq_tab[18][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                {16+ 8, 16+ 8, 16+ 8, 16+ 8, 16+ 8},  /* IdSel 14,  DC21142 */
                {   -1,    -1,    -1,    -1,    -1},  /* IdSel 15,  EIDE    */
        return COMMON_TABLE_LOOKUP;
  }
  
 -static u8 __init
 +static u8
  miata_swizzle(struct pci_dev *dev, u8 *pinp)
  {
        int slot, pin = *pinp;
index 350ec9c8335b4dff3ff36b3e7828ce5ee5b6cc61,68b7d0c63b8dd40388f675c571bf21a03005257f..3af4f94113e1701e6729b2932a8055b3c6902201
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_mikasa.c
   *
@@@ -145,10 -146,10 +146,10 @@@ mikasa_init_irq(void
   * comes in on.  This makes interrupt processing much easier.
   */
  
 -static int __init
 +static int
  mikasa_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[8][5] __initdata = {
 +      static char irq_tab[8][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                {16+12, 16+12, 16+12, 16+12, 16+12},    /* IdSel 17,  SCSI */
                {   -1,    -1,    -1,    -1,    -1},    /* IdSel 18,  PCEB */
index d019e4ce07bd946be467ce996e105c8a345a8bf7,cefa225ab47826245f2cb80f3738eaac39149872..239dc0e601d536ab05d08c83dfebfcc02567a405
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_nautilus.c
   *
@@@ -62,7 -63,7 +63,7 @@@ nautilus_init_irq(void
        common_init_isa_dma();
  }
  
 -static int __init
 +static int
  nautilus_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
        /* Preserve the IRQ set up by the console.  */
index 2301678d9f9dc747b95867e5b3341b69f3b7543a,1f2e8b1faa9a789088165602910214f6482ea361..b106f327f765268541a6f4f29033eda9f3898328
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_noritake.c
   *
@@@ -193,10 -194,10 +194,10 @@@ noritake_init_irq(void
   * comes in on.  This makes interrupt processing much easier.
   */
  
 -static int __init
 +static int
  noritake_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[15][5] __initdata = {
 +      static char irq_tab[15][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                /* note: IDSELs 16, 17, and 25 are CORELLE only */
                { 16+1,  16+1,  16+1,  16+1,  16+1},  /* IdSel 16,  QLOGIC */
        return COMMON_TABLE_LOOKUP;
  }
  
 -static u8 __init
 +static u8
  noritake_swizzle(struct pci_dev *dev, u8 *pinp)
  {
        int slot, pin = *pinp;
index 546822d07dc7a2973e590b61b3396a8d21e05320,b21e572c1299032a112e6c8031c7360ed65f5b78..b76f65d0e8b54f51e3874116ebd37e4223c33bb5
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_rawhide.c
   *
@@@ -221,10 -222,10 +222,10 @@@ rawhide_init_irq(void
   * 
   */
  
 -static int __init
 +static int
  rawhide_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[5][5] __initdata = {
 +      static char irq_tab[5][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                { 16+16, 16+16, 16+16, 16+16, 16+16}, /* IdSel 1 SCSI PCI 1 */
                { 16+ 0, 16+ 0, 16+ 1, 16+ 2, 16+ 3}, /* IdSel 2 slot 2 */
index 3b35e19134922fc46c0c86e3d4eb81c5cb111fba,197660ba686f9551cc8ff6a25a204a9d0b2f295d..07830cccabf995b098f203e90ec5728f9e39b62e
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_ruffian.c
   *
@@@ -117,10 -118,10 +118,10 @@@ ruffian_kill_arch (int mode
   *
   */
  
 -static int __init
 +static int
  ruffian_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -        static char irq_tab[11][5] __initdata = {
 +        static char irq_tab[11][5] = {
              /*INT  INTA INTB INTC INTD */
                {-1,  -1,  -1,  -1,  -1},  /* IdSel 13,  21052       */
                {-1,  -1,  -1,  -1,  -1},  /* IdSel 14,  SIO         */
        return COMMON_TABLE_LOOKUP;
  }
  
 -static u8 __init
 +static u8
  ruffian_swizzle(struct pci_dev *dev, u8 *pinp)
  {
        int slot, pin = *pinp;
index e178007107ef36f44cbe146d9b4c26756457897e,b09146e4a08de0c07fef4081db5ec06c8fa6e9eb..a3db719d3c3873d788f42b50d6ba03367f5ae134
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_rx164.c
   *
@@@ -142,7 -143,7 +143,7 @@@ rx164_init_irq(void
   * 
   */
  
 -static int __init
 +static int
  rx164_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
  #if 0
          { 16+1, 16+1, 16+6, 16+11, 16+16},      /* IdSel 10, slot 4 */
        };
  #else
 -      static char irq_tab[6][5] __initdata = {
 +      static char irq_tab[6][5] = {
          /*INT   INTA  INTB  INTC   INTD */
          { 16+0, 16+0, 16+6, 16+11, 16+16},      /* IdSel 5,  slot 0 */
          { 16+1, 16+1, 16+7, 16+12, 16+17},      /* IdSel 6,  slot 1 */
index 86d259c2612d8b8c4a0642fc6d83944d08a0aa67,76eb2afca575ccd6ad4f54aa7b7095ffcf0f939d..3cf0d32da5d80adf41c4357a927bda5617e933c1
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_sable.c
   *
@@@ -192,10 -193,10 +193,10 @@@ sable_init_irq(void
   * with the values in the irq swizzling tables above.
   */
  
 -static int __init
 +static int
  sable_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[9][5] __initdata = {
 +      static char irq_tab[9][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                { 32+0,  32+0,  32+0,  32+0,  32+0},  /* IdSel 0,  TULIP  */
                { 32+1,  32+1,  32+1,  32+1,  32+1},  /* IdSel 1,  SCSI   */
@@@ -374,10 -375,10 +375,10 @@@ lynx_init_irq(void
   * with the values in the irq swizzling tables above.
   */
  
 -static int __init
 +static int
  lynx_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[19][5] __initdata = {
 +      static char irq_tab[19][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                {   -1,    -1,    -1,    -1,    -1},  /* IdSel 13,  PCEB   */
                {   -1,    -1,    -1,    -1,    -1},  /* IdSel 14,  PPB    */
        return COMMON_TABLE_LOOKUP;
  }
  
 -static u8 __init
 +static u8
  lynx_swizzle(struct pci_dev *dev, u8 *pinp)
  {
        int slot, pin = *pinp;
index 9fd2895639d594d7c456c77994ef5e1ecd1bb1a2,b44b1cb923f36cc62be8f005bd30d9739a81eb45..37bd6d9b8eb9633ba398c81be1744694abdf021c
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_sio.c
   *
@@@ -144,7 -145,7 +145,7 @@@ sio_fixup_irq_levels(unsigned int level
        outb((level_bits >> 8) & 0xff, 0x4d1);
  }
  
 -static inline int __init
 +static inline int
  noname_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
        /*
         * that they use the default INTA line, if they are interrupt
         * driven at all).
         */
 -      static char irq_tab[][5] __initdata = {
 +      static char irq_tab[][5] = {
                /*INT A   B   C   D */
                { 3,  3,  3,  3,  3}, /* idsel  6 (53c810) */ 
                {-1, -1, -1, -1, -1}, /* idsel  7 (SIO: PCI/ISA bridge) */
        return irq >= 0 ? tmp : -1;
  }
  
 -static inline int __init
 +static inline int
  p2k_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[][5] __initdata = {
 +      static char irq_tab[][5] = {
                /*INT A   B   C   D */
                { 0,  0, -1, -1, -1}, /* idsel  6 (53c810) */
                {-1, -1, -1, -1, -1}, /* idsel  7 (SIO: PCI/ISA bridge) */
index 23eee54d714ae80b6beb0cd951068298f96bd463,6c92f25172fff5be62de0e441e8c1d288864859e..1ec638a2746a055ea6ca6d0560b035b727c19f1e
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_sx164.c
   *
@@@ -94,10 -95,10 +95,10 @@@ sx164_init_irq(void
   *   9  32 bit PCI option slot 3
   */
  
 -static int __init
 +static int
  sx164_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[5][5] __initdata = {
 +      static char irq_tab[5][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                { 16+ 9, 16+ 9, 16+13, 16+17, 16+21}, /* IdSel 5 slot 2 J17 */
                { 16+11, 16+11, 16+15, 16+19, 16+23}, /* IdSel 6 slot 0 J19 */
index 9101f2bb61765ebb37364320d8bf07523110d59f,b0913e61416c7ab3fa8f80ec401ea910610bf9ba..e230c68640883e3733059a99e3dfc7c83140677a
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *    linux/arch/alpha/kernel/sys_takara.c
   *
@@@ -155,10 -156,10 +156,10 @@@ takara_init_irq(void
   * assign it whatever the hell IRQ we like and it doesn't matter.
   */
  
 -static int __init
 +static int
  takara_map_irq_srm(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[15][5] __initdata = {
 +      static char irq_tab[15][5] = {
                { 16+3, 16+3, 16+3, 16+3, 16+3},   /* slot  6 == device 3 */
                { 16+2, 16+2, 16+2, 16+2, 16+2},   /* slot  7 == device 2 */
                { 16+1, 16+1, 16+1, 16+1, 16+1},   /* slot  8 == device 1 */
@@@ -210,7 -211,7 +211,7 @@@ takara_map_irq(const struct pci_dev *de
        return COMMON_TABLE_LOOKUP;
  }
  
 -static u8 __init
 +static u8
  takara_swizzle(struct pci_dev *dev, u8 *pinp)
  {
        int slot = PCI_SLOT(dev->devfn);
index c3f8b79fe21422af34a2430969d323739d91efbb,8290274dec11d6a164630aaab111fab8343e80a0..8e64052811abc7701a89e56ac7fb660a84096729
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *  linux/arch/alpha/kernel/sys_wildfire.c
   *
@@@ -288,10 -289,10 +289,10 @@@ wildfire_device_interrupt(unsigned lon
   *   7         64 bit PCI 1 option slot 7
   */
  
 -static int __init
 +static int
  wildfire_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 -      static char irq_tab[8][5] __initdata = {
 +      static char irq_tab[8][5] = {
                /*INT    INTA   INTB   INTC   INTD */
                { -1,    -1,    -1,    -1,    -1}, /* IdSel 0 ISA Bridge */
                { 36,    36,    36+1, 36+2, 36+3}, /* IdSel 1 SCSI builtin */
diff --combined arch/s390/kernel/entry.S
index d185aa3965bfd0652dfb83f8e07f33939526eb30,c41adce6062cbeabc4f6e49881c57398fa733131..7c6904d616d877330ae5768a9ad348e298a1562e
@@@ -1,3 -1,4 +1,4 @@@
+ /* SPDX-License-Identifier: GPL-2.0 */
  /*
   *    S390 low-level entry points.
   *
@@@ -521,15 -522,12 +522,15 @@@ ENTRY(pgm_check_handler
        tmhh    %r8,0x0001              # test problem state bit
        jnz     2f                      # -> fault in user space
  #if IS_ENABLED(CONFIG_KVM)
 -      # cleanup critical section for sie64a
 +      # cleanup critical section for program checks in sie64a
        lgr     %r14,%r9
        slg     %r14,BASED(.Lsie_critical_start)
        clg     %r14,BASED(.Lsie_critical_length)
        jhe     0f
 -      brasl   %r14,.Lcleanup_sie
 +      lg      %r14,__SF_EMPTY(%r15)           # get control block pointer
 +      ni      __SIE_PROG0C+3(%r14),0xfe       # no longer in SIE
 +      lctlg   %c1,%c1,__LC_USER_ASCE          # load primary asce
 +      larl    %r9,sie_exit                    # skip forward to sie_exit
  #endif
  0:    tmhh    %r8,0x4000              # PER bit set in old PSW ?
        jnz     1f                      # -> enabled, can't be a double fault
index f6cdb7a1455e82cce2c568e2add3564835a5352f,4b1ad51eb7ccab509d4fdfe4def31498fe9f20a4..bcfc5668dcb22f303b21c7a636273c46274835c5
@@@ -1,3 -1,4 +1,4 @@@
+ /* SPDX-License-Identifier: GPL-2.0 */
  /*
   *  linux/arch/x86_64/entry.S
   *
@@@ -808,7 -809,7 +809,7 @@@ apicinterrupt IRQ_WORK_VECTOR                      irq_wor
  
  .macro idtentry sym do_sym has_error_code:req paranoid=0 shift_ist=-1
  ENTRY(\sym)
 -      UNWIND_HINT_IRET_REGS offset=8
 +      UNWIND_HINT_IRET_REGS offset=\has_error_code*8
  
        /* Sanity check */
        .if \shift_ist != -1 && \paranoid == 0
index c40a95c33bb8434c8b41641e57c38a79eeddb7ad,efb6c17ca902c563f19190df8c91d44dc72498e7..11398d55aefaea3b03fe68bf65758e97c69513d2
@@@ -1,3 -1,4 +1,4 @@@
+ /* SPDX-License-Identifier: GPL-2.0 */
  #ifndef _ASM_X86_IO_H
  #define _ASM_X86_IO_H
  
@@@ -110,6 -111,10 +111,6 @@@ build_mmio_write(__writeq, "q", unsigne
  
  #endif
  
 -#define ARCH_HAS_VALID_PHYS_ADDR_RANGE
 -extern int valid_phys_addr_range(phys_addr_t addr, size_t size);
 -extern int valid_mmap_phys_addr_range(unsigned long pfn, size_t size);
 -
  /**
   *    virt_to_phys    -       map virtual addresses to physical
   *    @address: address to remap
diff --combined arch/x86/mm/fault.c
index 7101c281c7ce244b78d78326d9628734573e3e09,f5ff142e6fe01d14b0a7f0a466c9994e844b2023..b0ff378650a9c7ef988d2fa6c984ceae9c19df54
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   *  Copyright (C) 1995  Linus Torvalds
   *  Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs.
@@@ -1440,17 -1441,7 +1441,17 @@@ good_area
         * make sure we exit gracefully rather than endlessly redo
         * the fault.  Since we never set FAULT_FLAG_RETRY_NOWAIT, if
         * we get VM_FAULT_RETRY back, the mmap_sem has been unlocked.
 +       *
 +       * Note that handle_userfault() may also release and reacquire mmap_sem
 +       * (and not return with VM_FAULT_RETRY), when returning to userland to
 +       * repeat the page fault later with a VM_FAULT_NOPAGE retval
 +       * (potentially after handling any pending signal during the return to
 +       * userland). The return to userland is identified whenever
 +       * FAULT_FLAG_USER|FAULT_FLAG_KILLABLE are both set in flags.
 +       * Thus we have to be careful about not touching vma after handling the
 +       * fault, so we read the pkey beforehand.
         */
 +      pkey = vma_pkey(vma);
        fault = handle_mm_fault(vma, address, flags);
        major |= fault & VM_FAULT_MAJOR;
  
                return;
        }
  
 -      pkey = vma_pkey(vma);
        up_read(&mm->mmap_sem);
        if (unlikely(fault & VM_FAULT_ERROR)) {
                mm_fault_error(regs, error_code, address, &pkey, fault);
index ec2532ee1822ea6c068a12a42dce145aef45b333,6f848aeacec28ea501acaae213b551fd70cd8c00..cbb8156bf5e0c4979896b3f1edd8004c93837cfb
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   * zfcp device driver
   *
@@@ -193,8 -194,9 +194,8 @@@ static struct zfcp_erp_action *zfcp_erp
                atomic_or(ZFCP_STATUS_COMMON_ERP_INUSE,
                                &zfcp_sdev->status);
                erp_action = &zfcp_sdev->erp_action;
 -              memset(erp_action, 0, sizeof(struct zfcp_erp_action));
 -              erp_action->port = port;
 -              erp_action->sdev = sdev;
 +              WARN_ON_ONCE(erp_action->port != port);
 +              WARN_ON_ONCE(erp_action->sdev != sdev);
                if (!(atomic_read(&zfcp_sdev->status) &
                      ZFCP_STATUS_COMMON_RUNNING))
                        act_status |= ZFCP_STATUS_ERP_CLOSE_ONLY;
                zfcp_erp_action_dismiss_port(port);
                atomic_or(ZFCP_STATUS_COMMON_ERP_INUSE, &port->status);
                erp_action = &port->erp_action;
 -              memset(erp_action, 0, sizeof(struct zfcp_erp_action));
 -              erp_action->port = port;
 +              WARN_ON_ONCE(erp_action->port != port);
 +              WARN_ON_ONCE(erp_action->sdev != NULL);
                if (!(atomic_read(&port->status) & ZFCP_STATUS_COMMON_RUNNING))
                        act_status |= ZFCP_STATUS_ERP_CLOSE_ONLY;
                break;
                zfcp_erp_action_dismiss_adapter(adapter);
                atomic_or(ZFCP_STATUS_COMMON_ERP_INUSE, &adapter->status);
                erp_action = &adapter->erp_action;
 -              memset(erp_action, 0, sizeof(struct zfcp_erp_action));
 +              WARN_ON_ONCE(erp_action->port != NULL);
 +              WARN_ON_ONCE(erp_action->sdev != NULL);
                if (!(atomic_read(&adapter->status) &
                      ZFCP_STATUS_COMMON_RUNNING))
                        act_status |= ZFCP_STATUS_ERP_CLOSE_ONLY;
                return NULL;
        }
  
 -      erp_action->adapter = adapter;
 +      WARN_ON_ONCE(erp_action->adapter != adapter);
 +      memset(&erp_action->list, 0, sizeof(erp_action->list));
 +      memset(&erp_action->timer, 0, sizeof(erp_action->timer));
 +      erp_action->step = ZFCP_ERP_STEP_UNINITIALIZED;
 +      erp_action->fsf_req_id = 0;
        erp_action->action = need;
        erp_action->status = act_status;
  
index 6cf8732627e012137514075ea4958fdd5cbf82e4,ebea205f9de841fd5630fb71b9efa46377cc6319..4d2ba5682493221bf32f0c4000021da54dc57044
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   * zfcp device driver
   *
@@@ -115,15 -116,10 +116,15 @@@ static int zfcp_scsi_slave_alloc(struc
        struct zfcp_unit *unit;
        int npiv = adapter->connection_features & FSF_FEATURE_NPIV_MODE;
  
 +      zfcp_sdev->erp_action.adapter = adapter;
 +      zfcp_sdev->erp_action.sdev = sdev;
 +
        port = zfcp_get_port_by_wwpn(adapter, rport->port_name);
        if (!port)
                return -ENXIO;
  
 +      zfcp_sdev->erp_action.port = port;
 +
        unit = zfcp_unit_find(port, zfcp_scsi_dev_lun(sdev));
        if (unit)
                put_device(&unit->dev);
diff --combined fs/ceph/caps.c
index 1978a8cb1cb1cf82b79f3a57ba9163c2343c94af,115a27d44bace898628bcd8259e0a09cc7e89ec0..ff5d32cf9578f77aa28bebd2634fd61cb3d27064
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  #include <linux/ceph/ceph_debug.h>
  
  #include <linux/fs.h>
@@@ -1991,7 -1992,6 +1992,7 @@@ static int try_flush_caps(struct inode 
  retry:
        spin_lock(&ci->i_ceph_lock);
        if (ci->i_ceph_flags & CEPH_I_NOFLUSH) {
 +              spin_unlock(&ci->i_ceph_lock);
                dout("try_flush_caps skipping %p I_NOFLUSH set\n", inode);
                goto out;
        }
                        mutex_lock(&session->s_mutex);
                        goto retry;
                }
 -              if (cap->session->s_state < CEPH_MDS_SESSION_OPEN)
 +              if (cap->session->s_state < CEPH_MDS_SESSION_OPEN) {
 +                      spin_unlock(&ci->i_ceph_lock);
                        goto out;
 +              }
  
                flushing = __mark_caps_flushing(inode, session, true,
                                                &flush_tid, &oldest_flush_tid);
diff --combined include/linux/if_tap.h
index 9ae41cdd0d4cc57ca54b56786d9629a81354506f,0d7b56d913087590d7db17d7b29290b048812162..13edf19ce9fb5e1eddeb366bc315cb9a92ba691e
@@@ -1,3 -1,4 +1,4 @@@
+ /* SPDX-License-Identifier: GPL-2.0 */
  #ifndef _LINUX_IF_TAP_H_
  #define _LINUX_IF_TAP_H_
  
@@@ -73,8 -74,8 +74,8 @@@ void tap_del_queues(struct tap_dev *tap
  int tap_get_minor(dev_t major, struct tap_dev *tap);
  void tap_free_minor(dev_t major, struct tap_dev *tap);
  int tap_queue_resize(struct tap_dev *tap);
 -int tap_create_cdev(struct cdev *tap_cdev,
 -                  dev_t *tap_major, const char *device_name);
 +int tap_create_cdev(struct cdev *tap_cdev, dev_t *tap_major,
 +                  const char *device_name, struct module *module);
  void tap_destroy_cdev(dev_t major, struct cdev *tap_cdev);
  
  #endif /*_LINUX_IF_TAP_H_*/
diff --combined include/linux/swait.h
index cf30f50224721a27e412c3a959928844a622d96d,29c9eb48ca89a1a26d39459bd7f2036e3cb46e4c..c98aaf6774665ea9970968f83bc45707a977757d
@@@ -1,3 -1,4 +1,4 @@@
+ /* SPDX-License-Identifier: GPL-2.0 */
  #ifndef _LINUX_SWAIT_H
  #define _LINUX_SWAIT_H
  
  /*
   * Simple wait queues
   *
 - * While these are very similar to the other/complex wait queues (wait.h) the
 - * most important difference is that the simple waitqueue allows for
 - * deterministic behaviour -- IOW it has strictly bounded IRQ and lock hold
 - * times.
 + * While these are very similar to regular wait queues (wait.h) the most
 + * important difference is that the simple waitqueue allows for deterministic
 + * behaviour -- IOW it has strictly bounded IRQ and lock hold times.
   *
 - * In order to make this so, we had to drop a fair number of features of the
 - * other waitqueue code; notably:
 + * Mainly, this is accomplished by two things. Firstly not allowing swake_up_all
 + * from IRQ disabled, and dropping the lock upon every wakeup, giving a higher
 + * priority task a chance to run.
 + *
 + * Secondly, we had to drop a fair number of features of the other waitqueue
 + * code; notably:
   *
   *  - mixing INTERRUPTIBLE and UNINTERRUPTIBLE sleeps on the same waitqueue;
   *    all wakeups are TASK_NORMAL in order to avoid O(n) lookups for the right
   *  - the exclusive mode; because this requires preserving the list order
   *    and this is hard.
   *
 - *  - custom wake functions; because you cannot give any guarantees about
 - *    random code.
 - *
 - * As a side effect of this; the data structures are slimmer.
 + *  - custom wake callback functions; because you cannot give any guarantees
 + *    about random code. This also allows swait to be used in RT, such that
 + *    raw spinlock can be used for the swait queue head.
   *
 - * One would recommend using this wait queue where possible.
 + * As a side effect of these; the data structures are slimmer albeit more ad-hoc.
 + * For all the above, note that simple wait queues should _only_ be used under
 + * very specific realtime constraints -- it is best to stick with the regular
 + * wait queues in most cases.
   */
  
  struct task_struct;
diff --combined include/net/pkt_cls.h
index 3009547f3c66347b38be87831ec17d7aa7a149ed,13b23f3ed69a2d0384ecd17d243e19b1f31128ab..70ca2437740e41284d7b40b5c202d85fc2e6668b
@@@ -1,8 -1,8 +1,9 @@@
+ /* SPDX-License-Identifier: GPL-2.0 */
  #ifndef __NET_PKT_CLS_H
  #define __NET_PKT_CLS_H
  
  #include <linux/pkt_cls.h>
 +#include <linux/workqueue.h>
  #include <net/sch_generic.h>
  #include <net/act_api.h>
  
@@@ -18,8 -18,6 +19,8 @@@ struct tcf_walker 
  int register_tcf_proto_ops(struct tcf_proto_ops *ops);
  int unregister_tcf_proto_ops(struct tcf_proto_ops *ops);
  
 +bool tcf_queue_work(struct work_struct *work);
 +
  #ifdef CONFIG_NET_CLS
  struct tcf_chain *tcf_chain_get(struct tcf_block *block, u32 chain_index,
                                bool create);
index 0dec8a23be574cd54e4dab927f6df5c7879c33aa,1b33a6c8b477d5d7d098596085dd0f0fc809ff05..236bfe5b2ffe5252ecb1ae9e59251d597315bc6d
@@@ -1,3 -1,4 +1,4 @@@
+ /* SPDX-License-Identifier: GPL-2.0 */
  #ifndef __NET_SCHED_GENERIC_H
  #define __NET_SCHED_GENERIC_H
  
@@@ -10,7 -11,6 +11,7 @@@
  #include <linux/dynamic_queue_limits.h>
  #include <linux/list.h>
  #include <linux/refcount.h>
 +#include <linux/workqueue.h>
  #include <net/gen_stats.h>
  #include <net/rtnetlink.h>
  
@@@ -272,7 -272,6 +273,7 @@@ struct tcf_chain 
  
  struct tcf_block {
        struct list_head chain_list;
 +      struct work_struct work;
  };
  
  static inline void qdisc_cb_private_validate(const struct sk_buff *skb, int sz)
diff --combined include/uapi/linux/bpf.h
index 7bf4c750dd3ac97d3a4e146c8166d0848c5eb2f3,8012b4ff959b6a748962411a6adc622001947e8b..30f2ce76b5170c8ea04f93a8f8f70f4633e4322b
@@@ -1,3 -1,4 +1,4 @@@
+ /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com
   *
   * This program is free software; you can redistribute it and/or
@@@ -575,7 -576,7 +576,7 @@@ union bpf_attr 
   *     @map: pointer to sockmap
   *     @key: key to lookup sock in map
   *     @flags: reserved for future use
 - *     Return: SK_REDIRECT
 + *     Return: SK_PASS
   *
   * int bpf_sock_map_update(skops, map, key, flags)
   *    @skops: pointer to bpf_sock_ops
@@@ -786,8 -787,9 +787,8 @@@ struct xdp_md 
  };
  
  enum sk_action {
 -      SK_ABORTED = 0,
 -      SK_DROP,
 -      SK_REDIRECT,
 +      SK_DROP = 0,
 +      SK_PASS,
  };
  
  #define BPF_TAG_SIZE  8
index 84fc2914b7fbf94616f5af46754c494af055e97c,32df53012cbd06c3ecf4b3e8f2cfacf25e80b595..cfe9712968350263ded68a2702d781685a10de7e
@@@ -1,3 -1,4 +1,4 @@@
+ /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  /* SCTP kernel implementation
   * (C) Copyright IBM Corp. 2001, 2004
   * Copyright (c) 1999-2000 Cisco, Inc.
@@@ -376,7 -377,7 +377,7 @@@ struct sctp_remote_error 
        __u16 sre_type;
        __u16 sre_flags;
        __u32 sre_length;
 -      __u16 sre_error;
 +      __be16 sre_error;
        sctp_assoc_t sre_assoc_id;
        __u8 sre_data[0];
  };
index 856de39d0b8900c49bb1097c7844e016b24312e3,ff0e381e7a77e2296928374c083cd907c22bc13a..c4253f0090d8c45d7221194938c680180e0c3240
@@@ -1,3 -1,4 +1,4 @@@
+ /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  /*
   * include/linux/spi/spidev.h
   *
@@@ -23,7 -24,6 +24,7 @@@
  #define SPIDEV_H
  
  #include <linux/types.h>
 +#include <linux/ioctl.h>
  
  /* User space versions of kernel symbols for SPI clocking modes,
   * matching <linux/spi/spi.h>
diff --combined lib/ioremap.c
index c835f9080c43c67d9b71086741b4977e5efe290f,ac7802b0a117aa07d203185265f002409cc618a5..b808a390e4c3e32d2789b059ab7752c6d533d7a3
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   * Re-map IO memory to kernel address space so that we can access it.
   * This is needed for high PCI addresses that aren't mapped in the
@@@ -161,7 -162,6 +162,7 @@@ int ioremap_page_range(unsigned long ad
        unsigned long next;
        int err;
  
 +      might_sleep();
        BUG_ON(addr >= end);
  
        start = addr;
diff --combined net/wireless/sme.c
index b6533ecbf5b1903510b1bf4318b8dee4c4839896,37cea4d98879979a013a5507a99bb2c6c79b917c..3dd05a08c60a1e2684d8f149ab48592917e8f35b
@@@ -1,3 -1,4 +1,4 @@@
+ // SPDX-License-Identifier: GPL-2.0
  /*
   * SME code for cfg80211
   * both driver SME event handling and the SME implementation
@@@ -522,6 -523,11 +523,6 @@@ static int cfg80211_sme_connect(struct 
                return -EOPNOTSUPP;
  
        if (wdev->current_bss) {
 -              if (!prev_bssid)
 -                      return -EALREADY;
 -              if (prev_bssid &&
 -                  !ether_addr_equal(prev_bssid, wdev->current_bss->pub.bssid))
 -                      return -ENOTCONN;
                cfg80211_unhold_bss(wdev->current_bss);
                cfg80211_put_bss(wdev->wiphy, &wdev->current_bss->pub);
                wdev->current_bss = NULL;
@@@ -1058,35 -1064,11 +1059,35 @@@ int cfg80211_connect(struct cfg80211_re
  
        ASSERT_WDEV_LOCK(wdev);
  
 -      if (WARN_ON(wdev->connect_keys)) {
 -              kzfree(wdev->connect_keys);
 -              wdev->connect_keys = NULL;
 +      /*
 +       * If we have an ssid_len, we're trying to connect or are
 +       * already connected, so reject a new SSID unless it's the
 +       * same (which is the case for re-association.)
 +       */
 +      if (wdev->ssid_len &&
 +          (wdev->ssid_len != connect->ssid_len ||
 +           memcmp(wdev->ssid, connect->ssid, wdev->ssid_len)))
 +              return -EALREADY;
 +
 +      /*
 +       * If connected, reject (re-)association unless prev_bssid
 +       * matches the current BSSID.
 +       */
 +      if (wdev->current_bss) {
 +              if (!prev_bssid)
 +                      return -EALREADY;
 +              if (!ether_addr_equal(prev_bssid, wdev->current_bss->pub.bssid))
 +                      return -ENOTCONN;
        }
  
 +      /*
 +       * Reject if we're in the process of connecting with WEP,
 +       * this case isn't very interesting and trying to handle
 +       * it would make the code much more complex.
 +       */
 +      if (wdev->connect_keys)
 +              return -EINPROGRESS;
 +
        cfg80211_oper_and_ht_capa(&connect->ht_capa_mask,
                                  rdev->wiphy.ht_capa_mod_mask);
  
  
        if (err) {
                wdev->connect_keys = NULL;
 -              wdev->ssid_len = 0;
 +              /*
 +               * This could be reassoc getting refused, don't clear
 +               * ssid_len in that case.
 +               */
 +              if (!wdev->current_bss)
 +                      wdev->ssid_len = 0;
                return err;
        }
  
@@@ -1169,14 -1146,6 +1170,14 @@@ int cfg80211_disconnect(struct cfg80211
        else if (wdev->ssid_len)
                err = rdev_disconnect(rdev, dev, reason);
  
 +      /*
 +       * Clear ssid_len unless we actually were fully connected,
 +       * in which case cfg80211_disconnected() will take care of
 +       * this later.
 +       */
 +      if (!wdev->current_bss)
 +              wdev->ssid_len = 0;
 +
        return err;
  }
  
diff --combined scripts/Makefile.modpost
index 756d14f0d76384274f9dd04ac1045a0d00f87e2c,b8278b51cd9a1055fe7d15bb86fe15f0658d02b1..991db7d6e4df8bff58ac0e3b6b7799c0a195bba4
@@@ -1,3 -1,4 +1,4 @@@
+ # SPDX-License-Identifier: GPL-2.0
  # ===========================================================================
  # Module versions
  # ===========================================================================
@@@ -97,6 -98,7 +98,6 @@@ vmlinux.o: FORC
        $(call cmd,kernel-mod)
  
  # Declare generated files as targets for modpost
 -$(symverfile):         __modpost ;
  $(modules:.ko=.mod.c): __modpost ;
  
  
index 81a34426d0240f92187e19dde633d3e8e5b365ef,e7ff2183532ab1d589bb8d2f0a3f16f42efb72f2..9a6b4033d52b8f5459a7ac49b7d7b05ef38a2967
@@@ -1,14 -1,48 +1,15 @@@
+ # SPDX-License-Identifier: GPL-2.0
  # Makefile for AppArmor Linux Security Module
  #
  obj-$(CONFIG_SECURITY_APPARMOR) += apparmor.o
  
  apparmor-y := apparmorfs.o audit.o capability.o context.o ipc.o lib.o match.o \
                path.o domain.o policy.o policy_unpack.o procattr.o lsm.o \
 -              resource.o secid.o file.o policy_ns.o label.o mount.o net.o
 +              resource.o secid.o file.o policy_ns.o label.o mount.o
  apparmor-$(CONFIG_SECURITY_APPARMOR_HASH) += crypto.o
  
 -clean-files := capability_names.h rlim_names.h net_names.h
 +clean-files := capability_names.h rlim_names.h
  
 -# Build a lower case string table of address family names
 -# Transform lines from
 -#    #define AF_LOCAL         1       /* POSIX name for AF_UNIX       */
 -#    #define AF_INET          2       /* Internet IP Protocol         */
 -# to
 -#    [1] = "local",
 -#    [2] = "inet",
 -#
 -# and build the securityfs entries for the mapping.
 -# Transforms lines from
 -#    #define AF_INET          2       /* Internet IP Protocol         */
 -# to
 -#    #define AA_SFS_AF_MASK "local inet"
 -quiet_cmd_make-af = GEN     $@
 -cmd_make-af = echo "static const char *address_family_names[] = {" > $@ ;\
 -      sed $< >>$@ -r -n -e "/AF_MAX/d" -e "/AF_LOCAL/d" -e "/AF_ROUTE/d" -e \
 -       's/^\#define[ \t]+AF_([A-Z0-9_]+)[ \t]+([0-9]+)(.*)/[\2] = "\L\1",/p';\
 -      echo "};" >> $@ ;\
 -      printf '%s' '\#define AA_SFS_AF_MASK "' >> $@ ;\
 -      sed -r -n -e "/AF_MAX/d" -e "/AF_LOCAL/d" -e "/AF_ROUTE/d" -e \
 -       's/^\#define[ \t]+AF_([A-Z0-9_]+)[ \t]+([0-9]+)(.*)/\L\1/p'\
 -       $< | tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@
 -
 -# Build a lower case string table of sock type names
 -# Transform lines from
 -#    SOCK_STREAM      = 1,
 -# to
 -#    [1] = "stream",
 -quiet_cmd_make-sock = GEN     $@
 -cmd_make-sock = echo "static const char *sock_type_names[] = {" >> $@ ;\
 -      sed $^ >>$@ -r -n \
 -      -e 's/^\tSOCK_([A-Z0-9_]+)[\t]+=[ \t]+([0-9]+)(.*)/[\2] = "\L\1",/p';\
 -      echo "};" >> $@
  
  # Build a lower case string table of capability names
  # Transforms lines from
@@@ -61,6 -95,7 +62,6 @@@ cmd_make-rlim = echo "static const cha
            tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@
  
  $(obj)/capability.o : $(obj)/capability_names.h
 -$(obj)/net.o : $(obj)/net_names.h
  $(obj)/resource.o : $(obj)/rlim_names.h
  $(obj)/capability_names.h : $(srctree)/include/uapi/linux/capability.h \
                            $(src)/Makefile
  $(obj)/rlim_names.h : $(srctree)/include/uapi/asm-generic/resource.h \
                      $(src)/Makefile
        $(call cmd,make-rlim)
 -$(obj)/net_names.h : $(srctree)/include/linux/socket.h \
 -                   $(srctree)/include/linux/net.h \
 -                   $(src)/Makefile
 -      $(call cmd,make-af)
 -      $(call cmd,make-sock)
index db350035fad7c5e477b4106bcfba9d1090b543c0,ebae545241a444033377f87a494e3df4de27950f..eaf8f933bab8ae60c22475dbaaf6adf771474654
@@@ -1,3 -1,4 +1,4 @@@
+ /* SPDX-License-Identifier: GPL-2.0 */
  #ifndef __ADAU17X1_H__
  #define __ADAU17X1_H__
  
@@@ -129,7 -130,5 +130,7 @@@ bool adau17x1_has_dsp(struct adau *adau
  
  #define ADAU17X1_CONVERTER0_CONVSR_MASK               0x7
  
 +#define ADAU17X1_CONVERTER0_ADOSR             BIT(3)
 +
  
  #endif
index 1e8b6116ba3c4ee03e137b737b84aaa26d133b94,f5c95d4f56a1747c8f5537e33a26ba4907a0e339..654efd9768fd3687924d6c2caf75a9b5425b8225
@@@ -1,7 -1,8 +1,8 @@@
+ # SPDX-License-Identifier: GPL-2.0
  ifneq ($(O),)
  ifeq ($(origin O), command line)
 -      ABSOLUTE_O := $(realpath $(O))
 -      dummy := $(if $(ABSOLUTE_O),,$(error O=$(O) does not exist))
 +      dummy := $(if $(shell test -d $(O) || echo $(O)),$(error O=$(O) does not exist),)
 +      ABSOLUTE_O := $(shell cd $(O) ; pwd)
        OUTPUT := $(ABSOLUTE_O)/$(if $(subdir),$(subdir)/)
        COMMAND_O := O=$(ABSOLUTE_O)
  ifeq ($(objtree),)
@@@ -12,7 -13,7 +13,7 @@@ endi
  
  # check that the output directory actually exists
  ifneq ($(OUTPUT),)
 -OUTDIR := $(realpath $(OUTPUT))
 +OUTDIR := $(shell cd $(OUTPUT) && /bin/pwd)
  $(if $(OUTDIR),, $(error output directory "$(OUTPUT)" does not exist))
  endif
  
index a8981c5d0aaf190fae20ec6ddb0e22984665c8e2,f8ccc7e0ab052a550ea00506abc3b5977a9c276a..b8462e1b74f960a837de44e5e8b75638d1fdee62
@@@ -1,4 -1,5 +1,5 @@@
  #!/usr/bin/env python3
+ # SPDX-License-Identifier: GPL-2.0
  
  """
  tdc.py - Linux tc (Traffic Control) unit test driver
@@@ -88,7 -89,7 +89,7 @@@ def prepare_env(cmdlist)
              exit(1)
  
  
 -def test_runner(filtered_tests):
 +def test_runner(filtered_tests, args):
      """
      Driver function for the unit tests.
  
      for tidx in testlist:
          result = True
          tresult = ""
 +        if "flower" in tidx["category"] and args.device == None:
 +            continue
          print("Test " + tidx["id"] + ": " + tidx["name"])
          prepare_env(tidx["setup"])
          (p, procout) = exec_cmd(tidx["cmdUnderTest"])
@@@ -152,11 -151,7 +153,11 @@@ def ns_create()
          exec_cmd(cmd, False)
          cmd = 'ip link set $DEV0 up'
          exec_cmd(cmd, False)
 -        cmd = 'ip -s $NS link set $DEV1 up'
 +        cmd = 'ip -n $NS link set $DEV1 up'
 +        exec_cmd(cmd, False)
 +        cmd = 'ip link set $DEV2 netns $NS'
 +        exec_cmd(cmd, False)
 +        cmd = 'ip -n $NS link set $DEV2 up'
          exec_cmd(cmd, False)
  
  
@@@ -217,8 -212,7 +218,8 @@@ def set_args(parser)
                          help='Execute the single test case with specified ID')
      parser.add_argument('-i', '--id', action='store_true', dest='gen_id',
                          help='Generate ID numbers for new test cases')
 -    return parser
 +    parser.add_argument('-d', '--device',
 +                        help='Execute the test case in flower category')
      return parser
  
  
@@@ -232,8 -226,6 +233,8 @@@ def check_default_settings(args)
  
      if args.path != None:
           NAMES['TC'] = args.path
 +    if args.device != None:
 +         NAMES['DEV2'] = args.device
      if not os.path.isfile(NAMES['TC']):
          print("The specified tc path " + NAMES['TC'] + " does not exist.")
          exit(1)
@@@ -390,17 -382,14 +391,17 @@@ def set_operation_mode(args)
              if (len(alltests) == 0):
                  print("Cannot find a test case with ID matching " + target_id)
                  exit(1)
 -        catresults = test_runner(alltests)
 +        catresults = test_runner(alltests, args)
          print("All test results: " + "\n\n" + catresults)
      elif (len(target_category) > 0):
 +        if (target_category == "flower") and args.device == None:
 +            print("Please specify a NIC device (-d) to run category flower")
 +            exit(1)
          if (target_category not in ucat):
              print("Specified category is not present in this file.")
              exit(1)
          else:
 -            catresults = test_runner(testcases[target_category])
 +            catresults = test_runner(testcases[target_category], args)
              print("Category " + target_category + "\n\n" + catresults)
  
      ns_destroy()
index b6352515c1b5778a6bcd7d40f672be3bb2fbfb11,c56269c7cac86d1925daa6833f0ec962467a5a69..eb188c729dd6a06d03923ecbb7163cc9b1944b4b
@@@ -1,4 -1,5 +1,5 @@@
  """
+ # SPDX-License-Identifier: GPL-2.0
  tdc_config.py - tdc user-specified values
  
  Copyright (C) 2017 Lucas Bates <[email protected]>
@@@ -12,8 -13,6 +13,8 @@@ NAMES = 
            # Name of veth devices to be created for the namespace
            'DEV0': 'v0p0',
            'DEV1': 'v0p1',
 +          'DEV2': '',
 +          'BATCH_FILE': './batch.txt',
            # Name of the namespace to use
            'NS': 'tcut'
          }
This page took 0.331617 seconds and 4 git commands to generate.