Message ID | 20230516193549.544673-18-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp662794vqo; Tue, 16 May 2023 12:47:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5J0bIkk0FHP5+L2xmk0OVTBRUK+7oO4rZFd5IwnY8o1IsyPK2K9KeugY88dX8QzemYQH4R X-Received: by 2002:a17:902:ea05:b0:1ad:d542:6e14 with SMTP id s5-20020a170902ea0500b001add5426e14mr21160736plg.12.1684266440704; Tue, 16 May 2023 12:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684266440; cv=none; d=google.com; s=arc-20160816; b=l8A8JNIKt/kzxBI6IAEMqdWw7lShecdARJp/jj7CE/SEq/dDb7HZ/ogtylguAhj+24 LOzmLiVjWg/xFud+GMdd7tBT+1YTKt1LdJP3cs96ZVh4acmrkZqpZCnmiFpNo2TxiBX1 RIpbsp55XJNXQMSWJ+2WT5API27SAbVSic/AbHPQiKGO1G4TjNj6XByfb605MHOwW2MD R2+nxNh9DUX7ioGf3M9gpxyGfyoVNaaZYjT0rn/cV3Be23Ju9+6PBUJ0fovGxjTDM894 UJxGZwjCls0iO2ZhIDFImn0KCIK+g8UqdWFOkgZLtE1QRNq2f2NE/3xo8+8QcQ1FbNnw zk2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gigHMuuyAESN6T105RvhBXeUqR2L13lmgTjmiPF3Qq0=; b=GdXCcYf8M2R5JcMtwkcU2nWpjF3ZIpgTAznPozN1G3ViaTIg7cANeILZ+6simv73QW XLRaQkLhS/PU4+QyMNm4BikWKd65MdPYybINPsM6IIqVkPlj63Pd2bV0BDgiC5f4FTt8 JLgXBVMm28iRfqtUBYsnzL92kcaAv9qmXX2Ta5bNWwZHXnK17NXDD7lw0PIiaNTOQlh3 9ifvavY1A0McrAPBdmebhgjw8w2MO5S8QSx3MhT/jN2aaz72KpR6QL/gqWEMvPSm3yvV EGqaRLfEeicXwwAHrfKDGbJKPpon3nP/qm8vCvFRLYFZl/uOe0XhsZ5GEdbdG/BBdPM2 RcvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j20kxPBB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a170902710200b001a68f933777si17590084pll.245.2023.05.16.12.47.07; Tue, 16 May 2023 12:47:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j20kxPBB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230325AbjEPTif (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Tue, 16 May 2023 15:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230125AbjEPTiV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 May 2023 15:38:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF910A26E; Tue, 16 May 2023 12:37:59 -0700 (PDT) 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 0E28563E94; Tue, 16 May 2023 19:37:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC9F0C4339C; Tue, 16 May 2023 19:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265871; bh=gSQe4II2iJtS+QQtWHfwrqCvLdxK7Wzo7e0HtFoFV5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j20kxPBBFRIlxqq0mFZaJS7pQ1cCrLadjW3BuMisWulwenHNraGn3QWbXEUvelZB9 k8AScRxshCwAwrVHCxXAtcvrlQ6DnbnlQVpLaumX7l4EAkHg/GHsGYTQGiOvmWdeHV nnvqCAqbFDpb6jdopaiVGQxZ8tQP14F6vLmY6rEGNbIsMSxZRZfWCAbLoJmiLJul9v mHgb9qRmHAMRdPNwGH1ZJuxcpbeasYeDWHN2uDuIqWD3/Br6dub6irvZhT2xBqimyR 5zR/L6TK+jHMgzzDqKoPOtdy3hz/UK9lh7gf7JJ+DhFN6pkHpaPxXMMg+7/fxjhdum PLw3akFNr0smA== From: Arnd Bergmann <arnd@kernel.org> To: x86@kernel.org Cc: Arnd Bergmann <arnd@arndb.de>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com>, Andy Lutomirski <luto@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Masami Hiramatsu <mhiramat@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Juergen Gross <jgross@suse.com>, "Srivatsa S. Bhat (VMware)" <srivatsa@csail.mit.edu>, Alexey Makhalov <amakhalov@vmware.com>, VMware PV-Drivers Reviewers <pv-drivers@vmware.com>, Peter Zijlstra <peterz@infradead.org>, Darren Hart <dvhart@infradead.org>, Andy Shevchenko <andy@infradead.org>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, "Rafael J. Wysocki" <rafael@kernel.org>, 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 17/20] x86: usercopy: include arch_wb_cache_pmem declaration Date: Tue, 16 May 2023 21:35:46 +0200 Message-Id: <20230516193549.544673-18-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766081367061644773?= X-GMAIL-MSGID: =?utf-8?q?1766081367061644773?= |
Series |
x86: address -Wmissing-prototype warnings
|
|
Commit Message
Arnd Bergmann
May 16, 2023, 7:35 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> arch_wb_cache_pmem() is declared in a global header but defined by the architecture. On x86, the implementation needs to include the header to avoid this warning: arch/x86/lib/usercopy_64.c:39:6: error: no previous prototype for 'arch_wb_cache_pmem' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/x86/lib/usercopy_64.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c index 003d90138e20..e9251b89a9e9 100644 --- a/arch/x86/lib/usercopy_64.c +++ b/arch/x86/lib/usercopy_64.c @@ -9,6 +9,7 @@ #include <linux/export.h> #include <linux/uaccess.h> #include <linux/highmem.h> +#include <linux/libnvdimm.h> /* * Zero Userspace