diff options
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | scripts/sortextable.c | 8 |
2 files changed, 5 insertions, 10 deletions
@@ -794,10 +794,13 @@ PHONY += $(vmlinux-dirs) | |||
794 | $(vmlinux-dirs): prepare scripts | 794 | $(vmlinux-dirs): prepare scripts |
795 | $(Q)$(MAKE) $(build)=$@ | 795 | $(Q)$(MAKE) $(build)=$@ |
796 | 796 | ||
797 | define filechk_kernel.release | ||
798 | echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" | ||
799 | endef | ||
800 | |||
797 | # Store (new) KERNELRELEASE string in include/config/kernel.release | 801 | # Store (new) KERNELRELEASE string in include/config/kernel.release |
798 | include/config/kernel.release: include/config/auto.conf FORCE | 802 | include/config/kernel.release: include/config/auto.conf FORCE |
799 | $(Q)rm -f $@ | 803 | $(call filechk,kernel.release) |
800 | $(Q)echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" > $@ | ||
801 | 804 | ||
802 | 805 | ||
803 | # Things we need to do before we recursively start building the kernel | 806 | # Things we need to do before we recursively start building the kernel |
diff --git a/scripts/sortextable.c b/scripts/sortextable.c index f9ce1160419b..7c2310c5b996 100644 --- a/scripts/sortextable.c +++ b/scripts/sortextable.c | |||
@@ -64,14 +64,6 @@ fail_file(void) | |||
64 | longjmp(jmpenv, SJ_FAIL); | 64 | longjmp(jmpenv, SJ_FAIL); |
65 | } | 65 | } |
66 | 66 | ||
67 | static void __attribute__((noreturn)) | ||
68 | succeed_file(void) | ||
69 | { | ||
70 | cleanup(); | ||
71 | longjmp(jmpenv, SJ_SUCCEED); | ||
72 | } | ||
73 | |||
74 | |||
75 | /* | 67 | /* |
76 | * Get the whole file as a programming convenience in order to avoid | 68 | * Get the whole file as a programming convenience in order to avoid |
77 | * malloc+lseek+read+free of many pieces. If successful, then mmap | 69 | * malloc+lseek+read+free of many pieces. If successful, then mmap |