Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1222296rwl; Thu, 10 Aug 2023 08:07:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHF8tymZ4InpZVs0WMQBzj/4pq92lvTNhInpMkh+GQkcL6dxHX58E2TcqPoOm7m9Pvd4SP2 X-Received: by 2002:a17:903:32c9:b0:1ae:626b:475f with SMTP id i9-20020a17090332c900b001ae626b475fmr2736642plr.12.1691680046305; Thu, 10 Aug 2023 08:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691680046; cv=none; d=google.com; s=arc-20160816; b=OnInM5AArwbAAeK7Y/RONNSrE/p85cf0JpEsVoZdAZ8S/8NBF/aN2UgBAJB8901/eg CfqVgPbf0SLcQerdKTUim+/h7oO559Rl1h/UBrE1I2EQ+Lwzvadw0kXUv4fhX15iOLci Y7PvSi2OVxr6bGILdIfQhx4inZvP0TYOGLlLQVUMDAphs1FxGoMqy6GaD76Era56z82n 5UYJvCsc+rPAYtkevuBXwreHhchFLZooPjTbn8sIRl+6fals2ll8T8724e8i1YWwC5oq wu0DVNc7x1CYx+uQR+lLsT2jrDABnsvpJVspF4yTIJd6SbFpTAl7oNmT2inSFHO1C6uA iloQ== 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=aHjRspDq8tEPg5jNPZpfq5DA23B0CkDBrs69IFselgg=; fh=mRjCA9iHkng+NSnC9xsdluiQlv9SjU3VZmoLmeBJBRE=; b=UOZYQuE1xjjtHZRaBoP6fwI6yFYPi2ld6jch+m1laBbjuKXLpduYIirUHOxw7A3fCd LsIZYeq/uBVXGSfBMJngoy5Hce8/lYa01XXmtbg+NUQ0yIUy+nA16vN+hvfBXVyZiUoE yYm7IW/9gvITJOmeacWbiNIghUzqmuUpsnTOwA73Q1dzjxdTkHWpHlrC/WX7zhaF82L4 crzaidcTTbi2YkfSwLnTrAcK0GiLHmRq3jsgXOt/quGkX82+aotZnDWd7xObiNswdfDe P76AzflESxCc4Z93OwBoyPQCRYSZzfCeA4kdTEGRnggIEflFvs/0hWZuCIZLlFkpta+1 4MGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kbzkssEy; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9-20020a170902e84900b001bb792749a2si1683203plg.146.2023.08.10.08.07.11; Thu, 10 Aug 2023 08:07:26 -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=kbzkssEy; 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 S235666AbjHJOWR (ORCPT + 99 others); Thu, 10 Aug 2023 10:22:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235667AbjHJOWN (ORCPT ); Thu, 10 Aug 2023 10:22:13 -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 BB41C2715 for ; Thu, 10 Aug 2023 07:22:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4FEC065DA6 for ; Thu, 10 Aug 2023 14:22:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45BBDC433CA; Thu, 10 Aug 2023 14:22:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677328; bh=JYabf5wMJUk5e6DNY2CCvp9jZouGFzZsXU/Y/nl7JD4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kbzkssEyw3oDpgrWbl40D89GEU2FyM0Da7GcQQWjOczt0tCaNuu5lKOM3BYavzk8l YRtG58g0VE3FvnV7jujSsT4Rv4Ca97uWBtvFSmt2aOVZPdIXz889tJuRxkDITmGnzC LiE+Z3QUi1SDfLiA8InaZsrzUJNFyI11K155utwPluxPu02iQ6gUigfe+bgFSNAn+X u7LbuxUwenMNBAc7V9xxT8AaasD8Cmc6/6QVf3gvzku1Wn1xom9SUL/+GA3UbAYDIP +FI/j3dwL/UGXUMl6QjKXH9o5H+olG6iZuBJKr1fgkSON13xxi3Nq2XfDKoudsXQBn pKFmkP7dwn02g== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, Michal Simek , "Matthew Wilcox (Oracle)" , "Mike Rapoport (IBM)" Cc: Arnd Bergmann Subject: [PATCH 08/17] microblaze: mark flush_dcache_folio() inline Date: Thu, 10 Aug 2023 16:19:26 +0200 Message-Id: <20230810141947.1236730-9-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The newly added flush_dcache_folio() causes a harmless warning that turns into a build failure with CONFIG_WERROR: arch/microblaze/include/asm/cacheflush.h:77:13: error: 'flush_dcache_folio' defined but not used [-Werror=unused-function] Mark it as inline to avoid this. Fixes: 1330c94f53996 ("microblaze: implement the new page table range API") Signed-off-by: Arnd Bergmann --- arch/microblaze/include/asm/cacheflush.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/include/asm/cacheflush.h b/arch/microblaze/include/asm/cacheflush.h index e6641ff98cb30..ffa2cf3893e4b 100644 --- a/arch/microblaze/include/asm/cacheflush.h +++ b/arch/microblaze/include/asm/cacheflush.h @@ -74,7 +74,7 @@ do { \ flush_dcache_range((unsigned) (addr), (unsigned) (addr) + PAGE_SIZE); \ } while (0); -static void flush_dcache_folio(struct folio *folio) +static inline void flush_dcache_folio(struct folio *folio) { unsigned long addr = folio_pfn(folio) << PAGE_SHIFT; -- 2.39.2