ukleinek and torvalds scripts/spdxcheck.py: make python3 compliant
Without this change the following happens when using Python3 (3.6.6):

	$ echo "GPL-2.0" | python3 scripts/spdxcheck.py -
	FAIL: 'str' object has no attribute 'decode'
	Traceback (most recent call last):
	  File "scripts/spdxcheck.py", line 253, in <module>
	    parser.parse_lines(sys.stdin, args.maxlines, '-')
	  File "scripts/spdxcheck.py", line 171, in parse_lines
	    line = line.decode(locale.getpreferredencoding(False), errors='ignore')
	AttributeError: 'str' object has no attribute 'decode'

So as the line is already a string, there is no need to decode it and
the line can be dropped.

/usr/bin/python on Arch is Python 3.  So this would indeed be worth
going into 4.19.

Link: http://lkml.kernel.org/r/20181023070802.22558-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Joe Perches <joe@perches.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Latest commit 6f4d29d Nov 17, 2018
Permalink
..
Failed to load latest commit information.
basic kbuild: move bin2c back to scripts/ from scripts/basic/ Jul 17, 2018
coccinelle Coccinelle: remove pci_alloc_consistent semantic to detect in zalloc-… Aug 22, 2018
dtc Merge branch 'all-dtbs' into dt/next Oct 4, 2018
gcc-plugins stackleak: Allow runtime disabling of kernel stack erasing Sep 4, 2018
gdb scripts/gdb/linux/tasks.py: fix get_thread_info Jan 19, 2018
genksyms genksyms: remove symbol prefix support May 17, 2018
kconfig kconfig: merge_config: avoid false positive matches from comment lines Nov 11, 2018
ksymoops Fix dead URLs to ftp.kernel.org Mar 28, 2017
mod Merge tag 'kbuild-v4.20' of git://git.kernel.org/pub/scm/linux/kernel… Oct 28, 2018
package builddeb: Fix inclusion of dtbs in debian package Nov 11, 2018
selinux staging: lustre: delete the filesystem from the tree. Jun 5, 2018
tracing scripts: Add Python 3 support to tracing/draw_functrace.py Jul 29, 2018
.gitignore kbuild: move bin2c back to scripts/ from scripts/basic/ Jul 17, 2018
Kbuild.include kbuild: remove cc-name variable Nov 2, 2018
Kconfig.include gcc-plugins: test plugin support in Kconfig and clean up Makefile Jun 11, 2018
Lindent License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
Makefile kbuild: consolidate Devicetree dtb build rules Oct 2, 2018
Makefile.asm-generic Merge tag 'kbuild-v4.15' of git://git.kernel.org/pub/scm/linux/kernel… Nov 18, 2017
Makefile.build Merge tag 'kbuild-v4.20' of git://git.kernel.org/pub/scm/linux/kernel… Oct 28, 2018
Makefile.clean kbuild: remove deprecated host-progs variable Aug 9, 2018
Makefile.dtbinst Merge tag 'devicetree-for-4.15' of git://git.kernel.org/pub/scm/linux… Nov 15, 2017
Makefile.extrawarn Merge tag 'kbuild-v4.20-2' of git://git.kernel.org/pub/scm/linux/kern… Nov 3, 2018
Makefile.gcc-plugins gcc-plugins: Add STACKLEAK plugin for tracking the kernel stack Sep 4, 2018
Makefile.headersinst Merge tag 'kbuild-v4.15' of git://git.kernel.org/pub/scm/linux/kernel… Nov 18, 2017
Makefile.host kbuild: Rename HOST_LOADLIBES to KBUILD_HOSTLDLIBS Jul 17, 2018
Makefile.kasan kasan: rework Kconfig settings Feb 7, 2018
Makefile.kcov kcov: test compiler capability in Kconfig and correct dependency Jun 11, 2018
Makefile.lib kbuild: consolidate Devicetree dtb build rules Oct 2, 2018
Makefile.modbuiltin Kbuild: Makefile.modbuiltin: include auto.conf and tristate.conf mand… Aug 2, 2018
Makefile.modinst kbuild: remove duplicated comments about PHONY Jul 6, 2018
Makefile.modpost kbuild: rename LDFLAGS to KBUILD_LDFLAGS Aug 23, 2018
Makefile.modsign kbuild: remove duplicated comments about PHONY Jul 6, 2018
Makefile.ubsan lib/ubsan: remove null-pointer checks Aug 11, 2018
adjust_autoksyms.sh kbuild: remove CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX May 17, 2018
asn1_compiler.c ASN.1: Remove unnecessary shadowed local variable Oct 28, 2018
bin2c.c kbuild: move bin2c back to scripts/ from scripts/basic/ Jul 17, 2018
bloat-o-meter syscalls/core, syscalls/x86: Clean up compat syscall stub naming conv… Apr 9, 2018
bootgraph.pl scripts: Switch to more portable Perl shebang May 14, 2017
bpf_helpers_doc.py bpf: change eBPF helper doc parsing script to allow for smaller indent May 17, 2018
cc-can-link.sh bpfilter: check compiler capability in Kconfig Jun 28, 2018
check_extable.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
checkincludes.pl License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
checkkconfigsymbols.py checkkconfigsymbols.py: support Kconfig's 'imply' statement Feb 3, 2017
checkpatch.pl checkpatch: remove GCC_BINARY_CONSTANT warning Oct 31, 2018
checkstack.pl scripts: Add ppc64le support for checkstack.pl Jul 2, 2018
checksyscalls.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
checkversion.pl License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
clang-version.sh kbuild: Add a space after `!` to prevent parsing as file pattern Aug 22, 2018
cleanfile License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
cleanpatch License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
coccicheck coccicheck: return proper error code on fail Aug 13, 2018
config License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
conmakehash.c kbuild: trivial - remove trailing spaces Apr 30, 2014
const_structs.checkpatch const_structs.checkpatch: add frequently used from Julia Lawall's list Oct 11, 2016
decode_stacktrace.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
decodecode scripts/decodecode: make it take multiline Code line Feb 1, 2018
depmod.sh kbuild: modules_install: warn when missing System.map file Sep 9, 2018
diffconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
documentation-file-ref-check scripts/documentation-file-ref-check: ignore sched-pelt false positive Jul 2, 2018
export_report.pl scripts: Switch to more portable Perl shebang May 14, 2017
extract-cert.c KEYS: Remove unnecessary header #inclusions from extract-cert.c Sep 25, 2015
extract-ikconfig scripts/extract-ikconfig: Support LZ4-compressed images. Apr 15, 2015
extract-module-sig.pl License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
extract-sys-certs.pl License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
extract-vmlinux extract-vmlinux: Check for uncompressed image as fallback Oct 17, 2018
extract_xc3028.pl MAINTAINERS & files: Canonize the e-mails I use at files May 4, 2018
faddr2line scripts/faddr2line: fix location of start_kernel in comment Nov 18, 2018
file-size.sh kbuild: Use ls(1) instead of stat(1) to obtain file size Mar 25, 2018
find-unused-docs.sh scripts: Add a script to find unused documentation Oct 23, 2017
gcc-goto.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
gcc-ld License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
gcc-plugin.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
gcc-version.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
gcc-x86_32-has-stack-protector.sh stack-protector: test compiler capability in Kconfig and drop AUTO mode Jun 8, 2018
gcc-x86_64-has-stack-protector.sh stack-protector: Fix test with 32-bit userland and CONFIG_64BIT=y Jun 25, 2018
get_dvb_firmware scripts: Switch to more portable Perl shebang May 14, 2017
get_maintainer.pl get_maintainer: allow option --mpath <directory> to read all files in… Aug 22, 2018
gfp-translate chmod +x scripts/gfp-translate Jun 27, 2012
headerdep.pl License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
headers.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
headers_check.pl License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
headers_install.sh kbuild: Improve portability of some sed invocations Mar 25, 2018
insert-sys-cert.c KEYS: Reserve an extra certificate symbol for inserting without recom… Feb 26, 2016
kallsyms.c kallsyms: remove left-over Blackfin code Sep 10, 2018
kernel-doc kernel-doc: fix declaration type determination Oct 18, 2018
ld-version.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
leaking_addresses.pl leaking_addresses: check if file name contains address Apr 6, 2018
link-vmlinux.sh kbuild: rename LDFLAGS to KBUILD_LDFLAGS Aug 23, 2018
makelst License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
markup_oops.pl scripts: Switch to more portable Perl shebang May 14, 2017
mkcompile_h Merge tag 'kbuild-v4.15' of git://git.kernel.org/pub/scm/linux/kernel… Nov 18, 2017
mkmakefile kbuild: simplify command line creation in scripts/mkmakefile Oct 4, 2018
mksysmap mksysmap: Add h8300 local symbol pattern Jun 23, 2015
mkuboot.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
module-common.lds module: set .init_array alignment to 8 Mar 13, 2017
namespace.pl kbuild: rename built-in.o to built-in.a Mar 25, 2018
objdiff scripts: objdiff: Ignore debug info when comparing Mar 11, 2017
parse-maintainers.pl parse-maintainers: add ability to specify filenames Nov 18, 2017
patch-kernel License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
pnmtologo.c kbuild: trivial - remove trailing empty lines Jun 9, 2014
profile2linkerlist.pl License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
prune-kernel License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
recordmcount.c scripts: Fixed printf format mismatch May 29, 2018
recordmcount.h scripts: Fixed printf format mismatch May 29, 2018
recordmcount.pl nds32/ftrace: Add RECORD_MCOUNT support Sep 4, 2018
setlocalversion Revert "scripts/setlocalversion: git: Make -dirty check more robust" Nov 11, 2018
show_delta kbuild: trivial - remove trailing empty lines Jun 9, 2014
sign-file.c sign-file: fix build error in sign-file.c with libressl Feb 10, 2017
sortextable.c powerpc: Build-time sort the exception table Nov 14, 2016
sortextable.h scripts/sortextable: suppress warning: `relocs_size' may be used unin… Oct 14, 2014
spdxcheck.py scripts/spdxcheck.py: make python3 compliant Nov 18, 2018
spelling.txt treewide: correct "differenciate" and "instanciate" typos Aug 24, 2018
sphinx-pre-install docs-rst: don't require adjustbox anymore Sep 8, 2017
split-man.pl MAINTAINERS & files: Canonize the e-mails I use at files May 4, 2018
stackdelta License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
stackusage License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
subarch.include selftests: add headers_install to lib.mk Sep 5, 2018
tags.sh scripts/tags.sh: add DECLARE_HASHTABLE() Oct 26, 2018
unifdef.c unifdef: update to upstream version 2.5 Jan 22, 2011
ver_linux ver_linux: Do not check for ver_linux pattern in version function Jul 7, 2018
xen-hypercalls.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no… Nov 2, 2017
xz_wrap.sh kbuild: Make scripts executable Aug 20, 2014