Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp911190rwd; Tue, 16 May 2023 09:09:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6O6vCAG+tcGpg6t33b6xS2BVasoanVmHVkvpYtPat5IP8EzETJgE74UIiTjfC386Y6ecGv X-Received: by 2002:a05:6870:e390:b0:195:e6e9:b74a with SMTP id x16-20020a056870e39000b00195e6e9b74amr16275896oad.29.1684253362286; Tue, 16 May 2023 09:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684253362; cv=none; d=google.com; s=arc-20160816; b=1EzDACGy68JOUGnS+/2RS+sWYk1ZtDv5gsOuRz1+cDFdXXfMcfoN4zcWrK2De7tFPY vUOZzwGRnq/vJkOJDQUzMww34yEauUDuEtqU2uFCofjmoYMJAvw7bAI2Hf/00crTehYk zxbNYEtPZRO3AJLYcOTCGsfoSBKl6HmYIfAq8jkOQro6LSz/ospMDNsFVznZX/RoKjmv sQNTUVFopc/Xd02EIsi15+j8bAjwgKK+vo/S9ABDZYs4j9e2ZsAgz74rRu2xLGPiLzh2 6f+Ox5yXxp0uakVaHLQL0/JSPcK6cioaHJD+AYQglHsf7+Jz5z2Jx9Yt5YtPYJ3ebuaH A69A== 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=PfYkT+oNOEYs3DY4auJezqwjp91RD9t/WeMP9FwTQjA=; b=CN4Da2XxinF4pVB4lssaagEeZ8lK+yHmYVB7OchI1dTERqsVhjUe7RA+uQs7L4fNQD 31Z15vJ+KZizSkna/Y6Vt7II6KKy4r5q6svdVRmOAXKrBdMaIWG2qZDPa9vKrhe1RI8q OxM4cNfc2753dTxYF+PywbQeUYoeMlgqEFc5wHFChGIJsivdNhh1JiL17Pop5MviYHKR 9GwPWfZkr8eoydAbj3OfLynepddnxs6BN0X2Gb6A4VNowLoShM+eBMvRe4R2YJ2xmkog mHhk+wGQTQ+qkF80YVJsuNU2g+LvEqOLqzRcpSOHvyIeYGR/7PrT1oWvZPIMP2FEkDfC sCfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mr8YfsTN; 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 u26-20020a056871009a00b00199c258d416si3925692oaa.309.2023.05.16.09.09.07; Tue, 16 May 2023 09:09:22 -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=Mr8YfsTN; 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 S234299AbjEPPsF (ORCPT + 99 others); Tue, 16 May 2023 11:48:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234151AbjEPPrt (ORCPT ); Tue, 16 May 2023 11:47:49 -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 22B8D7DB4; Tue, 16 May 2023 08:47:25 -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 1A7F763BA4; Tue, 16 May 2023 15:46:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5187BC433D2; Tue, 16 May 2023 15:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684252009; bh=hEUlhy3x74ptZihWpTN1KOaQRhy1uwVK0q8Cu7Mv2w0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mr8YfsTNoulwGWvD0tgfBs0wwbldurQP87cM+bffA6WAgrco/DCyut4Dk70ezgjb3 s+rcP0dVrALpiBxiwpppiZJCgDuNbXrQSlgKiqUzYbO7Rp9FPZky/idQVj59srnUR/ rU5ySRLhnEFvMtEDm3VCLjjON95rItlQ0ofQSzC6qTpwmt7yv2NA5bbccWy1G95VpL Ni6quHY5h7Rellf3j00PpuwafyY7yuh5yx53gzMJhUU4h9EnUWGtc5RnodHFsYa6Xa 9o7hMEhJE2nmTZm4FB9Rxq6yXF+IouUgEI4K7ghU/pF44VvDOSr8LtHs/0OrY9bcJe M2bdA3bv1aK7Q== From: Arnd Bergmann To: Russell King Cc: Arnd Bergmann , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Oleg Nesterov , "Rafael J. Wysocki" , Pavel Machek , Linus Walleij , Ard Biesheuvel , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 09/16] ARM: cacheflush: avoid __flush_anon_page() missing-prototype warning Date: Tue, 16 May 2023 17:45:58 +0200 Message-Id: <20230516154605.517690-10-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516154605.517690-1-arnd@kernel.org> References: <20230516154605.517690-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: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The prototype for __flush_anon_page() is intentionally hidden inside the flush_anon_page() inline function to prevent it from being called from drivers. When building with 'W=1', this causes a warning: arch/arm/mm/flush.c:358:6: error: no previous prototype for '__flush_anon_page' [-Werror=missing-prototypes] Work around this by adding a prototype directly next to the function definition. Signed-off-by: Arnd Bergmann --- arch/arm/mm/flush.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c index 9b112009c708..43678137a9b2 100644 --- a/arch/arm/mm/flush.c +++ b/arch/arm/mm/flush.c @@ -355,6 +355,7 @@ EXPORT_SYMBOL(flush_dcache_page); * memcpy() to/from page * if written to page, flush_dcache_page() */ +void __flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr); void __flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) { unsigned long pfn; -- 2.39.2