]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h
authorSami Tolvanen <samitolvanen@google.com>
Wed, 26 Mar 2025 19:05:00 +0000 (19:05 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 5 May 2025 08:22:07 +0000 (10:22 +0200)
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 <masahiroy@kernel.org>
Cc: linux-kbuild@vger.kernel.org
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202503251216.lE4t9Ikj-lkp@intel.com/
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://patch.msgid.link/20250326190500.847236-2-samitolvanen@google.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/asm/asm-prototypes.h
arch/x86/um/asm/checksum.h

index 5898a26daa0dd4fa78113b70636ab16ff73a7c87..408b31d591279ddd7180c860a1d311b8ae7689e5 100644 (file)
@@ -1 +1,6 @@
 #include <asm-generic/asm-prototypes.h>
+#include <asm/checksum.h>
+
+#ifdef CONFIG_UML_X86
+extern void cmpxchg8b_emu(void);
+#endif
index b07824500363fa1ecc065c9a3926b60e55cc1096..ddc144657efad92e9d5ac2e8c8cc8503dde59ee7 100644 (file)
@@ -20,6 +20,9 @@
  */
 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
 
+/* Do not call this directly. Declared for export type visibility. */
+extern __visible __wsum csum_partial_copy_generic(const void *src, void *dst, int len);
+
 /**
  * csum_fold - Fold and invert a 32bit checksum.
  * sum: 32bit unfolded sum