Commit 43821596 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Alexei Starovoitov

cfi: Flip headers

Normal include order is that linux/foo.h should include asm/foo.h, CFI has it
the wrong way around.
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarSami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/r/20231215092707.231038174@infradead.orgSigned-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 1467affd
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
* *
* Copyright (C) 2023 Google LLC * Copyright (C) 2023 Google LLC
*/ */
#include <linux/bug.h>
#include <linux/cfi.h> struct pt_regs;
#ifdef CONFIG_CFI_CLANG #ifdef CONFIG_CFI_CLANG
enum bug_trap_type handle_cfi_failure(struct pt_regs *regs); enum bug_trap_type handle_cfi_failure(struct pt_regs *regs);
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* Copyright (C) 2023 Google LLC * Copyright (C) 2023 Google LLC
*/ */
#include <asm/cfi.h> #include <linux/cfi.h>
#include <asm/insn.h> #include <asm/insn.h>
/* /*
......
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
* *
* Copyright (C) 2022 Google LLC * Copyright (C) 2022 Google LLC
*/ */
#include <linux/bug.h>
#include <linux/cfi.h> struct pt_regs;
#ifdef CONFIG_CFI_CLANG #ifdef CONFIG_CFI_CLANG
enum bug_trap_type handle_cfi_failure(struct pt_regs *regs); enum bug_trap_type handle_cfi_failure(struct pt_regs *regs);
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
* *
* Copyright (C) 2022 Google LLC * Copyright (C) 2022 Google LLC
*/ */
#include <asm/cfi.h> #include <linux/string.h>
#include <linux/cfi.h>
#include <asm/insn.h> #include <asm/insn.h>
#include <asm/insn-eval.h> #include <asm/insn-eval.h>
#include <linux/string.h>
/* /*
* Returns the target address and the expected type when regs->ip points * Returns the target address and the expected type when regs->ip points
......
...@@ -11,6 +11,7 @@ mandatory-y += bitops.h ...@@ -11,6 +11,7 @@ mandatory-y += bitops.h
mandatory-y += bug.h mandatory-y += bug.h
mandatory-y += bugs.h mandatory-y += bugs.h
mandatory-y += cacheflush.h mandatory-y += cacheflush.h
mandatory-y += cfi.h
mandatory-y += checksum.h mandatory-y += checksum.h
mandatory-y += compat.h mandatory-y += compat.h
mandatory-y += current.h mandatory-y += current.h
......
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_GENERIC_CFI_H
#define __ASM_GENERIC_CFI_H
#endif /* __ASM_GENERIC_CFI_H */
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/module.h> #include <linux/module.h>
#include <asm/cfi.h>
#ifdef CONFIG_CFI_CLANG #ifdef CONFIG_CFI_CLANG
enum bug_trap_type report_cfi_failure(struct pt_regs *regs, unsigned long addr, enum bug_trap_type report_cfi_failure(struct pt_regs *regs, unsigned long addr,
......
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