From patchwork Mon Feb 6 19:08:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 53468 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2411495wrn; Mon, 6 Feb 2023 11:13:47 -0800 (PST) X-Google-Smtp-Source: AK7set+MruN7gADAWL4hbczU8dslzf0GcDxHAMpJPJclkmcIyH9lYbvPT/kqF1M/yNfwPO2C0Wx5 X-Received: by 2002:a17:906:c053:b0:87b:d636:c26d with SMTP id bm19-20020a170906c05300b0087bd636c26dmr351822ejb.58.1675710827687; Mon, 06 Feb 2023 11:13:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675710827; cv=none; d=google.com; s=arc-20160816; b=QLQszckKWiju2Qg82TUoQ9ckA9emFZlB2LKw7axWPce9Wwjo1teGv8/r1ciA90lnSv /oQHLB8VTuo+/TL5HKFVw0UFZ10FBNC0mLi2RWNG0gvvmsQl4Ji/IEVrUilFaXOka0Gz YZUK85aQzYhStNsU0b+DG9QFhATSt2uAKMqESaVVHpvcKo/5tAXV87sG6thG0D2b+vI5 5J3SVABaf8GIrf0ixIYEDdWB0vx654unNrpc1e0ZXVajbQl9sJh2HDwNqVwhDKhBeCcr qPipsAG7iPdz9Cy4ZmWFdguGdP5SnQ59TGnUSt1J9kh0mMTUZwJJX6uv0l6aLFT4vHaS Endw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=QGN5AwS7ymtlTAXBWB31mdoVyfXpaWKOg13/EzoN+dM=; b=wQf5bKpKykmlHpmWuRQnjlzBtxl+zaHcNAU3+GDSY5WP9txxdRaNtabLDE3BmI5bv3 kKegcBO725Aae7lWWWYbsPMtcPzjDELNufEmi6vYoL+Iv0UZeGLq3TX6UiJ4E4kHixQG 8JLekh2UCFuIxZ3fOwIcsfnRIUw5eiKFs1uHZlHXOvGc1qF3OKWtAhor8nfbmqZFuhWT ARsNBLI2Vw7lFVO7nLjBsU4dpvcPvyNfSLAV/g+XBs1MwOPUyt7Gtr+xkDEur/SSHOGf XB1i7zZOyLC0bRg4+nGaHaqZ2mxFFmP8iuE05FEv9sikYVylGecsrXrKsU5FGQX4fFo6 PQEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=qnLDSZR7; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a170906018900b00888161349e5si16994383ejb.660.2023.02.06.11.13.24; Mon, 06 Feb 2023 11:13:47 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=qnLDSZR7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230240AbjBFTJ2 (ORCPT + 99 others); Mon, 6 Feb 2023 14:09:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230244AbjBFTJM (ORCPT ); Mon, 6 Feb 2023 14:09:12 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 348552CFD6 for ; Mon, 6 Feb 2023 11:09:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=QGN5AwS7ymtlTAXBWB31mdoVyfXpaWKOg13/EzoN+dM=; b=qnLDSZR71L6FiOTli7nBUzPgS0 ltZt3cnRwEQw0dQ9NOqBmcUyZTzdmxhyN0+MSYof0ZqCfmS5YgqqVEYLFAj8SgARyPG5jErwZijZh HqUSKGkzzBGbwmW4nG9/18O+kLZMpAET4VbcoqlZXJddZokz+CZnyjxX5YDT5brOvsfcefz8z1YxR a1ubD6CCAYz9qTHRQc0IBuoRATWxZJYzJ/QM4oUzKYmHIxxMFhF8fVFlGoz6b2y2EQXgSwTjXjmAf bMOXnmEeuPgF9OLo/Ik+W3Ea2m9vwu6qxN8V1zu/W/5NfXOlyQvK3qM/nz/0FAPG+aa0BEgcWFD5e vcheZquw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pP6rD-00H0tF-GW; Mon, 06 Feb 2023 19:08:51 +0000 From: "Matthew Wilcox (Oracle)" To: akpm@linux-foundation.org, hughd@google.com, willy@infradead.org, markhemm@googlemail.com, rientjes@google.com, surenb@google.com, shakeelb@google.com, mhocko@suse.com, vbabka@suse.cz, quic_pkondeti@quicinc.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Charan Teja Kalla Subject: [PATCH 3/2] shmem: Fix W=1 build warnings with CONFIG_SHMEM=n Date: Mon, 6 Feb 2023 19:08:50 +0000 Message-Id: <20230206190850.4054983-1-willy@infradead.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757110157167371876?= X-GMAIL-MSGID: =?utf-8?q?1757110157167371876?= With W=1, all these functions have no prototypes so the compiler emits warnings. Signed-off-by: Matthew Wilcox (Oracle) --- mm/shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/shmem.c b/mm/shmem.c index d333deddc2b9..b01249e5c827 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -58,7 +59,6 @@ static struct vfsmount *shm_mnt; #include #include #include -#include #include #include #include