1. 06 6月, 2018 1 次提交
  2. 29 5月, 2018 1 次提交
  3. 26 5月, 2018 1 次提交
  4. 22 5月, 2018 3 次提交
  5. 17 5月, 2018 11 次提交
  6. 14 5月, 2018 3 次提交
  7. 12 5月, 2018 1 次提交
  8. 11 5月, 2018 1 次提交
  9. 07 5月, 2018 1 次提交
  10. 05 5月, 2018 3 次提交
  11. 04 5月, 2018 1 次提交
  12. 03 5月, 2018 1 次提交
  13. 28 4月, 2018 1 次提交
    • T
      scripts: Add SPDX checker script · 5385a295
      Thomas Gleixner 提交于
      The SPDX-License-Identifiers are growing in the kernel and so grow
      expression failures and license IDs are used which have no corresponding
      license text file in the LICENSES directory.
      
      Add a script which gathers information from the LICENSES directory,
      i.e. the various tags in the licenses and exception files and then scans
      either input from stdin, which it treats as a single file or if started
      without arguments it scans the full kernel tree.
      
      It checks whether the license expression syntax is correct and also
      validates whether the license identifiers used in the expressions are
      available in the LICENSES files.
      
      scripts/spdxcheck.py -h
      usage: spdxcheck.py [-h] [-m MAXLINES] [-v] [path [path ...]]
      
      SPDX expression checker
      
      positional arguments:
        path                  Check path or file. If not given full git tree scan.
                              For stdin use "-"
      
      optional arguments:
        -h, --help            show this help message and exit
        -m MAXLINES, --maxlines MAXLINES
                              Maximum number of lines to scan in a file. Default 15
        -v, --verbose         Verbose statistics output
      
      include/dt-bindings/reset/amlogic,meson-axg-reset.h: 9:41 Invalid License ID: BSD
      
      drivers/pinctrl/sh-pfc/pfc-r8a77965.c: 1:28 Invalid License ID: GPL-2.
      include/dt-bindings/reset/amlogic,meson-axg-reset.h: 9:41 Invalid License ID: BSD
      
      arch/x86/kernel/jailhouse.c: 1:28 Invalid License ID: GPL2.0
      include/dt-bindings/reset/amlogic,meson-axg-reset.h: 9:41 Invalid License ID: BSD
      
      arch/arm/mach-s3c24xx/h1940-bluetooth.c: 1:28 Invalid License ID: GPL-1.0
      arch/x86/kernel/jailhouse.c: 1:28 Invalid License ID: GPL2.0
      drivers/pinctrl/sh-pfc/pfc-r8a77965.c: 1:28 Invalid License ID: GPL-2.
      include/dt-bindings/reset/amlogic,meson-axg-reset.h: 9:41 Invalid License ID: BSD
      arch/x86/include/asm/jailhouse_para.h: 1:28 Invalid License ID: GPL2.0
      
      arch/arm/mach-s3c24xx/h1940-bluetooth.c: 1:28 Invalid License ID: GPL-1.0
      arch/x86/kernel/jailhouse.c: 1:28 Invalid License ID: GPL2.0
      drivers/pinctrl/sh-pfc/pfc-r8a77965.c: 1:28 Invalid License ID: GPL-2.
      include/dt-bindings/reset/amlogic,meson-axg-reset.h: 9:41 Invalid License ID: BSD
      arch/x86/include/asm/jailhouse_para.h: 1:28 Invalid License ID: GPL2.0
      
      License files:               14
      Exception files:              1
      License IDs                  19
      Exception IDs                 1
      
      Files checked:            61332
      Lines checked:           669181
      Files with SPDX:          16169
      Files with errors:            5
      
      real	0m2.642s
      user	0m2.231s
      sys	0m0.467s
      
      That's a full tree sweep on my laptop. Note, this runs single threaded.
      
      It scans by default the first 15 lines for a SPDX identifier where the
      current max inside a top comment is at line 10. But that's going to be
      faster once the identifiers are all in the first two lines as documented.
      
      The python wizards will surely know how to do that smarter and faster, but
      its at least better than no tool at all.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Reviewed-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      [jc: Fixed ironically erroneous SPDX tag and did chmod +x ]
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      5385a295
  14. 24 4月, 2018 1 次提交
    • R
      dtc: checks: drop warning for missing PCI bridge bus-range · 970f04c8
      Rob Herring 提交于
      Cherry-picked from dtc upstream commit e1f139ea4900fd0324c646822b4061fec6e08321.
      
      Having a 'bus-range' property for PCI bridges should not be required,
      so remove the warning when missing. There was some confusion with the
      Linux kernel printing a message that no property is present and the OS
      assigned the bus number. This message was intended to be informational
      rather than a warning.
      
      When the firmware doesn't enumerate the PCI bus and leaves it up to the
      OS to do, then it is perfectly fine for the OS to assign bus numbers
      and bus-range is not necessary.
      
      There are a few cases where bus-range is needed or useful as Arnd
      Bergmann summarized:
      
      - Traditionally Linux avoided using multiple PCI domains, but instead
        configured separate PCI host bridges to have non-overlapping
        bus ranges so we can present them to user space as a single
        domain, and run the kernel without CONFIG_PCI_DOMAINS.
        Specifying the bus ranges this way would and give stable bus
        numbers across boots when the probe order is not fixed.
      
      - On certain ARM64 systems, we must only use the first
        128 bus numbers based on the way the IOMMU identifies
        the device with truncated bus/dev/fn number. There are probably
        others like this, with various limitations.
      
      - To leave some room for hotplugged devices, each slot on
        a host bridge can in theory get a range of bus numbers
        that are available when assigning bus numbers at boot time
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      970f04c8
  15. 13 4月, 2018 2 次提交
    • D
      kconfig: extend output of 'listnewconfig' · 17baab68
      Don Zickus 提交于
      We at Red Hat/Fedora have generally tried to have a per file breakdown of
      every config option we set.  This makes it easy for us to add new options
      when they are exposed and keep a changelog of why they were set.
      
      A Fedora example is here:
        https://src.fedoraproject.org/cgit/rpms/kernel.git/tree/configs/fedora/generic
      
      Using various merge scripts, we build up a config file and run it through
      'make listnewconfig' and 'make oldnoconfig'.   The idea is to print out new
      config options that haven't been manually set and use the default until
      a patch is posted to set it properly.
      
      To speed things up, it would be nice to make it easier to generate a
      patch to post the default setting.  The output of 'make listnewconfig'
      has two issues that limit us:
      
      - it doesn't provide the default value
      - it doesn't provide the new 'choice' options that get flagged in
        'oldconfig'
      
      This patch extends 'listnewconfig' to address the above two issues.
      
      This allows us to run a script
      
      make listnewconfig | rhconfig-tool -o patches; git send-email patches/
      
      The output of 'make listnewconfig':
      
      CONFIG_NET_EMATCH_IPT
      CONFIG_IPVLAN
      CONFIG_ICE
      CONFIG_NET_VENDOR_NI
      CONFIG_IEEE802154_MCR20A
      CONFIG_IR_IMON_DECODER
      CONFIG_IR_IMON_RAW
      
      The new output of 'make listnewconfig':
      
      CONFIG_KERNEL_XZ=n
      CONFIG_KERNEL_LZO=n
      CONFIG_NET_EMATCH_IPT=n
      CONFIG_IPVLAN=n
      CONFIG_ICE=n
      CONFIG_NET_VENDOR_NI=y
      CONFIG_IEEE802154_MCR20A=n
      CONFIG_IR_IMON_DECODER=n
      CONFIG_IR_IMON_RAW=n
      Signed-off-by: NDon Zickus <dzickus@redhat.com>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      17baab68
    • J
      kbuild: rpm-pkg: use kernel-install as a fallback for new-kernel-pkg · eea6f62b
      Javier Martinez Canillas 提交于
      The new-kernel-pkg script is only present when grubby is installed, but it
      may not always be the case. So if the script isn't present, attempt to use
      the kernel-install script as a fallback instead.
      Signed-off-by: NJavier Martinez Canillas <javierm@redhat.com>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      eea6f62b
  16. 12 4月, 2018 8 次提交