Commit 03659efe authored by Randy Dunlap's avatar Randy Dunlap Committed by Will Deacon

arm64/fpsimd: add <asm/insn.h> to <asm/kprobes.h> to fix fpsimd build

Adding <asm/exception.h> brought in <asm/kprobes.h> which uses
<asm/probes.h>, which uses 'pstate_check_t' so the latter needs to
#include <asm/insn.h> for this typedef.

Fixes this build error:

  In file included from arch/arm64/include/asm/kprobes.h:24,
                    from arch/arm64/include/asm/exception.h:11,
                    from arch/arm64/kernel/fpsimd.c:35:
  arch/arm64/include/asm/probes.h:16:2: error: unknown type name 'pstate_check_t'
      16 |  pstate_check_t *pstate_cc;

Fixes: c6b90d5c ("arm64/fpsimd: Fix missing-prototypes in fpsimd.c")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Cc: Will Deacon <will@kernel.org>
Cc: Tian Tao <tiantao6@hisilicon.com>
Link: https://lore.kernel.org/r/20201123044510.9942-1-rdunlap@infradead.orgSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent 23c21641
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef _ARM_PROBES_H #ifndef _ARM_PROBES_H
#define _ARM_PROBES_H #define _ARM_PROBES_H
#include <asm/insn.h>
typedef u32 probe_opcode_t; typedef u32 probe_opcode_t;
typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *); typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment