Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp205875pxj; Thu, 20 May 2021 07:38:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweXEwmV9oXT+ueckk3WZfw6JJJ7xJtstBRjBxMCSDQyETkZojUx2Znk+riG+CJCu7zgYPe X-Received: by 2002:a05:6402:1548:: with SMTP id p8mr5334412edx.261.1621521510377; Thu, 20 May 2021 07:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621521510; cv=none; d=google.com; s=arc-20160816; b=j9dUbXZrQ1PFQZwCdKbsrbn0thGKr5O/mobD9zpNhLba0e9l41RVkaTZbenKORLzEb C9sHdWBdtXJ+82JLHNekMZEhpf8DiekA1WjLV7aJfet92YFaxUBPe6eG9n90AYN8Jt5a tugWrWBKTSqL4EKkLG/g5zFS/rI9Ug6Tw5+qo8FKzgSxfsY8slw1OavxlAOcLsA1b4zF wqvikn/Zw/QhBOc6r6+XsyNfNvpxFdpFfXQud3DV+Nj0MMxQJRF96hx8koF6bhILt4Q8 NL/uFQw8Mj8mnEKra3jiCo/kUqcczfHOY3VN6maLm5pVlDO2k1zzpbKqAr+CcRXV3gPr j2eQ== 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; bh=Qp2+g1CNFVhIOXpzZD0VtGEQgy7CESAsdmFPrk1aNfc=; b=iVDilrg++dVC28Qgp8Apm1iJLhtEHpxd65/vsJoblH9iGyPvB3q74EH7oGHyb7bAno TVxjMq674C2rcDy82OmFTcm5xJOS2ZosScH3dagwj9rcRU3NtnIWrLCGKo0MgFP7y1vb 0/UfVCBKvpWAtgp3O6rE9oI/UkyAg2ZMdRhj4sCsjoLEmvrHUk9nbMaPBM8a2OjVqyjv bNMb1uLMFdCQiGKW0X2+t66YVeD09SHCp29FzOvOwDfxdE5C4cGSCyxfrhxFpcp0ux/N EHqqdagikUZcilkCDIAKFILz9eCz3yY5JCLDKd/GKVt4WPBRXBi8egpHyvXzJhS9Q9h+ jL5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si2519616ejw.626.2021.05.20.07.38.02; Thu, 20 May 2021 07:38:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231279AbhETIuE (ORCPT + 99 others); Thu, 20 May 2021 04:50:04 -0400 Received: from outbound-smtp46.blacknight.com ([46.22.136.58]:60303 "EHLO outbound-smtp46.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231179AbhETIuD (ORCPT ); Thu, 20 May 2021 04:50:03 -0400 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp46.blacknight.com (Postfix) with ESMTPS id 09E75FAB50 for ; Thu, 20 May 2021 09:48:42 +0100 (IST) Received: (qmail 3920 invoked from network); 20 May 2021 08:48:41 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.23.168]) by 81.17.254.9 with ESMTPA; 20 May 2021 08:48:41 -0000 From: Mel Gorman To: Andrew Morton Cc: Michal Hocko , David Hildenbrand , Vlastimil Babka , Dan Streetman , Yang Shi , Linux-MM , LKML , Mel Gorman Subject: [PATCH 02/14] mm/vmalloc: Include header for prototype of set_iounmap_nonlazy Date: Thu, 20 May 2021 09:47:57 +0100 Message-Id: <20210520084809.8576-3-mgorman@techsingularity.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210520084809.8576-1-mgorman@techsingularity.net> References: <20210520084809.8576-1-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org make W=1 generates the following warning for mm/vmalloc.c mm/vmalloc.c:1599:6: warning: no previous prototype for ‘set_iounmap_nonlazy’ [-Wmissing-prototypes] void set_iounmap_nonlazy(void) ^~~~~~~~~~~~~~~~~~~ This is an arch-generic function only used by x86. On other arches, it's dead code. Include the header with the definition and make it x86-64 specific. Signed-off-by: Mel Gorman --- mm/vmalloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index a13ac524f6ff..0522a418b1c5 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -1592,6 +1593,7 @@ static DEFINE_MUTEX(vmap_purge_lock); /* for per-CPU blocks */ static void purge_fragmented_blocks_allcpus(void); +#ifdef CONFIG_X86_64 /* * called before a call to iounmap() if the caller wants vm_area_struct's * immediately freed. @@ -1600,6 +1602,7 @@ void set_iounmap_nonlazy(void) { atomic_long_set(&vmap_lazy_nr, lazy_max_pages()+1); } +#endif /* CONFIG_X86_64 */ /* * Purges all lazily-freed vmap areas. -- 2.26.2