From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 598B1C05027 for ; Mon, 6 Feb 2023 19:09:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbjBFTJ3 (ORCPT ); Mon, 6 Feb 2023 14:09:29 -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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.35.1