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 D65D82E62CD; Thu, 3 Jul 2025 14:57:59 +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=1751554679; cv=none; b=d8D5r1EggTxEo01k0YE3ozM3wDJhbcxp9JaMv79hcuPDFKYgey7MtqkMZNpq5VcdsjiqpW38HRZ4Hf8f48wxGspCs0tH3iljfGXYtM2gd11AzMg8cKt7iiPyBuYpQHEqppXS4bKZMMXZE0KBoq2JM4vpnbRZP+XQ4NKOjQWoNiM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751554679; c=relaxed/simple; bh=rYG2BAu0/6hUfdGxdFRAcLk3Y3GO26PLJkqGLlzS+zU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ttvoXLF5ErbOnanCI8pL1bO0Et8kyNWqtDEOsKcnJorZqEGfSWo4Q4ymbENKs7/8rp7VI7FMgonvu2gA6XWBOlAnnpYJXpIe895lNJW+75Kxu8grBqHvarPtXeYRJkZe1erhJ5V/7RQeXmvraMKqMGbktC/ukEyZnstUXPg5iVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Nu1iHIml; 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="Nu1iHIml" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47E94C4CEEE; Thu, 3 Jul 2025 14:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751554679; bh=rYG2BAu0/6hUfdGxdFRAcLk3Y3GO26PLJkqGLlzS+zU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nu1iHImlBOLUzPXzbdCg2Iy9FHF7LKnuIkhHrPoXjb/pWqCPG5zucqQrSVppXxood O/r2P9BQPZKuBngJ1C1kQnjf4AYH+4TGCoOXIkOC4mZ/7WZKeYca6Tiy+zeSy7KiAX OAuMuft3vtKL4V91ZUchth6tCoOV7hMcdXBAMgmU= 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 6.15 046/263] um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h Date: Thu, 3 Jul 2025 16:39:26 +0200 Message-ID: <20250703144006.151114211@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250703144004.276210867@linuxfoundation.org> References: <20250703144004.276210867@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.15-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