From patchwork Tue May 16 19:35:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13243605 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33622C7EE23 for ; Tue, 16 May 2023 19:37:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C0E9C280004; Tue, 16 May 2023 15:37:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BBF2C280001; Tue, 16 May 2023 15:37:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AAE8D280004; Tue, 16 May 2023 15:37:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 996E9280001 for ; Tue, 16 May 2023 15:37:42 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 6171E1C6DC3 for ; Tue, 16 May 2023 19:37:42 +0000 (UTC) X-FDA: 80797127964.06.3489AA1 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf09.hostedemail.com (Postfix) with ESMTP id A5116140012 for ; Tue, 16 May 2023 19:37:40 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lzNvSRgB; spf=pass (imf09.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684265860; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=sXyTndVFWnpbBh0yZBRa7V5wg9uNJxG4lD97NQtPr5c=; b=V6jXSKycWrLpGI9ewZBdsyYVf/gEFOKwIIis2P6xf+GXMfRTE2f+1KfWDow3Vvwj0J7tnu +QaSwW+qzRXpaKAAt93Nax8/QDn7YWQzDIm1yBePpP5/dk/EkTKzY0LfGqa1BrQ5EriYK9 UvJiCj5v1RUmy7N5vLZW5dsJUqaGI7w= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lzNvSRgB; spf=pass (imf09.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265860; a=rsa-sha256; cv=none; b=mpMgZkDDwjDE+6fJoqnVa4FdJlCsca7YUFCqwJGBTDzyHjZcQ69R/9TR+4c04sjOpCnzXo Hth/rxB0TsPmRdCXrCdo5fJjYz+LKHpV9JhoCTlD17jbJiQKk7isVH4JsBMnobt3ZKDDza oFiO2nXED+Gp/KVIlwSu3qTHcHz/eGE= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CEFFF63E87; Tue, 16 May 2023 19:37:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B6AFC433EF; Tue, 16 May 2023 19:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265859; bh=wLf8lxCTTft8AHgx+lACsU6Y90fX557lCughigKxTwU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lzNvSRgB1AKUSR+3LeaTPh3l60rOTsZilQhWDzOcQ+x5oMBRGFpj+Je09FDcA2oKs bQKEk9CQaOZxW+LjeDZNGHoi1VyqvarfbYPZrFtOwIBWfmcUKXnPsDxk3K2zk5rI3y gwROMzkPtIsOFqQj7b/viChMDejdNvfGdFXbZ5vHvg75Pj4BpgPv1EfIB110tOzdqm cbrsbReFRHuvu0B87vAMax0fJ9PYXNdrYINAB0Gk032nABAs1PIVnq46ho2ehxCbAo 4W56TKdQY4nVBka2U6Mo+efkQ7TvUoLDyo62gyH/6bIRgyrLCuMeysKv+AAj4wS8d9 cMd2D7IKCRhyg== From: Arnd Bergmann To: x86@kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Juergen Gross , "Srivatsa S. Bhat (VMware)" , Alexey Makhalov , VMware PV-Drivers Reviewers , Peter Zijlstra , Darren Hart , Andy Shevchenko , Boris Ostrovsky , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-pci@vger.kernel.org, platform-driver-x86@vger.kernel.org, xen-devel@lists.xenproject.org, linux-pm@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 15/20] x86: mce: add copy_mc_fragile_handle_tail prototype Date: Tue, 16 May 2023 21:35:44 +0200 Message-Id: <20230516193549.544673-16-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516193549.544673-1-arnd@kernel.org> References: <20230516193549.544673-1-arnd@kernel.org> MIME-Version: 1.0 X-Stat-Signature: a9n8ei1j7i1ptdcufy579nda7bzd4rqc X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: A5116140012 X-Rspam-User: X-HE-Tag: 1684265860-607957 X-HE-Meta: U2FsdGVkX18hgorrdwzuOdQkwvKtqB7oIA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6pZ3iqxPbw9OZmtGjmE6jT8Q7Gb2ourfaTYleADltfWzYj3J5rD3zmxscs2ivnUM02Nq3X6ildP9Pqvp7RTkmHbG3sGAMSl8toc3yXpOUQ2tu8WWK7ajujCGMZKhQaKmttAOC1htpgBQ98813WXtrCGg4X3fZGZ/Qot1BnmEKBg2qT2JC7MmzzOMVpYhFpzLixaavr2hIXBAeg2MB2XA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Arnd Bergmann copy_mc_fragile_handle_tail() is only called from assembler, but 'make W=1' complains about a missing prototype: arch/x86/lib/copy_mc.c:26:1: warning: no previous prototype for ‘copy_mc_fragile_handle_tail’ [-Wmissing-prototypes] 26 | copy_mc_fragile_handle_tail(char *to, char *from, unsigned len) Add the prototype to avoid the warning. Signed-off-by: Arnd Bergmann --- arch/x86/include/asm/mce.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index 9646ed6e8c0b..180b1cbfcc4e 100644 --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h @@ -350,4 +350,7 @@ static inline void mce_amd_feature_init(struct cpuinfo_x86 *c) { } #endif static inline void mce_hygon_feature_init(struct cpuinfo_x86 *c) { return mce_amd_feature_init(c); } + +unsigned long copy_mc_fragile_handle_tail(char *to, char *from, unsigned len); + #endif /* _ASM_X86_MCE_H */