Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp215387pxj; Thu, 20 May 2021 07:51:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQJkCfvkgI5/A32VwEytaDQxEDBubFe6iEnexgg1WoXGdCTvqezI2B4oQAJpY60UGCTENl X-Received: by 2002:aa7:cac2:: with SMTP id l2mr1135457edt.105.1621522313661; Thu, 20 May 2021 07:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621522313; cv=none; d=google.com; s=arc-20160816; b=NV+sYt65BkZ+4p4CYLV/HIRtb1mGt6q+AWYEo0S2nLKSR7KQr2Wbxa+4lNaINHsC/H 2i4rtYIgYW+W4DH3NlgwR0jj3I+vI6jIxvXrWSz0RwH4hTvB45WsHLHWtLlUqRRt3fKs KSoumvG3NuBtAgbYnZBhco4EY5k1wTR6FSjlHhUg30vj9cd5de6ZMvW6WZ7s/GfqU2Wr AuJ3yO6XSU55NIPOsY1qPIqF/cFHU1gNeYNQVFFk7Yrph+y7hxhObzjbea0/vbFJarek f4uGbAPCcVTt/NrS8PCbTbzRbBVZ0I+rKBXvnvlunLQcbce6hACnoDhqkYFol4GQqIS8 6zBw== 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=N+x9p3ffofE8T2kf4E3KXaAmTa896MMEQo+33cP1DL8=; b=ugBnVDlxD80zL1fb5yjTV9jqYipU7FmZWHfo9yaZi9GV/kiTXRtq+x2KIJKsMB/8yL VWtTnL6G1z9rWENOpe39NQDI1+wHFrSLbSX4P82O0k82YDmR1y2heO41p+Jryu7Ssa+S 6izDkkAP/q7kXvevxGnaZjTvyXp5H9jeEQWwx+vD8Ez4auV8W6wm5rDIt+y+/unzd1wf pfA5G3STAQOFVRYs60sx9so+dKZRpyIKw/15eozhh1DT0dSPXWLBoIR9HLujGqys8vwN sGCYlrrgppROuECytV+bgd0f5lOFBjHLJA/ICUa2DbcQkFWuxMUsfoSDy8XMW6J0q/84 iDGQ== 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 op2si2828992ejb.68.2021.05.20.07.51.30; Thu, 20 May 2021 07:51:53 -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 S231286AbhETIwB (ORCPT + 99 others); Thu, 20 May 2021 04:52:01 -0400 Received: from outbound-smtp16.blacknight.com ([46.22.139.233]:49795 "EHLO outbound-smtp16.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231256AbhETIwB (ORCPT ); Thu, 20 May 2021 04:52:01 -0400 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp16.blacknight.com (Postfix) with ESMTPS id 0A5471C3C04 for ; Thu, 20 May 2021 09:50:39 +0100 (IST) Received: (qmail 11234 invoked from network); 20 May 2021 08:50:38 -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:50:38 -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 13/14] mm/page_alloc: Move prototype for find_suitable_fallback Date: Thu, 20 May 2021 09:48:08 +0100 Message-Id: <20210520084809.8576-14-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 in mmap_lock.c for allnoconfig mm/page_alloc.c:2670:5: warning: no previous prototype for ‘find_suitable_fallback’ [-Wmissing-prototypes] int find_suitable_fallback(struct free_area *area, unsigned int order, ^~~~~~~~~~~~~~~~~~~~~~ find_suitable_fallback is only shared outside of page_alloc.c for CONFIG_COMPACTION but to suppress the warning, move the protype outside of CONFIG_COMPACTION. It is not worth the effort at this time to find a clever way of allowing compaction.c to share the code or avoid the use entirely as the function is called on relatively slow paths. Signed-off-by: Mel Gorman --- mm/internal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 54bd0dc2c23c..bc9890948712 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -289,11 +289,10 @@ isolate_freepages_range(struct compact_control *cc, int isolate_migratepages_range(struct compact_control *cc, unsigned long low_pfn, unsigned long end_pfn); +#endif int find_suitable_fallback(struct free_area *area, unsigned int order, int migratetype, bool only_stealable, bool *can_steal); -#endif - /* * This function returns the order of a free page in the buddy system. In * general, page_zone(page)->lock must be held by the caller to prevent the -- 2.26.2