From patchwork Wed Feb 3 22:15:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102850 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp115381lbl; Wed, 3 Feb 2016 14:17:30 -0800 (PST) X-Received: by 10.98.67.153 with SMTP id l25mr6123527pfi.111.1454537850489; Wed, 03 Feb 2016 14:17:30 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qp8si11679733pac.229.2016.02.03.14.17.30; Wed, 03 Feb 2016 14:17:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965493AbcBCWRS (ORCPT + 30 others); Wed, 3 Feb 2016 17:17:18 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:50991 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756527AbcBCWRQ (ORCPT ); Wed, 3 Feb 2016 17:17:16 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue104) with ESMTPA (Nemesis) id 0LyUBK-1ZwrJZ3tPa-015tP5; Wed, 03 Feb 2016 23:16:08 +0100 From: Arnd Bergmann To: Andrew Morton Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Joonsoo Kim , Christoph Lameter , Pekka Enberg , David Rientjes , Jesper Dangaard Brouer , Laura Abbott , linux-mm@kvack.org, "Kirill A. Shutemov" , Michal Hocko , Vlastimil Babka , linux-kernel@vger.kernel.org Subject: [PATCH] mm/debug-pagealloc: add missing debug_pagealloc_enabled Date: Wed, 3 Feb 2016 23:15:05 +0100 Message-Id: <1454537757-3760706-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:RWRjGFAk0g5bNbc5lrFcCd2CPzw3zA9R1i1eMLKG2jTq2G6NoLS /iNykPABVeiolCHAQYDAO5ihp2wqvSHYUk2m8a0969SaEiiHbmM7FmpWTHiOAxhOD8v2CwY PkiTwf3POcmmGlivw3gsxxiGDEq7xM8Eq7KFktkYd1EzmdpOaeBzBxKzrCi6hJGX/jcrLHn QCfkG4clgAqfn1Kejb//w== X-UI-Out-Filterresults: notjunk:1; V01:K0:/KNTHUZ/zNU=:uliULEZvTZY+E9kx7yHQa1 ay6dr5lyI/oM6rp7/RhPbVcLdxPZT0JPh5PfBsT85mgajeFw71BMdACGcugAwLOCc/YWlFvbr W15ANrcrNnS/+420XH9/BSyGztpZGPp+4Rf0oz9g9+p1LXfow2nphc+w6smO71/n15gK4F43G 8/FO/OPu0vjjgOiur1oFLK6C2c4ZOqZuvO1zUhtulW2UEoClhVKY1OMzJd78hhbFtDCPR8Ux9 mkMOncJy1msbL2md8ZbYzgfvYlzeHUkaRuOLQz+x3AWFjaEiLQDN8J0UCYXZ5DuMe30XCg5LT YOafc1k66S1sF4IRWaeSC3/qN9NY5Nnc4xMIa9V5NOmGzZCVcIWnvI3vDCcwHXT/3klKFb/lg 0MtlIOzlvZrMdfoHPbZEv5E8p52yPqpDfo4CMWOkcxyDkxOKB/Va+VMAQXd3grSdrQja6ssyB bsYV4AC2o2c5d/+nl7//IpudRvw2oxhHk3i5NA0/vT66jZPXZQhvranpKq3WGRPbF5Kk6B9k7 SASUUTd2yDTho4dTQHXdL7jvLqyLTjWx2fcWGYmtAzUsCOCgaf7DDz8U5LPO/e68iFTDBDA+1 g8lFXhSrynO+iEAXGqQUqBSbSclTrS9P/ybeNYHiNYcE85UYOabyyTQFC0RizScAxn80eaiXU ZJHR8Sof5OKCD6NW2viKsazhf3EtmiV+D0+l+PmaeV6Fax27bBJ+l6zrivJ1mMeAUnIM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The change to move the pagealloc logic broke the slab allocator check when it's disabled at compile time: mm/slab.c: In function 'is_debug_pagealloc_cache': mm/slab.c:1608:29: error: implicit declaration of function 'debug_pagealloc_enabled' [-Werror=implicit-function-declaration] This adds an inline helper to get it to work again. Signed-off-by: Arnd Bergmann Fixes: 0a244aea1a61 ("mm/slab: clean up DEBUG_PAGEALLOC processing code") --- include/linux/mm.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.0 diff --git a/include/linux/mm.h b/include/linux/mm.h index 5d86eb2e8584..90d600ce56ad 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2242,6 +2242,7 @@ kernel_map_pages(struct page *page, int numpages, int enable) extern bool kernel_page_present(struct page *page); #endif /* CONFIG_HIBERNATION */ #else +static inline bool debug_pagealloc_enabled(void) { return 0; } static inline void kernel_map_pages(struct page *page, int numpages, int enable) {} #ifdef CONFIG_HIBERNATION