diff options
| author | Ingo Molnar <mingo@kernel.org> | 2017-11-07 04:53:06 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-11-07 04:53:06 -0500 |
| commit | b3d9a136815ca9284ade2a897a3b7d2b0084c33c (patch) | |
| tree | af222e53d833ff7218577cf98e1b856d9d6bda93 /scripts | |
| parent | c7da092a1f243bfd1bfb4124f538e69e941882da (diff) | |
| parent | e4880bc5dfb1f02b152e62a894b5c6f3e995b3cf (diff) | |
Merge branch 'linus' into x86/asm, to pick up fixes and resolve conflicts
Conflicts:
arch/x86/kernel/cpu/Makefile
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'scripts')
95 files changed, 400 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 f965f477832e..e63af4e19382 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/leaking_addresses.pl b/scripts/leaking_addresses.pl new file mode 100755 index 000000000000..2977371b2956 --- /dev/null +++ b/scripts/leaking_addresses.pl | |||
| @@ -0,0 +1,305 @@ | |||
| 1 | #!/usr/bin/env perl | ||
| 2 | # | ||
| 3 | # (c) 2017 Tobin C. Harding <me@tobin.cc> | ||
| 4 | # Licensed under the terms of the GNU GPL License version 2 | ||
| 5 | # | ||
| 6 | # leaking_addresses.pl: Scan 64 bit kernel for potential leaking addresses. | ||
| 7 | # - Scans dmesg output. | ||
| 8 | # - Walks directory tree and parses each file (for each directory in @DIRS). | ||
| 9 | # | ||
| 10 | # You can configure the behaviour of the script; | ||
| 11 | # | ||
| 12 | # - By adding paths, for directories you do not want to walk; | ||
| 13 | # absolute paths: @skip_walk_dirs_abs | ||
| 14 | # directory names: @skip_walk_dirs_any | ||
| 15 | # | ||
| 16 | # - By adding paths, for files you do not want to parse; | ||
| 17 | # absolute paths: @skip_parse_files_abs | ||
| 18 | # file names: @skip_parse_files_any | ||
| 19 | # | ||
| 20 | # The use of @skip_xxx_xxx_any causes files to be skipped where ever they occur. | ||
| 21 | # For example adding 'fd' to @skip_walk_dirs_any causes the fd/ directory to be | ||
| 22 | # skipped for all PID sub-directories of /proc | ||
| 23 | # | ||
| 24 | # The same thing can be achieved by passing command line options to --dont-walk | ||
| 25 | # and --dont-parse. If absolute paths are supplied to these options they are | ||
| 26 | # appended to the @skip_xxx_xxx_abs arrays. If file names are supplied to these | ||
| 27 | # options, they are appended to the @skip_xxx_xxx_any arrays. | ||
| 28 | # | ||
| 29 | # Use --debug to output path before parsing, this is useful to find files that | ||
| 30 | # cause the script to choke. | ||
| 31 | # | ||
| 32 | # You may like to set kptr_restrict=2 before running script | ||
| 33 | # (see Documentation/sysctl/kernel.txt). | ||
| 34 | |||
| 35 | use warnings; | ||
| 36 | use strict; | ||
| 37 | use POSIX; | ||
| 38 | use File::Basename; | ||
| 39 | use File::Spec; | ||
| 40 | use Cwd 'abs_path'; | ||
| 41 | use Term::ANSIColor qw(:constants); | ||
| 42 | use Getopt::Long qw(:config no_auto_abbrev); | ||
| 43 | |||
| 44 | my $P = $0; | ||
| 45 | my $V = '0.01'; | ||
| 46 | |||
| 47 | # Directories to scan. | ||
| 48 | my @DIRS = ('/proc', '/sys'); | ||
| 49 | |||
| 50 | # Command line options. | ||
| 51 | my $help = 0; | ||
| 52 | my $debug = 0; | ||
| 53 | my @dont_walk = (); | ||
| 54 | my @dont_parse = (); | ||
| 55 | |||
| 56 | # Do not parse these files (absolute path). | ||
| 57 | my @skip_parse_files_abs = ('/proc/kmsg', | ||
| 58 | '/proc/kcore', | ||
| 59 | '/proc/fs/ext4/sdb1/mb_groups', | ||
| 60 | '/proc/1/fd/3', | ||
| 61 | '/sys/kernel/debug/tracing/trace_pipe', | ||
| 62 | '/sys/kernel/security/apparmor/revision'); | ||
| 63 | |||
| 64 | # Do not parse thes files under any subdirectory. | ||
| 65 | my @skip_parse_files_any = ('0', | ||
| 66 | '1', | ||
| 67 | '2', | ||
| 68 | 'pagemap', | ||
| 69 | 'events', | ||
| 70 | 'access', | ||
| 71 | 'registers', | ||
| 72 | 'snapshot_raw', | ||
| 73 | 'trace_pipe_raw', | ||
| 74 | 'ptmx', | ||
| 75 | 'trace_pipe'); | ||
| 76 | |||
| 77 | # Do not walk these directories (absolute path). | ||
| 78 | my @skip_walk_dirs_abs = (); | ||
| 79 | |||
| 80 | # Do not walk these directories under any subdirectory. | ||
| 81 | my @skip_walk_dirs_any = ('self', | ||
| 82 | 'thread-self', | ||
| 83 | 'cwd', | ||
| 84 | 'fd', | ||
| 85 | 'stderr', | ||
| 86 | 'stdin', | ||
| 87 | 'stdout'); | ||
| 88 | |||
| 89 | sub help | ||
| 90 | { | ||
| 91 | my ($exitcode) = @_; | ||
| 92 | |||
| 93 | print << "EOM"; | ||
| 94 | Usage: $P [OPTIONS] | ||
| 95 | Version: $V | ||
| 96 | |||
| 97 | Options: | ||
| 98 | |||
| 99 | --dont-walk=<dir> Don't walk tree starting at <dir>. | ||
| 100 | --dont-parse=<file> Don't parse <file>. | ||
| 101 | -d, --debug Display debugging output. | ||
| 102 | -h, --help, --version Display this help and exit. | ||
| 103 | |||
| 104 | If an absolute path is passed to --dont_XXX then this path is skipped. If a | ||
| 105 | single filename is passed then this file/directory will be skipped when | ||
| 106 | appearing under any subdirectory. | ||
| 107 | |||
| 108 | Example: | ||
| 109 | |||
| 110 | # Just scan dmesg output. | ||
| 111 | scripts/leaking_addresses.pl --dont_walk_abs /proc --dont_walk_abs /sys | ||
| 112 | |||
| 113 | Scans the running (64 bit) kernel for potential leaking addresses. | ||
| 114 | |||
| 115 | EOM | ||
| 116 | exit($exitcode); | ||
| 117 | } | ||
| 118 | |||
| 119 | GetOptions( | ||
| 120 | 'dont-walk=s' => \@dont_walk, | ||
| 121 | 'dont-parse=s' => \@dont_parse, | ||
| 122 | 'd|debug' => \$debug, | ||
| 123 | 'h|help' => \$help, | ||
| 124 | 'version' => \$help | ||
| 125 | ) or help(1); | ||
| 126 | |||
| 127 | help(0) if ($help); | ||
| 128 | |||
| 129 | push_to_global(); | ||
| 130 | |||
| 131 | parse_dmesg(); | ||
| 132 | walk(@DIRS); | ||
| 133 | |||
| 134 | exit 0; | ||
| 135 | |||
| 136 | sub debug_arrays | ||
| 137 | { | ||
| 138 | print 'dirs_any: ' . join(", ", @skip_walk_dirs_any) . "\n"; | ||
| 139 | print 'dirs_abs: ' . join(", ", @skip_walk_dirs_abs) . "\n"; | ||
| 140 | print 'parse_any: ' . join(", ", @skip_parse_files_any) . "\n"; | ||
| 141 | print 'parse_abs: ' . join(", ", @skip_parse_files_abs) . "\n"; | ||
| 142 | } | ||
| 143 | |||
| 144 | sub dprint | ||
| 145 | { | ||
| 146 | printf(STDERR @_) if $debug; | ||
| 147 | } | ||
| 148 | |||
| 149 | sub push_in_abs_any | ||
| 150 | { | ||
| 151 | my ($in, $abs, $any) = @_; | ||
| 152 | |||
| 153 | foreach my $path (@$in) { | ||
| 154 | if (File::Spec->file_name_is_absolute($path)) { | ||
| 155 | push @$abs, $path; | ||
| 156 | } elsif (index($path,'/') == -1) { | ||
| 157 | push @$any, $path; | ||
| 158 | } else { | ||
| 159 | print 'path error: ' . $path; | ||
| 160 | } | ||
| 161 | } | ||
| 162 | } | ||
| 163 | |||
| 164 | # Push command line options to global arrays. | ||
| 165 | sub push_to_global | ||
| 166 | { | ||
| 167 | push_in_abs_any(\@dont_walk, \@skip_walk_dirs_abs, \@skip_walk_dirs_any); | ||
| 168 | push_in_abs_any(\@dont_parse, \@skip_parse_files_abs, \@skip_parse_files_any); | ||
| 169 | } | ||
| 170 | |||
| 171 | sub is_false_positive | ||
| 172 | { | ||
| 173 | my ($match) = @_; | ||
| 174 | |||
| 175 | if ($match =~ '\b(0x)?(f|F){16}\b' or | ||
| 176 | $match =~ '\b(0x)?0{16}\b') { | ||
| 177 | return 1; | ||
| 178 | } | ||
| 179 | |||
| 180 | # vsyscall memory region, we should probably check against a range here. | ||
| 181 | if ($match =~ '\bf{10}600000\b' or | ||
| 182 | $match =~ '\bf{10}601000\b') { | ||
| 183 | return 1; | ||
| 184 | } | ||
| 185 | |||
| 186 | return 0; | ||
| 187 | } | ||
| 188 | |||
| 189 | # True if argument potentially contains a kernel address. | ||
| 190 | sub may_leak_address | ||
| 191 | { | ||
| 192 | my ($line) = @_; | ||
| 193 | my $address = '\b(0x)?ffff[[:xdigit:]]{12}\b'; | ||
| 194 | |||
| 195 | # Signal masks. | ||
| 196 | if ($line =~ '^SigBlk:' or | ||
| 197 | $line =~ '^SigCgt:') { | ||
| 198 | return 0; | ||
| 199 | } | ||
| 200 | |||
| 201 | if ($line =~ '\bKEY=[[:xdigit:]]{14} [[:xdigit:]]{16} [[:xdigit:]]{16}\b' or | ||
| 202 | $line =~ '\b[[:xdigit:]]{14} [[:xdigit:]]{16} [[:xdigit:]]{16}\b') { | ||
| 203 | return 0; | ||
| 204 | } | ||
| 205 | |||
| 206 | while (/($address)/g) { | ||
| 207 | if (!is_false_positive($1)) { | ||
| 208 | return 1; | ||
| 209 | } | ||
| 210 | } | ||
| 211 | |||
| 212 | return 0; | ||
| 213 | } | ||
| 214 | |||
| 215 | sub parse_dmesg | ||
| 216 | { | ||
| 217 | open my $cmd, '-|', 'dmesg'; | ||
| 218 | while (<$cmd>) { | ||
| 219 | if (may_leak_address($_)) { | ||
| 220 | print 'dmesg: ' . $_; | ||
| 221 | } | ||
| 222 | } | ||
| 223 | close $cmd; | ||
| 224 | } | ||
| 225 | |||
| 226 | # True if we should skip this path. | ||
| 227 | sub skip | ||
| 228 | { | ||
| 229 | my ($path, $paths_abs, $paths_any) = @_; | ||
| 230 | |||
| 231 | foreach (@$paths_abs) { | ||
| 232 | return 1 if (/^$path$/); | ||
| 233 | } | ||
| 234 | |||
| 235 | my($filename, $dirs, $suffix) = fileparse($path); | ||
| 236 | foreach (@$paths_any) { | ||
| 237 | return 1 if (/^$filename$/); | ||
| 238 | } | ||
| 239 | |||
| 240 | return 0; | ||
| 241 | } | ||
| 242 | |||
| 243 | sub skip_parse | ||
| 244 | { | ||
| 245 | my ($path) = @_; | ||
| 246 | return skip($path, \@skip_parse_files_abs, \@skip_parse_files_any); | ||
| 247 | } | ||
| 248 | |||
| 249 | sub parse_file | ||
| 250 | { | ||
| 251 | my ($file) = @_; | ||
| 252 | |||
| 253 | if (! -R $file) { | ||
| 254 | return; | ||
| 255 | } | ||
| 256 | |||
| 257 | if (skip_parse($file)) { | ||
| 258 | dprint "skipping file: $file\n"; | ||
| 259 | return; | ||
| 260 | } | ||
| 261 | dprint "parsing: $file\n"; | ||
| 262 | |||
| 263 | open my $fh, "<", $file or return; | ||
| 264 | while ( <$fh> ) { | ||
| 265 | if (may_leak_address($_)) { | ||
| 266 | print $file . ': ' . $_; | ||
| 267 | } | ||
| 268 | } | ||
| 269 | close $fh; | ||
| 270 | } | ||
| 271 | |||
| 272 | |||
| 273 | # True if we should skip walking this directory. | ||
| 274 | sub skip_walk | ||
| 275 | { | ||
| 276 | my ($path) = @_; | ||
| 277 | return skip($path, \@skip_walk_dirs_abs, \@skip_walk_dirs_any) | ||
| 278 | } | ||
| 279 | |||
| 280 | # Recursively walk directory tree. | ||
| 281 | sub walk | ||
| 282 | { | ||
| 283 | my @dirs = @_; | ||
| 284 | my %seen; | ||
| 285 | |||
| 286 | while (my $pwd = shift @dirs) { | ||
| 287 | next if (skip_walk($pwd)); | ||
| 288 | next if (!opendir(DIR, $pwd)); | ||
| 289 | my @files = readdir(DIR); | ||
| 290 | closedir(DIR); | ||
| 291 | |||
| 292 | foreach my $file (@files) { | ||
| 293 | next if ($file eq '.' or $file eq '..'); | ||
| 294 | |||
| 295 | my $path = "$pwd/$file"; | ||
| 296 | next if (-l $path); | ||
| 297 | |||
| 298 | if (-d $path) { | ||
| 299 | push @dirs, $path; | ||
| 300 | } else { | ||
| 301 | parse_file($path); | ||
| 302 | } | ||
| 303 | } | ||
| 304 | } | ||
| 305 | } | ||
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 e4d90e50f6fe..6d0193a3c591 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="$@" |
