sparc: replace #include <asm/export.h> with #include <linux/export.h>
Commit ddb5cdbafaaa ("kbuild: generate KSYMTAB entries by modpost") deprecated <asm/export.h>, which is now a wrapper of <linux/export.h>. Replace #include <asm/export.h> with #include <linux/export.h>. After all the <asm/export.h> lines are converted, <asm/export.h> and <asm-generic/export.h> will be removed. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
parent
1fdd729019
commit
4cdb71b6ba
@ -8,6 +8,7 @@
|
||||
* Copyright (C) 1997 Anton Blanchard (anton@progsoc.uts.edu.au)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/pgtable.h>
|
||||
@ -30,7 +31,6 @@
|
||||
#include <asm/unistd.h>
|
||||
|
||||
#include <asm/asmmacro.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
#define curptr g6
|
||||
|
||||
|
@ -11,6 +11,7 @@
|
||||
* CompactPCI platform by Eric Brower, 1999.
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/version.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
@ -25,7 +26,6 @@
|
||||
#include <asm/thread_info.h> /* TI_UWINMASK */
|
||||
#include <asm/errno.h>
|
||||
#include <asm/pgtable.h> /* PGDIR_SHIFT */
|
||||
#include <asm/export.h>
|
||||
|
||||
.data
|
||||
/* The following are used with the prom_vector node-ops to figure out
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/export.h>
|
||||
#include <linux/threads.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/linkage.h>
|
||||
@ -33,7 +34,6 @@
|
||||
#include <asm/estate.h>
|
||||
#include <asm/sfafsr.h>
|
||||
#include <asm/unistd.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
/* This section from from _start to sparc64_boot_end should fit into
|
||||
* 0x0000000000404000 to 0x0000000000408000.
|
||||
|
@ -6,10 +6,10 @@
|
||||
*/
|
||||
|
||||
#ifdef __KERNEL__
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/visasm.h>
|
||||
#include <asm/asi.h>
|
||||
#include <asm/export.h>
|
||||
#define GLOBAL_SPARE g7
|
||||
#else
|
||||
#define GLOBAL_SPARE g5
|
||||
|
@ -7,6 +7,7 @@
|
||||
* Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
|
||||
#include <asm/asi.h>
|
||||
@ -14,7 +15,6 @@
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/visasm.h>
|
||||
#include <asm/thread_info.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
/* On entry: %o5=current FPRS value, %g7 is callers address */
|
||||
/* May clobber %o5, %g1, %g2, %g3, %g7, %icc, %xcc */
|
||||
|
@ -6,8 +6,8 @@
|
||||
* Copyright (C) 1999 David S. Miller (davem@redhat.com)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
ENTRY(__ashldi3)
|
||||
|
@ -6,8 +6,8 @@
|
||||
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
ENTRY(__ashrdi3)
|
||||
|
@ -4,10 +4,10 @@
|
||||
* Copyright (C) 1999, 2007 2012 David S. Miller (davem@davemloft.net)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/asi.h>
|
||||
#include <asm/backoff.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
|
||||
|
@ -4,10 +4,10 @@
|
||||
* Copyright (C) 2000, 2007 David S. Miller (davem@davemloft.net)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/asi.h>
|
||||
#include <asm/backoff.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
|
||||
|
@ -5,9 +5,9 @@
|
||||
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
/* Zero out 64 bytes of memory at (buf + offset).
|
||||
* Assumes %g1 contains zero.
|
||||
|
@ -5,8 +5,8 @@
|
||||
* Copyright (C) 2005 David S. Miller <davem@davemloft.net>
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
|
||||
|
@ -14,8 +14,8 @@
|
||||
* BSD4.4 portable checksum routine
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <asm/errno.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
#define CSUM_BIGCHUNK(buf, offset, sum, t0, t1, t2, t3, t4, t5) \
|
||||
ldd [buf + offset + 0x00], t0; \
|
||||
|
@ -14,7 +14,7 @@
|
||||
* BSD4.4 portable checksum routine
|
||||
*/
|
||||
|
||||
#include <asm/export.h>
|
||||
#include <linux/export.h>
|
||||
.text
|
||||
|
||||
csum_partial_fix_alignment:
|
||||
|
@ -5,13 +5,13 @@
|
||||
* Copyright (C) 1997 Jakub Jelinek (jakub@redhat.com)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/pgtable.h>
|
||||
#include <asm/visasm.h>
|
||||
#include <asm/thread_info.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/spitfire.h>
|
||||
#include <asm/head.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
/* What we used to do was lock a TLB entry into a specific
|
||||
* TLB slot, clear the page with interrupts disabled, then
|
||||
|
@ -4,9 +4,9 @@
|
||||
* Copyright (C) 1999, 2000, 2004 David S. Miller (davem@redhat.com)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/asi.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
#define XCC xcc
|
||||
|
||||
|
@ -5,13 +5,13 @@
|
||||
* Copyright (C) 1997 Jakub Jelinek (jakub@redhat.com)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <asm/visasm.h>
|
||||
#include <asm/thread_info.h>
|
||||
#include <asm/page.h>
|
||||
#include <linux/pgtable.h>
|
||||
#include <asm/spitfire.h>
|
||||
#include <asm/head.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
/* What we used to do was lock a TLB entry into a specific
|
||||
* TLB slot, clear the page with interrupts disabled, then
|
||||
|
@ -12,11 +12,11 @@
|
||||
* Returns 0 if successful, otherwise count of bytes not copied yet
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/asmmacro.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/thread_info.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
/* Work around cpp -rob */
|
||||
#define ALLOC #alloc
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Copyright (C) 2005 David S. Miller <davem@davemloft.net>
|
||||
*/
|
||||
|
||||
#include <asm/export.h>
|
||||
#include <linux/export.h>
|
||||
|
||||
#ifdef __KERNEL__
|
||||
#define GLOBAL_SPARE %g7
|
||||
|
@ -5,7 +5,7 @@ This file is part of GNU CC.
|
||||
|
||||
*/
|
||||
|
||||
#include <asm/export.h>
|
||||
#include <linux/export.h>
|
||||
.text
|
||||
.align 4
|
||||
.globl __divdi3
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.register %g2,#scratch
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
* and onward.
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
.register %g2, #scratch
|
||||
|
@ -5,8 +5,8 @@
|
||||
* and onward.
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
.register %g2, #scratch
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
.align 32
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
ENTRY(ip_fast_csum) /* %o0 = iph, %o1 = ihl */
|
||||
|
@ -7,11 +7,11 @@
|
||||
* Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/psr.h>
|
||||
#include <asm/smp.h>
|
||||
#include <asm/spinlock.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
.align 4
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
ENTRY(__lshrdi3)
|
||||
cmp %o2, 0
|
||||
|
@ -6,8 +6,8 @@
|
||||
* This can also be tweaked for kernel stack overflow detection.
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
/*
|
||||
* This is the main variant and is called by C code. GCC's -pg option
|
||||
|
@ -5,9 +5,9 @@
|
||||
* Copyright (C) 2000, 2008 David S. Miller (davem@davemloft.net)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/asm.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
ENTRY(memcmp)
|
||||
|
@ -8,7 +8,8 @@
|
||||
* Copyright (C) 1996 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
|
||||
*/
|
||||
|
||||
#include <asm/export.h>
|
||||
#include <linux/export.h>
|
||||
|
||||
#define FUNC(x) \
|
||||
.globl x; \
|
||||
.type x,@function; \
|
||||
|
@ -5,8 +5,8 @@
|
||||
* Copyright (C) 1996, 1997, 1998, 1999 Jakub Jelinek (jj@ultra.linux.cz)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
ENTRY(memmove) /* o0=dst o1=src o2=len */
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
|
||||
*/
|
||||
|
||||
#include <asm/export.h>
|
||||
#include <linux/export.h>
|
||||
|
||||
/* In essence, this is just a fancy strlen. */
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
* Copyright (C) 1998 David S. Miller (davem@redhat.com)
|
||||
*/
|
||||
|
||||
#include <asm/export.h>
|
||||
#include <linux/export.h>
|
||||
|
||||
#define HI_MAGIC 0x8080808080808080
|
||||
#define LO_MAGIC 0x0101010101010101
|
||||
|
@ -9,8 +9,8 @@
|
||||
* clear_user.
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
/* Work around cpp -rob */
|
||||
#define ALLOC #alloc
|
||||
|
@ -5,7 +5,7 @@ This file is part of GNU CC.
|
||||
|
||||
*/
|
||||
|
||||
#include <asm/export.h>
|
||||
#include <linux/export.h>
|
||||
.text
|
||||
.align 4
|
||||
.globl __muldi3
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
.align 4
|
||||
|
@ -6,9 +6,9 @@
|
||||
* Copyright (C) 1996, 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/asm.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
#define LO_MAGIC 0x01010101
|
||||
#define HI_MAGIC 0x80808080
|
||||
|
@ -4,8 +4,8 @@
|
||||
* generic strncmp routine.
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
ENTRY(strncmp)
|
||||
|
@ -5,9 +5,9 @@
|
||||
* Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/asi.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
.text
|
||||
ENTRY(strncmp)
|
||||
|
@ -9,12 +9,12 @@
|
||||
* Copyright (C) 2006 David S. Miller <davem@davemloft.net>
|
||||
*/
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/visasm.h>
|
||||
#include <asm/asi.h>
|
||||
#include <asm/dcu.h>
|
||||
#include <asm/spitfire.h>
|
||||
#include <asm/export.h>
|
||||
|
||||
/*
|
||||
* Requirements:
|
||||
|
Loading…
x
Reference in New Issue
Block a user