diff options
| author | David S. Miller <davem@davemloft.net> | 2017-11-03 20:26:51 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-11-03 20:26:51 -0400 |
| commit | 2a171788ba7bb61995e98e8163204fc7880f63b2 (patch) | |
| tree | 4150a94dd08323748116e5051e56ddee830d4812 /scripts | |
| parent | bf5345882bd18bc1b4966d170c0491ebe5c9a7d6 (diff) | |
| parent | d4c2e9fca5b7db8d315d93a072e65d0847f8e0c5 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Files removed in 'net-next' had their license header updated
in 'net'. We take the remove from 'net-next'.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts')
94 files changed, 95 insertions, 1 deletions
diff --git a/scripts/Lindent b/scripts/Lindent index 57b564c24d61..1688c44c2df6 100755 --- a/scripts/Lindent +++ b/scripts/Lindent | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1" | 4 | PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1" |
| 4 | 5 | ||
diff --git a/scripts/Makefile b/scripts/Makefile index c06f4997d700..25ab143cbe14 100644 --- a/scripts/Makefile +++ b/scripts/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | ### | 2 | ### |
| 2 | # scripts contains sources for various helper programs used throughout | 3 | # scripts contains sources for various helper programs used throughout |
| 3 | # the kernel for the build process. | 4 | # the kernel for the build process. |
diff --git a/scripts/Makefile.asm-generic b/scripts/Makefile.asm-generic index a6c8c1780855..524eeedc8d25 100644 --- a/scripts/Makefile.asm-generic +++ b/scripts/Makefile.asm-generic | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # include/asm-generic contains a lot of files that are used | 2 | # include/asm-generic contains a lot of files that are used |
| 2 | # verbatim by several architectures. | 3 | # verbatim by several architectures. |
| 3 | # | 4 | # |
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 061d0c3a420a..bb831d49bcfd 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # ========================================================================== | 2 | # ========================================================================== |
| 2 | # Building | 3 | # Building |
| 3 | # ========================================================================== | 4 | # ========================================================================== |
| @@ -419,7 +420,7 @@ targets += $(extra-y) $(MAKECMDGOALS) $(always) | |||
| 419 | # Linker scripts preprocessor (.lds.S -> .lds) | 420 | # Linker scripts preprocessor (.lds.S -> .lds) |
| 420 | # --------------------------------------------------------------------------- | 421 | # --------------------------------------------------------------------------- |
| 421 | quiet_cmd_cpp_lds_S = LDS $@ | 422 | quiet_cmd_cpp_lds_S = LDS $@ |
| 422 | cmd_cpp_lds_S = $(CPP) $(cpp_flags) -P -C -U$(ARCH) \ | 423 | cmd_cpp_lds_S = $(CPP) $(cpp_flags) -P -U$(ARCH) \ |
| 423 | -D__ASSEMBLY__ -DLINKER_SCRIPT -o $@ $< | 424 | -D__ASSEMBLY__ -DLINKER_SCRIPT -o $@ $< |
| 424 | 425 | ||
| 425 | $(obj)/%.lds: $(src)/%.lds.S FORCE | 426 | $(obj)/%.lds: $(src)/%.lds.S FORCE |
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index 50616ea25131..808d09f27ad4 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # ========================================================================== | 2 | # ========================================================================== |
| 2 | # Cleaning up | 3 | # Cleaning up |
| 3 | # ========================================================================== | 4 | # ========================================================================== |
diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst index 993fb85982df..c8ba6e7f9868 100644 --- a/scripts/Makefile.dtbinst +++ b/scripts/Makefile.dtbinst | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # ========================================================================== | 2 | # ========================================================================== |
| 2 | # Installing dtb files | 3 | # Installing dtb files |
| 3 | # | 4 | # |
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index ae8a1357d01d..c6ebf4239e64 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # ========================================================================== | 2 | # ========================================================================== |
| 2 | # | 3 | # |
| 3 | # make W=... settings | 4 | # make W=... settings |
diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins index d1f7b0d6be66..b2a95af7df18 100644 --- a/scripts/Makefile.gcc-plugins +++ b/scripts/Makefile.gcc-plugins | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | ifdef CONFIG_GCC_PLUGINS | 2 | ifdef CONFIG_GCC_PLUGINS |
| 2 | __PLUGINCC := $(call cc-ifversion, -ge, 0408, $(HOSTCXX), $(HOSTCC)) | 3 | __PLUGINCC := $(call cc-ifversion, -ge, 0408, $(HOSTCXX), $(HOSTCC)) |
| 3 | PLUGINCC := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-plugin.sh "$(__PLUGINCC)" "$(HOSTCXX)" "$(CC)") | 4 | PLUGINCC := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-plugin.sh "$(__PLUGINCC)" "$(HOSTCXX)" "$(CC)") |
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index 343d586e566e..99967948d764 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # ========================================================================== | 2 | # ========================================================================== |
| 2 | # Installing headers | 3 | # Installing headers |
| 3 | # | 4 | # |
diff --git a/scripts/Makefile.host b/scripts/Makefile.host index 9cfd5c84d76f..10e5c3cb89dc 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # ========================================================================== | 2 | # ========================================================================== |
| 2 | # Building binaries on the host system | 3 | # Building binaries on the host system |
| 3 | # Binaries are used during the compilation of the kernel, for example | 4 | # Binaries are used during the compilation of the kernel, for example |
diff --git a/scripts/Makefile.kasan b/scripts/Makefile.kasan index 9576775a86f6..1ce7115aa499 100644 --- a/scripts/Makefile.kasan +++ b/scripts/Makefile.kasan | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | ifdef CONFIG_KASAN | 2 | ifdef CONFIG_KASAN |
| 2 | ifdef CONFIG_KASAN_INLINE | 3 | ifdef CONFIG_KASAN_INLINE |
| 3 | call_threshold := 10000 | 4 | call_threshold := 10000 |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 5e975fee0f5b..04b5633df1cf 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # Backward compatibility | 2 | # Backward compatibility |
| 2 | asflags-y += $(EXTRA_AFLAGS) | 3 | asflags-y += $(EXTRA_AFLAGS) |
| 3 | ccflags-y += $(EXTRA_CFLAGS) | 4 | ccflags-y += $(EXTRA_CFLAGS) |
diff --git a/scripts/Makefile.modbuiltin b/scripts/Makefile.modbuiltin index 1adb974e6950..a763b4775d06 100644 --- a/scripts/Makefile.modbuiltin +++ b/scripts/Makefile.modbuiltin | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # ========================================================================== | 2 | # ========================================================================== |
| 2 | # Generating modules.builtin | 3 | # Generating modules.builtin |
| 3 | # ========================================================================== | 4 | # ========================================================================== |
diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst index 07650eeaaf06..51ca0244fc8a 100644 --- a/scripts/Makefile.modinst +++ b/scripts/Makefile.modinst | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # ========================================================================== | 2 | # ========================================================================== |
| 2 | # Installing modules | 3 | # Installing modules |
| 3 | # ========================================================================== | 4 | # ========================================================================== |
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index 756d14f0d763..991db7d6e4df 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # =========================================================================== | 2 | # =========================================================================== |
| 2 | # Module versions | 3 | # Module versions |
| 3 | # =========================================================================== | 4 | # =========================================================================== |
diff --git a/scripts/Makefile.modsign b/scripts/Makefile.modsign index b6ac7084da79..171483bc0538 100644 --- a/scripts/Makefile.modsign +++ b/scripts/Makefile.modsign | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # ========================================================================== | 2 | # ========================================================================== |
| 2 | # Signing modules | 3 | # Signing modules |
| 3 | # ========================================================================== | 4 | # ========================================================================== |
diff --git a/scripts/Makefile.ubsan b/scripts/Makefile.ubsan index 3b1b13818d59..8fd4d44fbcd1 100644 --- a/scripts/Makefile.ubsan +++ b/scripts/Makefile.ubsan | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | ifdef CONFIG_UBSAN | 2 | ifdef CONFIG_UBSAN |
| 2 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=shift) | 3 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=shift) |
| 3 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=integer-divide-by-zero) | 4 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=integer-divide-by-zero) |
diff --git a/scripts/check_00index.sh b/scripts/check_00index.sh index 6ac9527aeddb..aa47f5926c80 100755 --- a/scripts/check_00index.sh +++ b/scripts/check_00index.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | cd Documentation/ | 4 | cd Documentation/ |
| 4 | 5 | ||
diff --git a/scripts/check_extable.sh b/scripts/check_extable.sh index 0fb6b1c97c27..93af93c7b346 100755 --- a/scripts/check_extable.sh +++ b/scripts/check_extable.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #! /bin/bash | 1 | #! /bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # (c) 2015, Quentin Casasnovas <quentin.casasnovas@oracle.com> | 3 | # (c) 2015, Quentin Casasnovas <quentin.casasnovas@oracle.com> |
| 3 | 4 | ||
| 4 | obj=$1 | 5 | obj=$1 |
diff --git a/scripts/checkincludes.pl b/scripts/checkincludes.pl index ce9edefd6e0b..b514a956d550 100755 --- a/scripts/checkincludes.pl +++ b/scripts/checkincludes.pl | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # checkincludes: find/remove files included more than once | 4 | # checkincludes: find/remove files included more than once |
| 4 | # | 5 | # |
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index 7f4c41717e26..cb993801e4b2 100755 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | # Check the stack usage of functions | 4 | # Check the stack usage of functions |
| 4 | # | 5 | # |
diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh index 5a387a264201..ee3dfb5be6cd 100755 --- a/scripts/checksyscalls.sh +++ b/scripts/checksyscalls.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # Check if current architecture are missing any function calls compared | 4 | # Check if current architecture are missing any function calls compared |
| 4 | # to i386. | 5 | # to i386. |
diff --git a/scripts/checkversion.pl b/scripts/checkversion.pl index 8b4f205234b5..f67b125c5269 100755 --- a/scripts/checkversion.pl +++ b/scripts/checkversion.pl | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #! /usr/bin/env perl | 1 | #! /usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # checkversion find uses of LINUX_VERSION_CODE or KERNEL_VERSION | 4 | # checkversion find uses of LINUX_VERSION_CODE or KERNEL_VERSION |
| 4 | # without including <linux/version.h>, or cases of | 5 | # without including <linux/version.h>, or cases of |
diff --git a/scripts/cleanfile b/scripts/cleanfile index 72e3755327ae..c00c69b9171a 100755 --- a/scripts/cleanfile +++ b/scripts/cleanfile | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # Clean a text file -- or directory of text files -- of stealth whitespace. | 4 | # Clean a text file -- or directory of text files -- of stealth whitespace. |
| 4 | # WARNING: this can be a highly destructive operation. Use with caution. | 5 | # WARNING: this can be a highly destructive operation. Use with caution. |
diff --git a/scripts/cleanpatch b/scripts/cleanpatch index 3e5a2303dc0e..9f1755271516 100755 --- a/scripts/cleanpatch +++ b/scripts/cleanpatch | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # Clean a patch file -- or directory of patch files -- of stealth whitespace. | 4 | # Clean a patch file -- or directory of patch files -- of stealth whitespace. |
| 4 | # WARNING: this can be a highly destructive operation. Use with caution. | 5 | # WARNING: this can be a highly destructive operation. Use with caution. |
diff --git a/scripts/coccicheck b/scripts/coccicheck index ec487b8e7051..28ad1feff9e1 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Linux kernel coccicheck | 3 | # Linux kernel coccicheck |
| 3 | # | 4 | # |
| 4 | # Read Documentation/dev-tools/coccinelle.rst | 5 | # Read Documentation/dev-tools/coccinelle.rst |
diff --git a/scripts/coccinelle/api/d_find_alias.cocci b/scripts/coccinelle/api/d_find_alias.cocci index 9594c9f7eb8d..47e050166f20 100644 --- a/scripts/coccinelle/api/d_find_alias.cocci +++ b/scripts/coccinelle/api/d_find_alias.cocci | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /// Make sure calls to d_find_alias() have a corresponding call to dput(). | 2 | /// Make sure calls to d_find_alias() have a corresponding call to dput(). |
| 2 | // | 3 | // |
| 3 | // Keywords: d_find_alias, dput | 4 | // Keywords: d_find_alias, dput |
diff --git a/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci b/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci index 85cf5408d378..7c312310547c 100644 --- a/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci +++ b/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /// Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE | 2 | /// Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE |
| 2 | /// for debugfs files. | 3 | /// for debugfs files. |
| 3 | /// | 4 | /// |
diff --git a/scripts/coccinelle/api/drm-get-put.cocci b/scripts/coccinelle/api/drm-get-put.cocci index 0c7a9265c07e..bf1313274f0b 100644 --- a/scripts/coccinelle/api/drm-get-put.cocci +++ b/scripts/coccinelle/api/drm-get-put.cocci | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /// | 2 | /// |
| 2 | /// Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and | 3 | /// Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and |
| 3 | /// drm_*_unreference() helpers. | 4 | /// drm_*_unreference() helpers. |
diff --git a/scripts/coccinelle/api/simple_open.cocci b/scripts/coccinelle/api/simple_open.cocci index bd1a2a4ee106..c121876d54ec 100644 --- a/scripts/coccinelle/api/simple_open.cocci +++ b/scripts/coccinelle/api/simple_open.cocci | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /// Remove an open coded simple_open() function | 2 | /// Remove an open coded simple_open() function |
| 2 | /// and replace file operations references to the function | 3 | /// and replace file operations references to the function |
| 3 | /// with simple_open() instead. | 4 | /// with simple_open() instead. |
diff --git a/scripts/coccinelle/api/vma_pages.cocci b/scripts/coccinelle/api/vma_pages.cocci index 3e52e11ea1dc..10511b9bf35e 100644 --- a/scripts/coccinelle/api/vma_pages.cocci +++ b/scripts/coccinelle/api/vma_pages.cocci | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /// | 2 | /// |
| 2 | /// Use vma_pages function on vma object instead of explicit computation. | 3 | /// Use vma_pages function on vma object instead of explicit computation. |
| 3 | /// | 4 | /// |
diff --git a/scripts/coccinelle/misc/boolreturn.cocci b/scripts/coccinelle/misc/boolreturn.cocci index a43c7b0c36ef..29d2bf41e95d 100644 --- a/scripts/coccinelle/misc/boolreturn.cocci +++ b/scripts/coccinelle/misc/boolreturn.cocci | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /// Return statements in functions returning bool should use | 2 | /// Return statements in functions returning bool should use |
| 2 | /// true/false instead of 1/0. | 3 | /// true/false instead of 1/0. |
| 3 | // | 4 | // |
diff --git a/scripts/coccinelle/misc/irqf_oneshot.cocci b/scripts/coccinelle/misc/irqf_oneshot.cocci index f698d6d0f5d7..7b48287b3dc1 100644 --- a/scripts/coccinelle/misc/irqf_oneshot.cocci +++ b/scripts/coccinelle/misc/irqf_oneshot.cocci | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /// Since commit 1c6c69525b40 ("genirq: Reject bogus threaded irq requests") | 2 | /// Since commit 1c6c69525b40 ("genirq: Reject bogus threaded irq requests") |
| 2 | /// threaded IRQs without a primary handler need to be requested with | 3 | /// threaded IRQs without a primary handler need to be requested with |
| 3 | /// IRQF_ONESHOT, otherwise the request will fail. | 4 | /// IRQF_ONESHOT, otherwise the request will fail. |
diff --git a/scripts/coccinelle/misc/of_table.cocci b/scripts/coccinelle/misc/of_table.cocci index 2294915a19bc..4693ea744753 100644 --- a/scripts/coccinelle/misc/of_table.cocci +++ b/scripts/coccinelle/misc/of_table.cocci | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /// Make sure (of/i2c/platform)_device_id tables are NULL terminated | 2 | /// Make sure (of/i2c/platform)_device_id tables are NULL terminated |
| 2 | // | 3 | // |
| 3 | // Keywords: of_table i2c_table platform_table | 4 | // Keywords: of_table i2c_table platform_table |
diff --git a/scripts/config b/scripts/config index 026aeb4f32ee..e0e39826dae9 100755 --- a/scripts/config +++ b/scripts/config | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Manipulate options in a .config file from the command line | 3 | # Manipulate options in a .config file from the command line |
| 3 | 4 | ||
| 4 | myname=${0##*/} | 5 | myname=${0##*/} |
diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh index 5206d99ddeb8..64220e36ce3b 100755 --- a/scripts/decode_stacktrace.sh +++ b/scripts/decode_stacktrace.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # (c) 2014, Sasha Levin <sasha.levin@oracle.com> | 3 | # (c) 2014, Sasha Levin <sasha.levin@oracle.com> |
| 3 | #set -x | 4 | #set -x |
| 4 | 5 | ||
diff --git a/scripts/decodecode b/scripts/decodecode index d8824f37acce..438120da1361 100755 --- a/scripts/decodecode +++ b/scripts/decodecode | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Disassemble the Code: line in Linux oopses | 3 | # Disassemble the Code: line in Linux oopses |
| 3 | # usage: decodecode < oops.file | 4 | # usage: decodecode < oops.file |
| 4 | # | 5 | # |
diff --git a/scripts/depmod.sh b/scripts/depmod.sh index 122599b1c13b..9831cca31240 100755 --- a/scripts/depmod.sh +++ b/scripts/depmod.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # A depmod wrapper used by the toplevel Makefile | 4 | # A depmod wrapper used by the toplevel Makefile |
| 4 | 5 | ||
diff --git a/scripts/diffconfig b/scripts/diffconfig index 0db267d0adc9..89abf777f197 100755 --- a/scripts/diffconfig +++ b/scripts/diffconfig | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/python | 1 | #!/usr/bin/python |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # diffconfig - a tool to compare .config files. | 4 | # diffconfig - a tool to compare .config files. |
| 4 | # | 5 | # |
diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index 2a48022c41e7..0dc922bb7aea 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # scripts/dtc makefile | 2 | # scripts/dtc makefile |
| 2 | 3 | ||
| 3 | hostprogs-y := dtc | 4 | hostprogs-y := dtc |
diff --git a/scripts/dtc/fdtdump.c b/scripts/dtc/fdtdump.c index 207a46d64864..7d460a50b513 100644 --- a/scripts/dtc/fdtdump.c +++ b/scripts/dtc/fdtdump.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * fdtdump.c - Contributed by Pantelis Antoniou <pantelis.antoniou AT gmail.com> | 3 | * fdtdump.c - Contributed by Pantelis Antoniou <pantelis.antoniou AT gmail.com> |
| 3 | */ | 4 | */ |
diff --git a/scripts/dtc/update-dtc-source.sh b/scripts/dtc/update-dtc-source.sh index b8ebcc6722d2..62f0d5325fd3 100755 --- a/scripts/dtc/update-dtc-source.sh +++ b/scripts/dtc/update-dtc-source.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Simple script to update the version of DTC carried by the Linux kernel | 3 | # Simple script to update the version of DTC carried by the Linux kernel |
| 3 | # | 4 | # |
| 4 | # This script assumes that the dtc and the linux git trees are in the | 5 | # This script assumes that the dtc and the linux git trees are in the |
diff --git a/scripts/extract-module-sig.pl b/scripts/extract-module-sig.pl index 0f161ea41261..36a2f59c4e41 100755 --- a/scripts/extract-module-sig.pl +++ b/scripts/extract-module-sig.pl | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # extract-mod-sig <part> <module-file> | 4 | # extract-mod-sig <part> <module-file> |
| 4 | # | 5 | # |
diff --git a/scripts/extract-sys-certs.pl b/scripts/extract-sys-certs.pl index 2aa873b944e0..fa8ab15118cc 100755 --- a/scripts/extract-sys-certs.pl +++ b/scripts/extract-sys-certs.pl | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | use warnings; | 4 | use warnings; |
| 4 | use strict; | 5 | use strict; |
diff --git a/scripts/faddr2line b/scripts/faddr2line index 2f6ce802397d..1f5ce959f596 100755 --- a/scripts/faddr2line +++ b/scripts/faddr2line | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # Translate stack dump function offsets. | 4 | # Translate stack dump function offsets. |
| 4 | # | 5 | # |
diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh index c9469d34ecc6..083c526073ef 100755 --- a/scripts/gcc-goto.sh +++ b/scripts/gcc-goto.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Test for gcc 'asm goto' support | 3 | # Test for gcc 'asm goto' support |
| 3 | # Copyright (C) 2010, Jason Baron <jbaron@redhat.com> | 4 | # Copyright (C) 2010, Jason Baron <jbaron@redhat.com> |
| 4 | 5 | ||
diff --git a/scripts/gcc-ld b/scripts/gcc-ld index cadab9a13ed7..997b818c3962 100755 --- a/scripts/gcc-ld +++ b/scripts/gcc-ld | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # run gcc with ld options | 3 | # run gcc with ld options |
| 3 | # used as a wrapper to execute link time optimizations | 4 | # used as a wrapper to execute link time optimizations |
| 4 | # yes virginia, this is not pretty | 5 | # yes virginia, this is not pretty |
diff --git a/scripts/gcc-plugin.sh b/scripts/gcc-plugin.sh index b65224bfb847..d3caefe53eab 100755 --- a/scripts/gcc-plugin.sh +++ b/scripts/gcc-plugin.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | srctree=$(dirname "$0") | 3 | srctree=$(dirname "$0") |
| 3 | 4 | ||
| 4 | SHOW_ERROR= | 5 | SHOW_ERROR= |
diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile index 214eb2335c31..e2ff425f4c7e 100644 --- a/scripts/gcc-plugins/Makefile +++ b/scripts/gcc-plugins/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin) | 2 | GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin) |
| 2 | 3 | ||
| 3 | ifeq ($(PLUGINCC),$(HOSTCC)) | 4 | ifeq ($(PLUGINCC),$(HOSTCC)) |
diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h index 6948898b3cdf..ffd1dfaa1cc1 100644 --- a/scripts/gcc-plugins/gcc-common.h +++ b/scripts/gcc-plugins/gcc-common.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef GCC_COMMON_H_INCLUDED | 2 | #ifndef GCC_COMMON_H_INCLUDED |
| 2 | #define GCC_COMMON_H_INCLUDED | 3 | #define GCC_COMMON_H_INCLUDED |
| 3 | 4 | ||
diff --git a/scripts/gcc-plugins/gcc-generate-gimple-pass.h b/scripts/gcc-plugins/gcc-generate-gimple-pass.h index 526c3c79b68e..f20797e80b6d 100644 --- a/scripts/gcc-plugins/gcc-generate-gimple-pass.h +++ b/scripts/gcc-plugins/gcc-generate-gimple-pass.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Generator for GIMPLE pass related boilerplate code/data | 3 | * Generator for GIMPLE pass related boilerplate code/data |
| 3 | * | 4 | * |
diff --git a/scripts/gcc-plugins/gcc-generate-ipa-pass.h b/scripts/gcc-plugins/gcc-generate-ipa-pass.h index 9bd926e072f0..92bb4f3a87a4 100644 --- a/scripts/gcc-plugins/gcc-generate-ipa-pass.h +++ b/scripts/gcc-plugins/gcc-generate-ipa-pass.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Generator for IPA pass related boilerplate code/data | 3 | * Generator for IPA pass related boilerplate code/data |
| 3 | * | 4 | * |
diff --git a/scripts/gcc-plugins/gcc-generate-rtl-pass.h b/scripts/gcc-plugins/gcc-generate-rtl-pass.h index 1dc67a5aeadf..d69cd80b6c10 100644 --- a/scripts/gcc-plugins/gcc-generate-rtl-pass.h +++ b/scripts/gcc-plugins/gcc-generate-rtl-pass.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Generator for RTL pass related boilerplate code/data | 3 | * Generator for RTL pass related boilerplate code/data |
| 3 | * | 4 | * |
diff --git a/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h b/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h index a27e2b36afaa..06800bc477e0 100644 --- a/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h +++ b/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | /* | 2 | /* |
| 2 | * Generator for SIMPLE_IPA pass related boilerplate code/data | 3 | * Generator for SIMPLE_IPA pass related boilerplate code/data |
| 3 | * | 4 | * |
diff --git a/scripts/gcc-plugins/gen-random-seed.sh b/scripts/gcc-plugins/gen-random-seed.sh index 7514850f4815..68af5cc20a64 100644 --- a/scripts/gcc-plugins/gen-random-seed.sh +++ b/scripts/gcc-plugins/gen-random-seed.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | if [ ! -f "$1" ]; then | 4 | if [ ! -f "$1" ]; then |
| 4 | SEED=`od -A n -t x8 -N 32 /dev/urandom | tr -d ' \n'` | 5 | SEED=`od -A n -t x8 -N 32 /dev/urandom | tr -d ' \n'` |
diff --git a/scripts/gcc-version.sh b/scripts/gcc-version.sh index 7f2126df91f2..11bb909845e7 100755 --- a/scripts/gcc-version.sh +++ b/scripts/gcc-version.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # gcc-version [-p] gcc-command | 4 | # gcc-version [-p] gcc-command |
| 4 | # | 5 | # |
diff --git a/scripts/gcc-x86_32-has-stack-protector.sh b/scripts/gcc-x86_32-has-stack-protector.sh index 12dbd0b11ea4..6b2aeefb9cd3 100755 --- a/scripts/gcc-x86_32-has-stack-protector.sh +++ b/scripts/gcc-x86_32-has-stack-protector.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs" | 4 | echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs" |
| 4 | if [ "$?" -eq "0" ] ; then | 5 | if [ "$?" -eq "0" ] ; then |
diff --git a/scripts/gcc-x86_64-has-stack-protector.sh b/scripts/gcc-x86_64-has-stack-protector.sh index 17867e723a51..4a48bdcd4d6b 100755 --- a/scripts/gcc-x86_64-has-stack-protector.sh +++ b/scripts/gcc-x86_64-has-stack-protector.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -mcmodel=kernel -fno-PIE -fstack-protector - -o - 2> /dev/null | grep -q "%gs" | 4 | echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -mcmodel=kernel -fno-PIE -fstack-protector - -o - 2> /dev/null | grep -q "%gs" |
| 4 | if [ "$?" -eq "0" ] ; then | 5 | if [ "$?" -eq "0" ] ; then |
diff --git a/scripts/gdb/linux/Makefile b/scripts/gdb/linux/Makefile index ab3cfe727a4e..aba23be985e4 100644 --- a/scripts/gdb/linux/Makefile +++ b/scripts/gdb/linux/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | always := gdb-scripts | 2 | always := gdb-scripts |
| 2 | 3 | ||
| 3 | SRCTREE := $(abspath $(srctree)) | 4 | SRCTREE := $(abspath $(srctree)) |
diff --git a/scripts/genksyms/Makefile b/scripts/genksyms/Makefile index 3c23bab3367b..34d6ab1811a4 100644 --- a/scripts/genksyms/Makefile +++ b/scripts/genksyms/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | 2 | ||
| 2 | hostprogs-y := genksyms | 3 | hostprogs-y := genksyms |
| 3 | always := $(hostprogs-y) | 4 | always := $(hostprogs-y) |
diff --git a/scripts/headerdep.pl b/scripts/headerdep.pl index 86ebb9ee7570..ebfcbef4371c 100755 --- a/scripts/headerdep.pl +++ b/scripts/headerdep.pl | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #! /usr/bin/env perl | 1 | #! /usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # Detect cycles in the header file dependency graph | 4 | # Detect cycles in the header file dependency graph |
| 4 | # Vegard Nossum <vegardno@ifi.uio.no> | 5 | # Vegard Nossum <vegardno@ifi.uio.no> |
diff --git a/scripts/headers.sh b/scripts/headers.sh index d4dc4de5cea1..e0f883eb39a2 100755 --- a/scripts/headers.sh +++ b/scripts/headers.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Run headers_$1 command for all suitable architectures | 3 | # Run headers_$1 command for all suitable architectures |
| 3 | 4 | ||
| 4 | # Stop on error | 5 | # Stop on error |
diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl index 3091e4ee6ee1..b6aec5e4365f 100755 --- a/scripts/headers_check.pl +++ b/scripts/headers_check.pl | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # headers_check.pl execute a number of trivial consistency checks | 4 | # headers_check.pl execute a number of trivial consistency checks |
| 4 | # | 5 | # |
diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh index fdebd66f8fc1..4d1ea96e8794 100755 --- a/scripts/headers_install.sh +++ b/scripts/headers_install.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | if [ $# -lt 2 ] | 4 | if [ $# -lt 2 ] |
| 4 | then | 5 | then |
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 8c12c20c55a6..297c1bf35140 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | # =========================================================================== | 2 | # =========================================================================== |
| 2 | # Kernel configuration targets | 3 | # Kernel configuration targets |
| 3 | # These targets are used from top-level makefile | 4 | # These targets are used from top-level makefile |
diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh index 55b79ba1ba2a..97f0fee7d173 100755 --- a/scripts/kconfig/check.sh +++ b/scripts/kconfig/check.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Needed for systems without gettext | 3 | # Needed for systems without gettext |
| 3 | $* -x c -o /dev/null - > /dev/null 2>&1 << EOF | 4 | $* -x c -o /dev/null - > /dev/null 2>&1 << EOF |
| 4 | #include <libintl.h> | 5 | #include <libintl.h> |
diff --git a/scripts/kconfig/list.h b/scripts/kconfig/list.h index 2cf23f002d3f..45cb237ab7ef 100644 --- a/scripts/kconfig/list.h +++ b/scripts/kconfig/list.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #ifndef LIST_H | 2 | #ifndef LIST_H |
| 2 | #define LIST_H | 3 | #define LIST_H |
| 3 | 4 | ||
diff --git a/scripts/kconfig/lkc_proto.h b/scripts/kconfig/lkc_proto.h index d5398718ec2a..5d86e2dfae59 100644 --- a/scripts/kconfig/lkc_proto.h +++ b/scripts/kconfig/lkc_proto.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #include <stdarg.h> | 2 | #include <stdarg.h> |
| 2 | 3 | ||
| 3 | /* confdata.c */ | 4 | /* confdata.c */ |
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh index 5075ebf2d3b9..a10bd9d6fafd 100755 --- a/scripts/kconfig/lxdialog/check-lxdialog.sh +++ b/scripts/kconfig/lxdialog/check-lxdialog.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Check ncurses compatibility | 3 | # Check ncurses compatibility |
| 3 | 4 | ||
| 4 | # What library to link | 5 | # What library to link |
diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh index d135882e2c40..f2be0ff9a738 100755 --- a/scripts/ld-version.sh +++ b/scripts/ld-version.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/awk -f | 1 | #!/usr/bin/awk -f |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # extract linker version number from stdin and turn into single number | 3 | # extract linker version number from stdin and turn into single number |
| 3 | { | 4 | { |
| 4 | gsub(".*\\)", ""); | 5 | gsub(".*\\)", ""); |
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index e7b7eee31538..e6818b8e7141 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # link vmlinux | 4 | # link vmlinux |
| 4 | # | 5 | # |
diff --git a/scripts/makelst b/scripts/makelst index e6581496d820..e432af073a65 100755 --- a/scripts/makelst +++ b/scripts/makelst | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # A script to dump mixed source code & assembly | 3 | # A script to dump mixed source code & assembly |
| 3 | # with correct relocations from System.map | 4 | # with correct relocations from System.map |
| 4 | # Requires the following lines in makefile: | 5 | # Requires the following lines in makefile: |
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index fd8fdb91581d..959199c3147e 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | TARGET=$1 | 4 | TARGET=$1 |
| 4 | ARCH=$2 | 5 | ARCH=$2 |
diff --git a/scripts/mkmakefile b/scripts/mkmakefile index 84af27bf0f99..e19d6565f245 100755 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Generates a small Makefile used in the root of the output | 3 | # Generates a small Makefile used in the root of the output |
| 3 | # directory, to allow make to be started from there. | 4 | # directory, to allow make to be started from there. |
| 4 | # The Makefile also allow for more convinient build of external modules | 5 | # The Makefile also allow for more convinient build of external modules |
diff --git a/scripts/mkuboot.sh b/scripts/mkuboot.sh index 446739c7843a..4b1fe09e9042 100755 --- a/scripts/mkuboot.sh +++ b/scripts/mkuboot.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | # | 4 | # |
| 4 | # Build U-Boot image when `mkimage' tool is available. | 5 | # Build U-Boot image when `mkimage' tool is available. |
diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile index b497d9764dcf..42c5d50f2bcc 100644 --- a/scripts/mod/Makefile +++ b/scripts/mod/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | OBJECT_FILES_NON_STANDARD := y | 2 | OBJECT_FILES_NON_STANDARD := y |
| 2 | 3 | ||
| 3 | hostprogs-y := modpost mk_elfconfig | 4 | hostprogs-y := modpost mk_elfconfig |
diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-offsets.c index 57263f2f8f2f..9826b9a6543c 100644 --- a/scripts/mod/devicetable-offsets.c +++ b/scripts/mod/devicetable-offsets.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | #include <linux/kbuild.h> | 2 | #include <linux/kbuild.h> |
| 2 | #include <linux/mod_devicetable.h> | 3 | #include <linux/mod_devicetable.h> |
| 3 | 4 | ||
diff --git a/scripts/mod/mk_elfconfig.c b/scripts/mod/mk_elfconfig.c index a4fd71d71d65..680eade89be1 100644 --- a/scripts/mod/mk_elfconfig.c +++ b/scripts/mod/mk_elfconfig.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | #include <stdio.h> | 2 | #include <stdio.h> |
| 2 | #include <stdlib.h> | 3 | #include <stdlib.h> |
| 3 | #include <string.h> | 4 | #include <string.h> |
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h index 6a5e1515123b..8453d6ac2f77 100644 --- a/scripts/mod/modpost.h +++ b/scripts/mod/modpost.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 1 | #include <stdio.h> | 2 | #include <stdio.h> |
| 2 | #include <stdlib.h> | 3 | #include <stdlib.h> |
| 3 | #include <stdarg.h> | 4 | #include <stdarg.h> |
diff --git a/scripts/package/buildtar b/scripts/package/buildtar index 51f947118256..e8cc72a51b32 100755 --- a/scripts/package/buildtar +++ b/scripts/package/buildtar | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | # | 4 | # |
| 4 | # buildtar 0.0.4 | 5 | # buildtar 0.0.4 |
diff --git a/scripts/parse-maintainers.pl b/scripts/parse-maintainers.pl index e40b53db7f9f..5dbd2faa2449 100644 --- a/scripts/parse-maintainers.pl +++ b/scripts/parse-maintainers.pl | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/perl -w | 1 | #!/usr/bin/perl -w |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | use strict; | 4 | use strict; |
| 4 | 5 | ||
diff --git a/scripts/patch-kernel b/scripts/patch-kernel index 49b4241e814a..033d5916797d 100755 --- a/scripts/patch-kernel +++ b/scripts/patch-kernel | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #! /bin/sh | 1 | #! /bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Script to apply kernel patches. | 3 | # Script to apply kernel patches. |
| 3 | # usage: patch-kernel [ sourcedir [ patchdir [ stopversion ] [ -acxx ] ] ] | 4 | # usage: patch-kernel [ sourcedir [ patchdir [ stopversion ] [ -acxx ] ] ] |
| 4 | # The source directory defaults to /usr/src/linux, and the patch | 5 | # The source directory defaults to /usr/src/linux, and the patch |
diff --git a/scripts/profile2linkerlist.pl b/scripts/profile2linkerlist.pl index f23d7be94394..316e71918ac8 100755 --- a/scripts/profile2linkerlist.pl +++ b/scripts/profile2linkerlist.pl | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | # | 4 | # |
| 4 | # Takes a (sorted) output of readprofile and turns it into a list suitable for | 5 | # Takes a (sorted) output of readprofile and turns it into a list suitable for |
diff --git a/scripts/prune-kernel b/scripts/prune-kernel index ab5034e1d081..e8aa940bc0a9 100755 --- a/scripts/prune-kernel +++ b/scripts/prune-kernel | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | # because I use CONFIG_LOCALVERSION_AUTO, not the same version again and | 4 | # because I use CONFIG_LOCALVERSION_AUTO, not the same version again and |
| 4 | # again, /boot and /lib/modules/ eventually fill up. | 5 | # again, /boot and /lib/modules/ eventually fill up. |
diff --git a/scripts/selinux/genheaders/Makefile b/scripts/selinux/genheaders/Makefile index 6fc2b8789a0b..e8c533140981 100644 --- a/scripts/selinux/genheaders/Makefile +++ b/scripts/selinux/genheaders/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | hostprogs-y := genheaders | 2 | hostprogs-y := genheaders |
| 2 | HOST_EXTRACFLAGS += \ | 3 | HOST_EXTRACFLAGS += \ |
| 3 | -I$(srctree)/include/uapi -I$(srctree)/include \ | 4 | -I$(srctree)/include/uapi -I$(srctree)/include \ |
diff --git a/scripts/selinux/genheaders/genheaders.c b/scripts/selinux/genheaders/genheaders.c index 672b069dcfea..fa48fabcb330 100644 --- a/scripts/selinux/genheaders/genheaders.c +++ b/scripts/selinux/genheaders/genheaders.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | 2 | ||
| 2 | /* NOTE: we really do want to use the kernel headers here */ | 3 | /* NOTE: we really do want to use the kernel headers here */ |
| 3 | #define __EXPORTED_HEADERS__ | 4 | #define __EXPORTED_HEADERS__ |
diff --git a/scripts/selinux/install_policy.sh b/scripts/selinux/install_policy.sh index f6a0ce71015f..0b86c47baf7d 100755 --- a/scripts/selinux/install_policy.sh +++ b/scripts/selinux/install_policy.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | if [ `id -u` -ne 0 ]; then | 3 | if [ `id -u` -ne 0 ]; then |
| 3 | echo "$0: must be root to install the selinux policy" | 4 | echo "$0: must be root to install the selinux policy" |
| 4 | exit 1 | 5 | exit 1 |
diff --git a/scripts/selinux/mdp/Makefile b/scripts/selinux/mdp/Makefile index d6a83cafe59f..e9c92db7e2a3 100644 --- a/scripts/selinux/mdp/Makefile +++ b/scripts/selinux/mdp/Makefile | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0 | ||
| 1 | hostprogs-y := mdp | 2 | hostprogs-y := mdp |
| 2 | HOST_EXTRACFLAGS += \ | 3 | HOST_EXTRACFLAGS += \ |
| 3 | -I$(srctree)/include/uapi -I$(srctree)/include \ | 4 | -I$(srctree)/include/uapi -I$(srctree)/include \ |
diff --git a/scripts/setlocalversion b/scripts/setlocalversion index 966dd3924ea9..71f39410691b 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # This scripts adds local version information from the version | 4 | # This scripts adds local version information from the version |
| 4 | # control systems git, mercurial (hg) and subversion (svn). | 5 | # control systems git, mercurial (hg) and subversion (svn). |
diff --git a/scripts/stackdelta b/scripts/stackdelta index 20a79f19a111..44d2dfd6216f 100755 --- a/scripts/stackdelta +++ b/scripts/stackdelta | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/env perl | 1 | #!/usr/bin/env perl |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | # Read two files produced by the stackusage script, and show the | 4 | # Read two files produced by the stackusage script, and show the |
| 4 | # delta between them. | 5 | # delta between them. |
diff --git a/scripts/stackusage b/scripts/stackusage index 8cf26640ef8a..56ef1ab670ac 100755 --- a/scripts/stackusage +++ b/scripts/stackusage | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | outfile="" | 4 | outfile="" |
| 4 | now=`date +%s` | 5 | now=`date +%s` |
diff --git a/scripts/tracing/ftrace-bisect.sh b/scripts/tracing/ftrace-bisect.sh index 9ff8ac5fc53c..926701162bc8 100755 --- a/scripts/tracing/ftrace-bisect.sh +++ b/scripts/tracing/ftrace-bisect.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # | 3 | # |
| 3 | # Here's how to use this: | 4 | # Here's how to use this: |
| 4 | # | 5 | # |
diff --git a/scripts/ver_linux b/scripts/ver_linux index b51de8a7e2a3..545ec7388eb7 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/usr/bin/awk -f | 1 | #!/usr/bin/awk -f |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | # Before running this script please ensure that your PATH is | 3 | # Before running this script please ensure that your PATH is |
| 3 | # typical as you use for compilation/installation. I use | 4 | # typical as you use for compilation/installation. I use |
| 4 | # /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may | 5 | # /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may |
diff --git a/scripts/xen-hypercalls.sh b/scripts/xen-hypercalls.sh index 676d9226814f..f18b00843df3 100644 --- a/scripts/xen-hypercalls.sh +++ b/scripts/xen-hypercalls.sh | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | out="$1" | 3 | out="$1" |
| 3 | shift | 4 | shift |
| 4 | in="$@" | 5 | in="$@" |
