Skip to content

Commit

Permalink
hexagon: get rid of #include <generated/compile.h>
Browse files Browse the repository at this point in the history
<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 <[email protected]>
Acked-by: Richard Kuo <[email protected]>
  • Loading branch information
masahir0y committed Oct 9, 2017
1 parent 9e66317 commit f231e43
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/hexagon/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f231e43

Please sign in to comment.