Skip to content

Commit 9e5f688

Browse files
npigginmpe
authored andcommitted
powerpc: Fix missing CRCs, add more asm-prototypes.h declarations
After patch 4efca4e ("kbuild: modversions for EXPORT_SYMBOL() for asm"), asm exports can get modversions CRCs generated if they have C definitions in asm-prototypes.h. This patch adds missing definitions for 32 and 64 bit allmodconfig builds. Fixes: 9445aa1 ("ppc: move exports to definitions") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 7a43906 commit 9e5f688

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

arch/powerpc/include/asm/asm-prototypes.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
#include <linux/threads.h>
1616
#include <linux/kprobes.h>
17+
#include <asm/cacheflush.h>
18+
#include <asm/checksum.h>
19+
#include <asm/uaccess.h>
20+
#include <asm/epapr_hcalls.h>
1721

1822
#include <uapi/asm/ucontext.h>
1923

@@ -109,4 +113,12 @@ void early_setup_secondary(void);
109113
/* time */
110114
void accumulate_stolen_time(void);
111115

116+
/* misc runtime */
117+
extern u64 __bswapdi2(u64);
118+
extern s64 __lshrdi3(s64, int);
119+
extern s64 __ashldi3(s64, int);
120+
extern s64 __ashrdi3(s64, int);
121+
extern int __cmpdi2(s64, s64);
122+
extern int __ucmpdi2(u64, u64);
123+
112124
#endif /* _ASM_POWERPC_ASM_PROTOTYPES_H */

0 commit comments

Comments
 (0)