From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6512D2DCF40; Tue, 15 Jul 2025 13:50:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752587434; cv=none; b=dVWbcFt0kDcoIRz2JYUH81H4Cjet07qqDIMi+P2yMF3ZaBrrVNQdJNZNMimXe51N4efmoMnE8alZ4J5At2kZsJM92U3XBIxJU1h1ND9vyu1+KJBnPB6XzHWPK1PenqY0a3nfZCR06S/J+uckpJ42kii7I1MB2ZjxjkE8TY82yRw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752587434; c=relaxed/simple; bh=OTwpqorPusUQuzYAAuYZwlFut1sfUTA2cR+pG7lLj9E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pp3xeeXXgxIpvnMiZAvUy+QNonbkWQHWmIy4F2qcsmWjZD7XL/h1ZXb0pNUGHVcPeezsf7Z+BWOBjNq3X9Cj+uK3Di9X6oR4JKouH39PqbC57TGmtr4lZZLtlyTkFN7CYPVYJz/9gtJDFu70O/5bT/urAu2Cx4dEV8hwpaetqac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z+bPLlqA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="z+bPLlqA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC3E2C4CEE3; Tue, 15 Jul 2025 13:50:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752587434; bh=OTwpqorPusUQuzYAAuYZwlFut1sfUTA2cR+pG7lLj9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z+bPLlqAGVm8OhpO9/cYVkF/rBdTeKN0CZevNswIfVIsDQjr4Y/fVY9xjyhDJM+rK w1snvWtZn1iHEBOMS66WWeVujxjRZ5Z97npZ0IoSaLR5Oj0bjegQayaSBQeE3GQi/T kq0KrtUjpMjJlgR8Q8m61StteRVG5J9Dmn5bITUU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Masahiro Yamada , linux-kbuild@vger.kernel.org, kernel test robot , Sami Tolvanen , Johannes Berg , Sasha Levin Subject: [PATCH 5.10 011/208] um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h Date: Tue, 15 Jul 2025 15:12:00 +0200 Message-ID: <20250715130811.289757421@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250715130810.830580412@linuxfoundation.org> References: <20250715130810.830580412@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sami Tolvanen [ Upstream commit 674d03f6bd6b0f8327f1a4920ff5893557facfbd ] 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 Cc: linux-kbuild@vger.kernel.org Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202503251216.lE4t9Ikj-lkp@intel.com/ Signed-off-by: Sami Tolvanen Link: https://patch.msgid.link/20250326190500.847236-2-samitolvanen@google.com Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- arch/um/include/asm/asm-prototypes.h | 5 +++++ arch/x86/um/asm/checksum.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/arch/um/include/asm/asm-prototypes.h b/arch/um/include/asm/asm-prototypes.h index 5898a26daa0dd..408b31d591279 100644 --- a/arch/um/include/asm/asm-prototypes.h +++ b/arch/um/include/asm/asm-prototypes.h @@ -1 +1,6 @@ #include +#include + +#ifdef CONFIG_UML_X86 +extern void cmpxchg8b_emu(void); +#endif diff --git a/arch/x86/um/asm/checksum.h b/arch/x86/um/asm/checksum.h index b07824500363f..ddc144657efad 100644 --- a/arch/x86/um/asm/checksum.h +++ b/arch/x86/um/asm/checksum.h @@ -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 -- 2.39.5