Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d13ffb56 authored by Al Viro's avatar Al Viro
Browse files

m68k: move exports to definitions

parent 00fc0e0d
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
#define KSYM_ALIGN 2
#define KCRC_ALIGN 2
#include <asm-generic/export.h>
+1 −1
Original line number Original line Diff line number Diff line
@@ -13,7 +13,7 @@ extra-$(CONFIG_SUN3X) := head.o
extra-$(CONFIG_SUN3)	:= sun3-head.o
extra-$(CONFIG_SUN3)	:= sun3-head.o
extra-y			+= vmlinux.lds
extra-y			+= vmlinux.lds


obj-y	:= entry.o irq.o m68k_ksyms.o module.o process.o ptrace.o
obj-y	:= entry.o irq.o module.o process.o ptrace.o
obj-y	+= setup.o signal.o sys_m68k.o syscalltable.o time.o traps.o
obj-y	+= setup.o signal.o sys_m68k.o syscalltable.o time.o traps.o


obj-$(CONFIG_MMU_MOTOROLA) += ints.o vectors.o
obj-$(CONFIG_MMU_MOTOROLA) += ints.o vectors.o

arch/m68k/kernel/m68k_ksyms.c

deleted100644 → 0
+0 −32
Original line number Original line Diff line number Diff line
#include <linux/module.h>

asmlinkage long long __ashldi3 (long long, int);
asmlinkage long long __ashrdi3 (long long, int);
asmlinkage long long __lshrdi3 (long long, int);
asmlinkage long long __muldi3 (long long, long long);

/* The following are special because they're not called
   explicitly (the C compiler generates them).  Fortunately,
   their interface isn't gonna change any time soon now, so
   it's OK to leave it out of version control.  */
EXPORT_SYMBOL(__ashldi3);
EXPORT_SYMBOL(__ashrdi3);
EXPORT_SYMBOL(__lshrdi3);
EXPORT_SYMBOL(__muldi3);

#if defined(CONFIG_CPU_HAS_NO_MULDIV64)
/*
 * Simpler 68k and ColdFire parts also need a few other gcc functions.
 */
extern long long __divsi3(long long, long long);
extern long long __modsi3(long long, long long);
extern long long __mulsi3(long long, long long);
extern long long __udivsi3(long long, long long);
extern long long __umodsi3(long long, long long);

EXPORT_SYMBOL(__divsi3);
EXPORT_SYMBOL(__modsi3);
EXPORT_SYMBOL(__mulsi3);
EXPORT_SYMBOL(__udivsi3);
EXPORT_SYMBOL(__umodsi3);
#endif
+4 −0
Original line number Original line Diff line number Diff line
@@ -13,6 +13,9 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details. */
GNU General Public License for more details. */


#include <linux/compiler.h>
#include <linux/export.h>

#define BITS_PER_UNIT 8
#define BITS_PER_UNIT 8


typedef		 int SItype	__attribute__ ((mode (SI)));
typedef		 int SItype	__attribute__ ((mode (SI)));
@@ -55,3 +58,4 @@ __ashldi3 (DItype u, word_type b)


  return w.ll;
  return w.ll;
}
}
EXPORT_SYMBOL(__ashldi3);
+4 −0
Original line number Original line Diff line number Diff line
@@ -13,6 +13,9 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details. */
GNU General Public License for more details. */


#include <linux/compiler.h>
#include <linux/export.h>

#define BITS_PER_UNIT 8
#define BITS_PER_UNIT 8


typedef		 int SItype	__attribute__ ((mode (SI)));
typedef		 int SItype	__attribute__ ((mode (SI)));
@@ -56,3 +59,4 @@ __ashrdi3 (DItype u, word_type b)


  return w.ll;
  return w.ll;
}
}
EXPORT_SYMBOL(__ashrdi3);
Loading