Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1E89C4361B for ; Thu, 17 Dec 2020 02:23:16 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 31E1223718 for ; Thu, 17 Dec 2020 02:23:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 31E1223718 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 637C36B0068; Wed, 16 Dec 2020 21:23:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5F1DF6B006C; Wed, 16 Dec 2020 21:23:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4AF796B006E; Wed, 16 Dec 2020 21:23:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0166.hostedemail.com [216.40.44.166]) by kanga.kvack.org (Postfix) with ESMTP id 344C06B0068 for ; Wed, 16 Dec 2020 21:23:15 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 02525362E for ; Thu, 17 Dec 2020 02:23:15 +0000 (UTC) X-FDA: 77601177150.05.lamp71_4b15b7d27431 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id DCC7C1826B6B6 for ; Thu, 17 Dec 2020 02:23:14 +0000 (UTC) X-HE-Tag: lamp71_4b15b7d27431 X-Filterd-Recvd-Size: 1858 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf37.hostedemail.com (Postfix) with ESMTP for ; Thu, 17 Dec 2020 02:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8uHs/UhveALE70R5Z9Kg2unr079LnQrGmTT2HTgImw8=; b=FifsAiB3tLiNJPag7q9n8RFM5/ pk9gX7tAuQJSETnc6fT6mFCRtrmN3ucHavM6Xn8K8jvyvhnvox/5tUNajqntYzSL73VRjnutHSRRk dg0m/5QJ/CJcdVCoEACAjAX3L9w7x9cRok3++Zkax/N3DQyOXMOpcTvBbBge9izlvqW24uQ44vqfr vpuHGZ3P7SpVuUwaPvWYf7AeNS8XyAOn56x/x3kdr+t425vgJ7xisdFmaqVU2J/TG5SNkqDKR6v8/ jx9NgNK9WY7uHm/XaZ0DfFvzk8y0+YmPCU6UFT3tq1q1fdx+IDleU30BRZ+07RmdqXv6xHstJJrwM WhSosgcw==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpiwc-0007Ne-NI; Thu, 17 Dec 2020 02:23:06 +0000 Date: Thu, 17 Dec 2020 02:23:06 +0000 From: Matthew Wilcox To: Xiangyang Yu Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/filemap: Fix warning: no previous prototype Message-ID: <20201217022306.GB15600@casper.infradead.org> References: <20201217020311.491799-1-yuxiangyang4@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201217020311.491799-1-yuxiangyang4@huawei.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000058, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Dec 17, 2020 at 10:03:11AM +0800, Xiangyang Yu wrote: > Fixed the warning when building with warnings enabled (W=1), > This function is only used in filemap.c, so mark this function > with 'static'. Good grief, no. Look at the git history before proposing a patch.