diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-01-29 15:26:40 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-01-30 11:30:00 -0500 |
commit | e7996a9a77fc669387da43ff4823b91cc4872bd0 (patch) | |
tree | 617f0a128e222539d67e8cccc359f1bc4b984900 /scripts | |
parent | b5fa635aab8f0d39a824c01991266a6d06f007fb (diff) | |
parent | d8a5b80568a9cb66810e75b182018e9edb68e8ff (diff) |
Merge tag v4.15 of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
To resolve conflicts in:
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/qp.c
From patches merged into the -rc cycle. The conflict resolution matches
what linux-next has been carrying.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.build | 14 | ||||
-rwxr-xr-x | scripts/checkpatch.pl | 22 | ||||
-rwxr-xr-x | scripts/decodecode | 8 | ||||
-rwxr-xr-x | scripts/faddr2line | 8 | ||||
-rw-r--r-- | scripts/gdb/linux/tasks.py | 2 | ||||
-rw-r--r-- | scripts/genksyms/.gitignore | 1 | ||||
-rw-r--r-- | scripts/kconfig/expr.c | 5 | ||||
-rwxr-xr-x | scripts/kernel-doc | 2 |
8 files changed, 29 insertions, 33 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index cb8997ed0149..47cddf32aeba 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -265,12 +265,18 @@ else | |||
265 | objtool_args += $(call cc-ifversion, -lt, 0405, --no-unreachable) | 265 | objtool_args += $(call cc-ifversion, -lt, 0405, --no-unreachable) |
266 | endif | 266 | endif |
267 | 267 | ||
268 | ifdef CONFIG_MODVERSIONS | ||
269 | objtool_o = $(@D)/.tmp_$(@F) | ||
270 | else | ||
271 | objtool_o = $(@) | ||
272 | endif | ||
273 | |||
268 | # 'OBJECT_FILES_NON_STANDARD := y': skip objtool checking for a directory | 274 | # 'OBJECT_FILES_NON_STANDARD := y': skip objtool checking for a directory |
269 | # 'OBJECT_FILES_NON_STANDARD_foo.o := 'y': skip objtool checking for a file | 275 | # 'OBJECT_FILES_NON_STANDARD_foo.o := 'y': skip objtool checking for a file |
270 | # 'OBJECT_FILES_NON_STANDARD_foo.o := 'n': override directory skip for a file | 276 | # 'OBJECT_FILES_NON_STANDARD_foo.o := 'n': override directory skip for a file |
271 | cmd_objtool = $(if $(patsubst y%,, \ | 277 | cmd_objtool = $(if $(patsubst y%,, \ |
272 | $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n), \ | 278 | $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n), \ |
273 | $(__objtool_obj) $(objtool_args) "$(@)";) | 279 | $(__objtool_obj) $(objtool_args) "$(objtool_o)";) |
274 | objtool_obj = $(if $(patsubst y%,, \ | 280 | objtool_obj = $(if $(patsubst y%,, \ |
275 | $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n), \ | 281 | $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n), \ |
276 | $(__objtool_obj)) | 282 | $(__objtool_obj)) |
@@ -286,16 +292,16 @@ objtool_dep = $(objtool_obj) \ | |||
286 | define rule_cc_o_c | 292 | define rule_cc_o_c |
287 | $(call echo-cmd,checksrc) $(cmd_checksrc) \ | 293 | $(call echo-cmd,checksrc) $(cmd_checksrc) \ |
288 | $(call cmd_and_fixdep,cc_o_c) \ | 294 | $(call cmd_and_fixdep,cc_o_c) \ |
289 | $(cmd_modversions_c) \ | ||
290 | $(cmd_checkdoc) \ | 295 | $(cmd_checkdoc) \ |
291 | $(call echo-cmd,objtool) $(cmd_objtool) \ | 296 | $(call echo-cmd,objtool) $(cmd_objtool) \ |
297 | $(cmd_modversions_c) \ | ||
292 | $(call echo-cmd,record_mcount) $(cmd_record_mcount) | 298 | $(call echo-cmd,record_mcount) $(cmd_record_mcount) |
293 | endef | 299 | endef |
294 | 300 | ||
295 | define rule_as_o_S | 301 | define rule_as_o_S |
296 | $(call cmd_and_fixdep,as_o_S) \ | 302 | $(call cmd_and_fixdep,as_o_S) \ |
297 | $(cmd_modversions_S) \ | 303 | $(call echo-cmd,objtool) $(cmd_objtool) \ |
298 | $(call echo-cmd,objtool) $(cmd_objtool) | 304 | $(cmd_modversions_S) |
299 | endef | 305 | endef |
300 | 306 | ||
301 | # List module undefined symbols (or empty line if not enabled) | 307 | # List module undefined symbols (or empty line if not enabled) |
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 040aa79e1d9d..31031f10fe56 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -6233,28 +6233,6 @@ sub process { | |||
6233 | } | 6233 | } |
6234 | } | 6234 | } |
6235 | 6235 | ||
6236 | # whine about ACCESS_ONCE | ||
6237 | if ($^V && $^V ge 5.10.0 && | ||
6238 | $line =~ /\bACCESS_ONCE\s*$balanced_parens\s*(=(?!=))?\s*($FuncArg)?/) { | ||
6239 | my $par = $1; | ||
6240 | my $eq = $2; | ||
6241 | my $fun = $3; | ||
6242 | $par =~ s/^\(\s*(.*)\s*\)$/$1/; | ||
6243 | if (defined($eq)) { | ||
6244 | if (WARN("PREFER_WRITE_ONCE", | ||
6245 | "Prefer WRITE_ONCE(<FOO>, <BAR>) over ACCESS_ONCE(<FOO>) = <BAR>\n" . $herecurr) && | ||
6246 | $fix) { | ||
6247 | $fixed[$fixlinenr] =~ s/\bACCESS_ONCE\s*\(\s*\Q$par\E\s*\)\s*$eq\s*\Q$fun\E/WRITE_ONCE($par, $fun)/; | ||
6248 | } | ||
6249 | } else { | ||
6250 | if (WARN("PREFER_READ_ONCE", | ||
6251 | "Prefer READ_ONCE(<FOO>) over ACCESS_ONCE(<FOO>)\n" . $herecurr) && | ||
6252 | $fix) { | ||
6253 | $fixed[$fixlinenr] =~ s/\bACCESS_ONCE\s*\(\s*\Q$par\E\s*\)/READ_ONCE($par)/; | ||
6254 | } | ||
6255 | } | ||
6256 | } | ||
6257 | |||
6258 | # check for mutex_trylock_recursive usage | 6236 | # check for mutex_trylock_recursive usage |
6259 | if ($line =~ /mutex_trylock_recursive/) { | 6237 | if ($line =~ /mutex_trylock_recursive/) { |
6260 | ERROR("LOCKING", | 6238 | ERROR("LOCKING", |
diff --git a/scripts/decodecode b/scripts/decodecode index 438120da1361..5ea071099330 100755 --- a/scripts/decodecode +++ b/scripts/decodecode | |||
@@ -59,6 +59,14 @@ disas() { | |||
59 | ${CROSS_COMPILE}strip $1.o | 59 | ${CROSS_COMPILE}strip $1.o |
60 | fi | 60 | fi |
61 | 61 | ||
62 | if [ "$ARCH" = "arm64" ]; then | ||
63 | if [ $width -eq 4 ]; then | ||
64 | type=inst | ||
65 | fi | ||
66 | |||
67 | ${CROSS_COMPILE}strip $1.o | ||
68 | fi | ||
69 | |||
62 | ${CROSS_COMPILE}objdump $OBJDUMPFLAGS -S $1.o | \ | 70 | ${CROSS_COMPILE}objdump $OBJDUMPFLAGS -S $1.o | \ |
63 | grep -v "/tmp\|Disassembly\|\.text\|^$" > $1.dis 2>&1 | 71 | grep -v "/tmp\|Disassembly\|\.text\|^$" > $1.dis 2>&1 |
64 | } | 72 | } |
diff --git a/scripts/faddr2line b/scripts/faddr2line index 39e07d8574dd..7721d5b2b0c0 100755 --- a/scripts/faddr2line +++ b/scripts/faddr2line | |||
@@ -44,10 +44,10 @@ | |||
44 | set -o errexit | 44 | set -o errexit |
45 | set -o nounset | 45 | set -o nounset |
46 | 46 | ||
47 | READELF="${CROSS_COMPILE}readelf" | 47 | READELF="${CROSS_COMPILE:-}readelf" |
48 | ADDR2LINE="${CROSS_COMPILE}addr2line" | 48 | ADDR2LINE="${CROSS_COMPILE:-}addr2line" |
49 | SIZE="${CROSS_COMPILE}size" | 49 | SIZE="${CROSS_COMPILE:-}size" |
50 | NM="${CROSS_COMPILE}nm" | 50 | NM="${CROSS_COMPILE:-}nm" |
51 | 51 | ||
52 | command -v awk >/dev/null 2>&1 || die "awk isn't installed" | 52 | command -v awk >/dev/null 2>&1 || die "awk isn't installed" |
53 | command -v ${READELF} >/dev/null 2>&1 || die "readelf isn't installed" | 53 | command -v ${READELF} >/dev/null 2>&1 || die "readelf isn't installed" |
diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py index 1bf949c43b76..f6ab3ccf698f 100644 --- a/scripts/gdb/linux/tasks.py +++ b/scripts/gdb/linux/tasks.py | |||
@@ -96,6 +96,8 @@ def get_thread_info(task): | |||
96 | thread_info_addr = task.address + ia64_task_size | 96 | thread_info_addr = task.address + ia64_task_size |
97 | thread_info = thread_info_addr.cast(thread_info_ptr_type) | 97 | thread_info = thread_info_addr.cast(thread_info_ptr_type) |
98 | else: | 98 | else: |
99 | if task.type.fields()[0].type == thread_info_type.get_type(): | ||
100 | return task['thread_info'] | ||
99 | thread_info = task['stack'].cast(thread_info_ptr_type) | 101 | thread_info = task['stack'].cast(thread_info_ptr_type) |
100 | return thread_info.dereference() | 102 | return thread_info.dereference() |
101 | 103 | ||
diff --git a/scripts/genksyms/.gitignore b/scripts/genksyms/.gitignore index 86dc07a01b43..e7836b47f060 100644 --- a/scripts/genksyms/.gitignore +++ b/scripts/genksyms/.gitignore | |||
@@ -1,4 +1,3 @@ | |||
1 | *.hash.c | ||
2 | *.lex.c | 1 | *.lex.c |
3 | *.tab.c | 2 | *.tab.c |
4 | *.tab.h | 3 | *.tab.h |
diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c index cbf4996dd9c1..8cee597d33a5 100644 --- a/scripts/kconfig/expr.c +++ b/scripts/kconfig/expr.c | |||
@@ -893,7 +893,10 @@ static enum string_value_kind expr_parse_string(const char *str, | |||
893 | switch (type) { | 893 | switch (type) { |
894 | case S_BOOLEAN: | 894 | case S_BOOLEAN: |
895 | case S_TRISTATE: | 895 | case S_TRISTATE: |
896 | return k_string; | 896 | val->s = !strcmp(str, "n") ? 0 : |
897 | !strcmp(str, "m") ? 1 : | ||
898 | !strcmp(str, "y") ? 2 : -1; | ||
899 | return k_signed; | ||
897 | case S_INT: | 900 | case S_INT: |
898 | val->s = strtoll(str, &tail, 10); | 901 | val->s = strtoll(str, &tail, 10); |
899 | kind = k_signed; | 902 | kind = k_signed; |
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index bd29a92b4b48..df0f045a9a89 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -3248,4 +3248,4 @@ if ($verbose && $warnings) { | |||
3248 | print STDERR "$warnings warnings\n"; | 3248 | print STDERR "$warnings warnings\n"; |
3249 | } | 3249 | } |
3250 | 3250 | ||
3251 | exit($errors); | 3251 | exit($output_mode eq "none" ? 0 : $errors); |