Skip to content

Commit 3b8b4b4

Browse files
committed
Merge tag 'x86-headers-2023-10-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 header file cleanup from Ingo Molnar: "Replace <asm/export.h> uses with <linux/export.h> and then remove <asm/export.h>" * tag 'x86-headers-2023-10-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/headers: Remove <asm/export.h> x86/headers: Replace #include <asm/export.h> with #include <linux/export.h> x86/headers: Remove unnecessary #include <asm/export.h>
2 parents bceb7ac + 8b01de8 commit 3b8b4b4

25 files changed

+23
-27
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/entry/vdso/vsgx.S

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

33
#include <linux/linkage.h>
4-
#include <asm/export.h>
54
#include <asm/errno.h>
65
#include <asm/enclu.h>
76

arch/x86/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ generated-y += unistd_64_x32.h
1010
generated-y += xen-hypercalls.h
1111

1212
generic-y += early_ioremap.h
13-
generic-y += export.h
1413
generic-y += mcs_spinlock.h

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>

0 commit comments

Comments
 (0)