mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
03659efe42
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: c6b90d5cf6
("arm64/fpsimd: Fix missing-prototypes in fpsimd.c")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy 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.org
Signed-off-by: Will Deacon <will@kernel.org>
31 lines
650 B
C
31 lines
650 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* arch/arm64/include/asm/probes.h
|
|
*
|
|
* Copyright (C) 2013 Linaro Limited
|
|
*/
|
|
#ifndef _ARM_PROBES_H
|
|
#define _ARM_PROBES_H
|
|
|
|
#include <asm/insn.h>
|
|
|
|
typedef u32 probe_opcode_t;
|
|
typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *);
|
|
|
|
/* architecture specific copy of original instruction */
|
|
struct arch_probe_insn {
|
|
probe_opcode_t *insn;
|
|
pstate_check_t *pstate_cc;
|
|
probes_handler_t *handler;
|
|
/* restore address after step xol */
|
|
unsigned long restore;
|
|
};
|
|
#ifdef CONFIG_KPROBES
|
|
typedef u32 kprobe_opcode_t;
|
|
struct arch_specific_insn {
|
|
struct arch_probe_insn api;
|
|
};
|
|
#endif
|
|
|
|
#endif
|