diff options
| author | Sean Paul <seanpaul@chromium.org> | 2018-03-30 12:35:45 -0400 |
|---|---|---|
| committer | Sean Paul <seanpaul@chromium.org> | 2018-03-30 12:35:45 -0400 |
| commit | 83fd26c3f32afe38bb2ab8cc00e313ec5c2edbce (patch) | |
| tree | b2d2719c998bc2bcba99f2ecf2d164ee9b7ad75a /scripts | |
| parent | 4165791d29f64e01860a064f3c649447dbac41c3 (diff) | |
| parent | 694f54f680f7fd8e9561928fbfc537d9afbc3d79 (diff) | |
Merge airlied/drm-next into drm-misc-next
Backmerging to pick up a fix from drm-misc-next-fixes.
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.build | 8 | ||||
| -rw-r--r-- | scripts/Makefile.lib | 8 | ||||
| -rw-r--r-- | scripts/basic/fixdep.c | 15 | ||||
| -rwxr-xr-x | scripts/bloat-o-meter | 2 | ||||
| -rw-r--r-- | scripts/coccinelle/api/memdup.cocci | 4 | ||||
| -rw-r--r-- | scripts/kallsyms.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/confdata.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/kxgettext.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/lkc.h | 1 | ||||
| -rwxr-xr-x | scripts/kconfig/lxdialog/check-lxdialog.sh | 3 | ||||
| -rw-r--r-- | scripts/kconfig/menu.c | 1 | ||||
| -rw-r--r-- | scripts/kconfig/symbol.c | 4 | ||||
| -rw-r--r-- | scripts/kconfig/util.c | 11 | ||||
| -rw-r--r-- | scripts/kconfig/zconf.l | 12 | ||||
| -rw-r--r-- | scripts/kconfig/zconf.y | 3 | ||||
| -rwxr-xr-x | scripts/link-vmlinux.sh | 2 |
16 files changed, 47 insertions, 33 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 47cddf32aeba..4f2b25d43ec9 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
| @@ -256,6 +256,8 @@ __objtool_obj := $(objtree)/tools/objtool/objtool | |||
| 256 | 256 | ||
| 257 | objtool_args = $(if $(CONFIG_UNWINDER_ORC),orc generate,check) | 257 | objtool_args = $(if $(CONFIG_UNWINDER_ORC),orc generate,check) |
| 258 | 258 | ||
| 259 | objtool_args += $(if $(part-of-module), --module,) | ||
| 260 | |||
| 259 | ifndef CONFIG_FRAME_POINTER | 261 | ifndef CONFIG_FRAME_POINTER |
| 260 | objtool_args += --no-fp | 262 | objtool_args += --no-fp |
| 261 | endif | 263 | endif |
| @@ -264,6 +266,12 @@ objtool_args += --no-unreachable | |||
| 264 | else | 266 | else |
| 265 | objtool_args += $(call cc-ifversion, -lt, 0405, --no-unreachable) | 267 | objtool_args += $(call cc-ifversion, -lt, 0405, --no-unreachable) |
| 266 | endif | 268 | endif |
| 269 | ifdef CONFIG_RETPOLINE | ||
| 270 | ifneq ($(RETPOLINE_CFLAGS),) | ||
| 271 | objtool_args += --retpoline | ||
| 272 | endif | ||
| 273 | endif | ||
| 274 | |||
| 267 | 275 | ||
| 268 | ifdef CONFIG_MODVERSIONS | 276 | ifdef CONFIG_MODVERSIONS |
| 269 | objtool_o = $(@D)/.tmp_$(@F) | 277 | objtool_o = $(@D)/.tmp_$(@F) |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 5589bae34af6..a6f538b31ad6 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
| @@ -297,11 +297,11 @@ cmd_dt_S_dtb= \ | |||
| 297 | echo '\#include <asm-generic/vmlinux.lds.h>'; \ | 297 | echo '\#include <asm-generic/vmlinux.lds.h>'; \ |
| 298 | echo '.section .dtb.init.rodata,"a"'; \ | 298 | echo '.section .dtb.init.rodata,"a"'; \ |
| 299 | echo '.balign STRUCT_ALIGNMENT'; \ | 299 | echo '.balign STRUCT_ALIGNMENT'; \ |
| 300 | echo '.global __dtb_$(*F)_begin'; \ | 300 | echo '.global __dtb_$(subst -,_,$(*F))_begin'; \ |
| 301 | echo '__dtb_$(*F)_begin:'; \ | 301 | echo '__dtb_$(subst -,_,$(*F))_begin:'; \ |
| 302 | echo '.incbin "$<" '; \ | 302 | echo '.incbin "$<" '; \ |
| 303 | echo '__dtb_$(*F)_end:'; \ | 303 | echo '__dtb_$(subst -,_,$(*F))_end:'; \ |
| 304 | echo '.global __dtb_$(*F)_end'; \ | 304 | echo '.global __dtb_$(subst -,_,$(*F))_end'; \ |
| 305 | echo '.balign STRUCT_ALIGNMENT'; \ | 305 | echo '.balign STRUCT_ALIGNMENT'; \ |
| 306 | ) > $@ | 306 | ) > $@ |
| 307 | 307 | ||
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index fa3d39b6f23b..449b68c4c90c 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c | |||
| @@ -93,14 +93,6 @@ | |||
| 93 | * (Note: it'd be easy to port over the complete mkdep state machine, | 93 | * (Note: it'd be easy to port over the complete mkdep state machine, |
| 94 | * but I don't think the added complexity is worth it) | 94 | * but I don't think the added complexity is worth it) |
| 95 | */ | 95 | */ |
| 96 | /* | ||
| 97 | * Note 2: if somebody writes HELLO_CONFIG_BOOM in a file, it will depend onto | ||
| 98 | * CONFIG_BOOM. This could seem a bug (not too hard to fix), but please do not | ||
| 99 | * fix it! Some UserModeLinux files (look at arch/um/) call CONFIG_BOOM as | ||
| 100 | * UML_CONFIG_BOOM, to avoid conflicts with /usr/include/linux/autoconf.h, | ||
| 101 | * through arch/um/include/uml-config.h; this fixdep "bug" makes sure that | ||
| 102 | * those files will have correct dependencies. | ||
| 103 | */ | ||
| 104 | 96 | ||
| 105 | #include <sys/types.h> | 97 | #include <sys/types.h> |
| 106 | #include <sys/stat.h> | 98 | #include <sys/stat.h> |
| @@ -233,8 +225,13 @@ static int str_ends_with(const char *s, int slen, const char *sub) | |||
| 233 | static void parse_config_file(const char *p) | 225 | static void parse_config_file(const char *p) |
| 234 | { | 226 | { |
| 235 | const char *q, *r; | 227 | const char *q, *r; |
| 228 | const char *start = p; | ||
| 236 | 229 | ||
| 237 | while ((p = strstr(p, "CONFIG_"))) { | 230 | while ((p = strstr(p, "CONFIG_"))) { |
| 231 | if (p > start && (isalnum(p[-1]) || p[-1] == '_')) { | ||
| 232 | p += 7; | ||
| 233 | continue; | ||
| 234 | } | ||
| 238 | p += 7; | 235 | p += 7; |
| 239 | q = p; | 236 | q = p; |
| 240 | while (*q && (isalnum(*q) || *q == '_')) | 237 | while (*q && (isalnum(*q) || *q == '_')) |
| @@ -286,8 +283,6 @@ static int is_ignored_file(const char *s, int len) | |||
| 286 | { | 283 | { |
| 287 | return str_ends_with(s, len, "include/generated/autoconf.h") || | 284 | return str_ends_with(s, len, "include/generated/autoconf.h") || |
| 288 | str_ends_with(s, len, "include/generated/autoksyms.h") || | 285 | str_ends_with(s, len, "include/generated/autoksyms.h") || |
| 289 | str_ends_with(s, len, "arch/um/include/uml-config.h") || | ||
| 290 | str_ends_with(s, len, "include/linux/kconfig.h") || | ||
| 291 | str_ends_with(s, len, ".ver"); | 286 | str_ends_with(s, len, ".ver"); |
| 292 | } | 287 | } |
| 293 | 288 | ||
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 94b664817ad9..d84a5674e95e 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter | |||
| @@ -15,7 +15,7 @@ signal(SIGPIPE, SIG_DFL) | |||
| 15 | if len(sys.argv) < 3: | 15 | if len(sys.argv) < 3: |
| 16 | sys.stderr.write("usage: %s [option] file1 file2\n" % sys.argv[0]) | 16 | sys.stderr.write("usage: %s [option] file1 file2\n" % sys.argv[0]) |
| 17 | sys.stderr.write("The options are:\n") | 17 | sys.stderr.write("The options are:\n") |
| 18 | sys.stderr.write("-c cateogrize output based on symbole type\n") | 18 | sys.stderr.write("-c categorize output based on symbol type\n") |
| 19 | sys.stderr.write("-d Show delta of Data Section\n") | 19 | sys.stderr.write("-d Show delta of Data Section\n") |
| 20 | sys.stderr.write("-t Show delta of text Section\n") | 20 | sys.stderr.write("-t Show delta of text Section\n") |
| 21 | sys.exit(-1) | 21 | sys.exit(-1) |
diff --git a/scripts/coccinelle/api/memdup.cocci b/scripts/coccinelle/api/memdup.cocci index 1249b727644b..8fd6437beda8 100644 --- a/scripts/coccinelle/api/memdup.cocci +++ b/scripts/coccinelle/api/memdup.cocci | |||
| @@ -56,10 +56,10 @@ statement S; | |||
| 56 | p << r.p; | 56 | p << r.p; |
| 57 | @@ | 57 | @@ |
| 58 | 58 | ||
| 59 | coccilib.org.print_todo(p[0], "WARNING opportunity for kmemdep") | 59 | coccilib.org.print_todo(p[0], "WARNING opportunity for kmemdup") |
| 60 | 60 | ||
| 61 | @script:python depends on report@ | 61 | @script:python depends on report@ |
| 62 | p << r.p; | 62 | p << r.p; |
| 63 | @@ | 63 | @@ |
| 64 | 64 | ||
| 65 | coccilib.report.print_report(p[0], "WARNING opportunity for kmemdep") | 65 | coccilib.report.print_report(p[0], "WARNING opportunity for kmemdup") |
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 9ee9bf7fd1a2..65792650c630 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c | |||
| @@ -595,7 +595,7 @@ static void optimize_result(void) | |||
| 595 | * original char code */ | 595 | * original char code */ |
| 596 | if (!best_table_len[i]) { | 596 | if (!best_table_len[i]) { |
| 597 | 597 | ||
| 598 | /* find the token with the breates profit value */ | 598 | /* find the token with the best profit value */ |
| 599 | best = find_best_token(); | 599 | best = find_best_token(); |
| 600 | if (token_profit[best] == 0) | 600 | if (token_profit[best] == 0) |
| 601 | break; | 601 | break; |
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 5c12dc91ef34..df26c7b0fe13 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
| @@ -178,7 +178,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) | |||
| 178 | case S_HEX: | 178 | case S_HEX: |
| 179 | done: | 179 | done: |
| 180 | if (sym_string_valid(sym, p)) { | 180 | if (sym_string_valid(sym, p)) { |
| 181 | sym->def[def].val = strdup(p); | 181 | sym->def[def].val = xstrdup(p); |
| 182 | sym->flags |= def_flags; | 182 | sym->flags |= def_flags; |
| 183 | } else { | 183 | } else { |
| 184 | if (def != S_DEF_AUTO) | 184 | if (def != S_DEF_AUTO) |
diff --git a/scripts/kconfig/kxgettext.c b/scripts/kconfig/kxgettext.c index 2858738b22d5..240880a89111 100644 --- a/scripts/kconfig/kxgettext.c +++ b/scripts/kconfig/kxgettext.c | |||
| @@ -101,7 +101,7 @@ static struct message *message__new(const char *msg, char *option, | |||
| 101 | if (self->files == NULL) | 101 | if (self->files == NULL) |
| 102 | goto out_fail; | 102 | goto out_fail; |
| 103 | 103 | ||
| 104 | self->msg = strdup(msg); | 104 | self->msg = xstrdup(msg); |
| 105 | if (self->msg == NULL) | 105 | if (self->msg == NULL) |
| 106 | goto out_fail_msg; | 106 | goto out_fail_msg; |
| 107 | 107 | ||
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index 4e23febbe4b2..2d5ec2d0e952 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h | |||
| @@ -115,6 +115,7 @@ int file_write_dep(const char *name); | |||
| 115 | void *xmalloc(size_t size); | 115 | void *xmalloc(size_t size); |
| 116 | void *xcalloc(size_t nmemb, size_t size); | 116 | void *xcalloc(size_t nmemb, size_t size); |
| 117 | void *xrealloc(void *p, size_t size); | 117 | void *xrealloc(void *p, size_t size); |
| 118 | char *xstrdup(const char *s); | ||
| 118 | 119 | ||
| 119 | struct gstr { | 120 | struct gstr { |
| 120 | size_t len; | 121 | size_t len; |
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdia | |||
