diff options
| author | Ingo Molnar <mingo@kernel.org> | 2018-12-03 04:51:50 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2018-12-03 04:51:50 -0500 |
| commit | ddd1bd5cfde57973ba816e118c9c452934bb09e7 (patch) | |
| tree | d90457baeb0bcc9d81cd1ea3a9d8c24cf9745d64 /scripts | |
| parent | e8e94fce14658defc659021a50d4253a681d02e7 (diff) | |
| parent | 2595646791c319cadfdbf271563aac97d0843dc7 (diff) | |
Merge tag 'v4.20-rc5' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.build | 2 | ||||
| -rw-r--r-- | scripts/unifdef.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index a8e7ba9f73e8..6a6be9f440cf 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
| @@ -236,10 +236,8 @@ ifdef CONFIG_GCOV_KERNEL | |||
| 236 | objtool_args += --no-unreachable | 236 | objtool_args += --no-unreachable |
| 237 | endif | 237 | endif |
| 238 | ifdef CONFIG_RETPOLINE | 238 | ifdef CONFIG_RETPOLINE |
| 239 | ifneq ($(RETPOLINE_CFLAGS),) | ||
| 240 | objtool_args += --retpoline | 239 | objtool_args += --retpoline |
| 241 | endif | 240 | endif |
| 242 | endif | ||
| 243 | 241 | ||
| 244 | 242 | ||
| 245 | ifdef CONFIG_MODVERSIONS | 243 | ifdef CONFIG_MODVERSIONS |
diff --git a/scripts/unifdef.c b/scripts/unifdef.c index 7493c0ee51cc..db00e3e30a59 100644 --- a/scripts/unifdef.c +++ b/scripts/unifdef.c | |||
| @@ -395,7 +395,7 @@ usage(void) | |||
| 395 | * When we have processed a group that starts off with a known-false | 395 | * When we have processed a group that starts off with a known-false |
| 396 | * #if/#elif sequence (which has therefore been deleted) followed by a | 396 | * #if/#elif sequence (which has therefore been deleted) followed by a |
| 397 | * #elif that we don't understand and therefore must keep, we edit the | 397 | * #elif that we don't understand and therefore must keep, we edit the |
| 398 | * latter into a #if to keep the nesting correct. We use strncpy() to | 398 | * latter into a #if to keep the nesting correct. We use memcpy() to |
| 399 | * overwrite the 4 byte token "elif" with "if " without a '\0' byte. | 399 | * overwrite the 4 byte token "elif" with "if " without a '\0' byte. |
| 400 | * | 400 | * |
| 401 | * When we find a true #elif in a group, the following block will | 401 | * When we find a true #elif in a group, the following block will |
| @@ -450,7 +450,7 @@ static void Idrop (void) { Fdrop(); ignoreon(); } | |||
| 450 | static void Itrue (void) { Ftrue(); ignoreon(); } | 450 | static void Itrue (void) { Ftrue(); ignoreon(); } |
| 451 | static void Ifalse(void) { Ffalse(); ignoreon(); } | 451 | static void Ifalse(void) { Ffalse(); ignoreon(); } |
| 452 | /* modify this line */ | 452 | /* modify this line */ |
| 453 | static void Mpass (void) { strncpy(keyword, "if ", 4); Pelif(); } | 453 | static void Mpass (void) { memcpy(keyword, "if ", 4); Pelif(); } |
| 454 | static void Mtrue (void) { keywordedit("else"); state(IS_TRUE_MIDDLE); } | 454 | static void Mtrue (void) { keywordedit("else"); state(IS_TRUE_MIDDLE); } |
| 455 | static void Melif (void) { keywordedit("endif"); state(IS_FALSE_TRAILER); } | 455 | static void Melif (void) { keywordedit("endif"); state(IS_FALSE_TRAILER); } |
| 456 | static void Melse (void) { keywordedit("endif"); state(IS_FALSE_ELSE); } | 456 | static void Melse (void) { keywordedit("endif"); state(IS_FALSE_ELSE); } |
