]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
hexagon: get rid of #include <generated/compile.h>
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 20 Sep 2017 15:17:50 +0000 (00:17 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 9 Oct 2017 14:28:45 +0000 (23:28 +0900)
<generated/compile.h> is created (or updated) when Kbuild descends
into the init/ directory.  In parallel building from a pristine
source tree, there is no guarantee <generated/compile.h> exists when
arch/hexagon/kernel/ptrace.c is compiled.

For hexagon architecture, we know UTS_MACHINE is a fixed string
"hexagon", so let's hard-code it, like many architectures do.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Richard Kuo <rkuo@codeaurora.org>
arch/hexagon/kernel/ptrace.c

index ecd75e2e8eb391a6598db7bb092cc5701f1545d6..fa76493c17459639915c7df9410dcb8f3aaa8da2 100644 (file)
@@ -18,8 +18,6 @@
  * 02110-1301, USA.
  */
 
-#include <generated/compile.h>
-
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/sched/task_stack.h>
@@ -180,7 +178,7 @@ static const struct user_regset hexagon_regsets[] = {
 };
 
 static const struct user_regset_view hexagon_user_view = {
-       .name = UTS_MACHINE,
+       .name = "hexagon",
        .e_machine = ELF_ARCH,
        .ei_osabi = ELF_OSABI,
        .regsets = hexagon_regsets,