aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/faddr2line2
-rwxr-xr-xscripts/spdxcheck.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/scripts/faddr2line b/scripts/faddr2line
index a0149db00be7..6c6439f69a72 100755
--- a/scripts/faddr2line
+++ b/scripts/faddr2line
@@ -71,7 +71,7 @@ die() {
71 71
72# Try to figure out the source directory prefix so we can remove it from the 72# Try to figure out the source directory prefix so we can remove it from the
73# addr2line output. HACK ALERT: This assumes that start_kernel() is in 73# addr2line output. HACK ALERT: This assumes that start_kernel() is in
74# kernel/init.c! This only works for vmlinux. Otherwise it falls back to 74# init/main.c! This only works for vmlinux. Otherwise it falls back to
75# printing the absolute path. 75# printing the absolute path.
76find_dir_prefix() { 76find_dir_prefix() {
77 local objfile=$1 77 local objfile=$1
diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py
index 839e190bbd7a..5056fb3b897d 100755
--- a/scripts/spdxcheck.py
+++ b/scripts/spdxcheck.py
@@ -168,7 +168,6 @@ class id_parser(object):
168 self.curline = 0 168 self.curline = 0
169 try: 169 try:
170 for line in fd: 170 for line in fd:
171 line = line.decode(locale.getpreferredencoding(False), errors='ignore')
172 self.curline += 1 171 self.curline += 1
173 if self.curline > maxlines: 172 if self.curline > maxlines:
174 break 173 break