Skip to content

Commit 94ea9c0

Browse files
masahir0yIngo Molnar
authored andcommitted
x86/headers: Replace #include <asm/export.h> with #include <linux/export.h>
The following commit: ddb5cdb ("kbuild: generate KSYMTAB entries by modpost") deprecated <asm/export.h>, which is now a wrapper of <linux/export.h>. Use <linux/export.h> in *.S as well as in *.c files. After all the <asm/export.h> lines are replaced, <asm/export.h> and <asm-generic/export.h> will be removed. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b425232 commit 94ea9c0

23 files changed

+23
-25
lines changed

arch/x86/entry/entry.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Common place for both 32- and 64-bit entry routines.
44
*/
55

6+
#include <linux/export.h>
67
#include <linux/linkage.h>
7-
#include <asm/export.h>
88
#include <asm/msr-index.h>
99

1010
.pushsection .noinstr.text, "ax"

arch/x86/entry/entry_64.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* - SYM_FUNC_START/END:Define functions in the symbol table.
1919
* - idtentry: Define exception entry points.
2020
*/
21+
#include <linux/export.h>
2122
#include <linux/linkage.h>
2223
#include <asm/segment.h>
2324
#include <asm/cache.h>
@@ -34,7 +35,6 @@
3435
#include <asm/asm.h>
3536
#include <asm/smap.h>
3637
#include <asm/pgtable_types.h>
37-
#include <asm/export.h>
3838
#include <asm/frame.h>
3939
#include <asm/trapnr.h>
4040
#include <asm/nospec-branch.h>

arch/x86/entry/thunk_32.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* Copyright 2008 by Steven Rostedt, Red Hat, Inc
55
* (inspired by Andi Kleen's thunk_64.S)
66
*/
7+
#include <linux/export.h>
78
#include <linux/linkage.h>
89
#include <asm/asm.h>
9-
#include <asm/export.h>
1010

1111
/* put return address in eax (arg1) */
1212
.macro THUNK name, func, put_ret_addr_in_eax=0

arch/x86/entry/thunk_64.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* disturbance of register allocation in some inline assembly constructs.
55
* Copyright 2001,2002 by Andi Kleen, SuSE Labs.
66
*/
7+
#include <linux/export.h>
78
#include <linux/linkage.h>
89
#include "calling.h"
910
#include <asm/asm.h>
10-
#include <asm/export.h>
1111

1212
/* rdi: arg1 ... normal C conventions. rax is saved/restored. */
1313
.macro THUNK name, func

arch/x86/kernel/ftrace_32.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* Copyright (C) 2017 Steven Rostedt, VMware Inc.
44
*/
55

6+
#include <linux/export.h>
67
#include <linux/linkage.h>
78
#include <asm/page_types.h>
89
#include <asm/segment.h>
9-
#include <asm/export.h>
1010
#include <asm/ftrace.h>
1111
#include <asm/nospec-branch.h>
1212
#include <asm/frame.h>

arch/x86/kernel/ftrace_64.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* Copyright (C) 2014 Steven Rostedt, Red Hat Inc
44
*/
55

6+
#include <linux/export.h>
67
#include <linux/cfi_types.h>
78
#include <linux/linkage.h>
89
#include <asm/asm-offsets.h>
910
#include <asm/ptrace.h>
1011
#include <asm/ftrace.h>
11-
#include <asm/export.h>
1212
#include <asm/nospec-branch.h>
1313
#include <asm/unwind_hints.h>
1414
#include <asm/frame.h>

arch/x86/kernel/head_32.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99

1010
.text
11+
#include <linux/export.h>
1112
#include <linux/threads.h>
1213
#include <linux/init.h>
1314
#include <linux/linkage.h>
@@ -25,7 +26,6 @@
2526
#include <asm/nops.h>
2627
#include <asm/nospec-branch.h>
2728
#include <asm/bootparam.h>
28-
#include <asm/export.h>
2929
#include <asm/pgtable_32.h>
3030

3131
/* Physical address */

arch/x86/kernel/head_64.S

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Copyright (C) 2005 Eric Biederman <[email protected]>
1010
*/
1111

12-
12+
#include <linux/export.h>
1313
#include <linux/linkage.h>
1414
#include <linux/threads.h>
1515
#include <linux/init.h>
@@ -22,7 +22,6 @@
2222
#include <asm/percpu.h>
2323
#include <asm/nops.h>
2424
#include "../entry/calling.h"
25-
#include <asm/export.h>
2625
#include <asm/nospec-branch.h>
2726
#include <asm/apicdef.h>
2827
#include <asm/fixmap.h>

arch/x86/kernel/irqflags.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
22

33
#include <asm/asm.h>
4-
#include <asm/export.h>
4+
#include <linux/export.h>
55
#include <linux/linkage.h>
66

77
/*

arch/x86/lib/checksum_32.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
* converted to pure assembler
2222
*/
2323

24+
#include <linux/export.h>
2425
#include <linux/linkage.h>
2526
#include <asm/errno.h>
2627
#include <asm/asm.h>
27-
#include <asm/export.h>
2828
#include <asm/nospec-branch.h>
2929

3030
/*

0 commit comments

Comments
 (0)