Message ID | 20230516160642.523862-12-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 b10csp542660vqo; Tue, 16 May 2023 09:10:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6NUkvFZYvtfin0XkfVsACC6whTEkGGj/wzNBLril4wUONvc8SeubYEko6y2CtiUXEZMW7D X-Received: by 2002:a05:6a20:4320:b0:104:a053:12fb with SMTP id h32-20020a056a20432000b00104a05312fbmr18858140pzk.60.1684253435527; Tue, 16 May 2023 09:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684253435; cv=none; d=google.com; s=arc-20160816; b=VtNs9bwM0ygkzoWjzR5TFTYKjgBGpoqxwLtqujoq5Gq3604lOnMeQCj12p8djSNDTc sXrD8tet5vA2/Lq/PQo703dDQgFPpi0N6691aDD/3bkTvOjE647SjQCG9wG7iMFsYVId jMBjTJxY8MD0ngp1wbfr8Uvo1OS5O55SdnK9FzXgANlpng8/gvN0gM7MeGcVL857iElE fqhElF0jEpkhbFmwoQljcSaAlpsLxP1qBixlfBIXJwPSU9wHYne81cc+pdVKZGYB8/4v qTePF+U71o2MXup56EdaAbEtpV/8pucLtLitwzEkpx36PHHWewUsq4/8DfQYg+ne1Ud2 x+cw== 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=qOJz4bysmoXbtpiQoioVfn7tav6GRTX126A8DmaTyWQ=; b=1KSOPCrrxzQdkdBLqnKc1y5W1H20EG+6gLQ7vWgbZ7/l4QALuf0XbzksfGSUVIxhUU 3vG/le9m9TGDkFmLNSE2Ej44ks4eOo7tW9O/OWDHDsOLXTW30LCX0y9bXMXZhAgbpHa3 TiKB4o76p7olSoaDEKfVOLRBBM/pmi2LJTGlfuOXDC0znrs2kO52BzatCJkWJVr3HEXX +gEpJDNk8V+WXHOT+predyWzRu6XvNRGjQ/YPoG67S4h7dvKeqr1UaGXc5fKQkLUlogy ilESLEJ/zGsDLdajLTWb7KRXpbJ2XJml8N5AmEDBVc+/tiSVAp3mEfa8zce3cnsUf358 0Csw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PSLAJY0X; 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 r26-20020aa7963a000000b00643443e6ccasi19727099pfg.72.2023.05.16.09.10.18; Tue, 16 May 2023 09:10:35 -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=PSLAJY0X; 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 S234494AbjEPQIX (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Tue, 16 May 2023 12:08:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234491AbjEPQIH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 May 2023 12:08:07 -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 5D55E7D81; Tue, 16 May 2023 09:07:42 -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 8829963982; Tue, 16 May 2023 16:07:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 642E1C433A4; Tue, 16 May 2023 16:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684253261; bh=lwbLM2icgKpKkO4IGpq+gV4Vi+dLkvFByZ0s3dmZn0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PSLAJY0XnTiAmwVYnoGliY56cU9hQUxkW1tpiwPg1o/KG+Ngq2c5opKIk1AwXn5PO EXSt3oKxIS11dOgqD63RM5eXBSolsLG5TMso+ML8PCd8Z9uSVUiU1Ps/wdCZ8859ed ffqli+mKUmIU6urapJTAphhh9cf3uNVLRrBBszc44njQamfjh1yy2pctXivlpTKAtC 1GqekmzV0bvS1EIYVM/xbwu79KXIbE11b533TA9NecaXU2zBP5o3CuozK/GfVXtKFq MgjQSifqruIhKMqr8Bf7VrhZwb7kaOv01ziNOGBOopYI0Pi2IRHL87S9jRlBHN5lry zQCSON3Js6jiA== From: Arnd Bergmann <arnd@kernel.org> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de>, Ard Biesheuvel <ardb@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Marc Zyngier <maz@kernel.org>, Oliver Upton <oliver.upton@linux.dev>, James Morse <james.morse@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Zenghui Yu <yuzenghui@huawei.com>, Anshuman Khandual <anshuman.khandual@arm.com>, Kees Cook <keescook@chromium.org>, Suren Baghdasaryan <surenb@google.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, kvmarm@lists.linux.dev Subject: [PATCH 11/15] arm64: flush: include linux/libnvdimm.h Date: Tue, 16 May 2023 18:06:38 +0200 Message-Id: <20230516160642.523862-12-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516160642.523862-1-arnd@kernel.org> References: <20230516160642.523862-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?1766067730622743917?= X-GMAIL-MSGID: =?utf-8?q?1766067730622743917?= |
Series |
arm64: address -Wmissing-prototype warnings
|
|
Commit Message
Arnd Bergmann
May 16, 2023, 4:06 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The two cache management functions are declared in libnvdimm.h but provided by architecture specific code. Without including the header, this causes a W=1 warning: arch/arm64/mm/flush.c:96:6: error: no previous prototype for 'arch_wb_cache_pmem' [-Werror=missing-prototypes] arch/arm64/mm/flush.c:104:6: error: no previous prototype for 'arch_invalidate_pmem' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/arm64/mm/flush.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm64/mm/flush.c b/arch/arm64/mm/flush.c index 5f9379b3c8c8..4e6476094952 100644 --- a/arch/arm64/mm/flush.c +++ b/arch/arm64/mm/flush.c @@ -8,6 +8,7 @@ #include <linux/export.h> #include <linux/mm.h> +#include <linux/libnvdimm.h> #include <linux/pagemap.h> #include <asm/cacheflush.h>