Skip to content

Commit 674d03f

Browse files
samitolvanenjmberg-intel
authored andcommitted
um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h
With CONFIG_GENDWARFKSYMS, um builds fail due to missing prototypes in asm/asm-prototypes.h. Add declarations for cmpxchg8b_emu and the exported checksum functions, including csum_partial_copy_generic as it's also exported. Cc: Masahiro Yamada <[email protected]> Cc: [email protected] Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Sami Tolvanen <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent 2236136 commit 674d03f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
#include <asm-generic/asm-prototypes.h>
2+
#include <asm/checksum.h>
3+
4+
#ifdef CONFIG_UML_X86
5+
extern void cmpxchg8b_emu(void);
6+
#endif

arch/x86/um/asm/checksum.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
*/
2121
extern __wsum csum_partial(const void *buff, int len, __wsum sum);
2222

23+
/* Do not call this directly. Declared for export type visibility. */
24+
extern __visible __wsum csum_partial_copy_generic(const void *src, void *dst, int len);
25+
2326
/**
2427
* csum_fold - Fold and invert a 32bit checksum.
2528
* sum: 32bit unfolded sum

0 commit comments

Comments
 (0)