From patchwork Thu Apr 9 09:46:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 6186651 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 095F6BF4A6 for ; Thu, 9 Apr 2015 09:52:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3F76120376 for ; Thu, 9 Apr 2015 09:52:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6A0AF20375 for ; Thu, 9 Apr 2015 09:52:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yg93f-00086M-7q; Thu, 09 Apr 2015 09:47:35 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yg93S-0007mV-NS for linux-arm-kernel@lists.infradead.org; Thu, 09 Apr 2015 09:47:23 +0000 Received: from wuerfel.localnet ([149.172.15.242]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0LmLVi-1ZEvZI1Ro2-00ZvYA; Thu, 09 Apr 2015 11:46:58 +0200 From: Arnd Bergmann To: Andrew Morton Subject: [PATCH] mempool: add missing include Date: Thu, 09 Apr 2015 11:46:55 +0200 Message-ID: <3302342.cNyRUGN06P@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:c7MzCCgCU2B9n2L2ZEiVt9eKxAtgd1CzG+50Krm+TNHCFVJ2C8I MiCMZzEJSWQ7PvfeI3KpnDHCDCraTJ1rSsatAReLSLHBVTmktOKbmaZWhGXvEZWy1B+LMNW pNIHzbbhWyKDsS0huUa5c6a7PxsUbyt2JY+yEaSr5pykbYnkp7qVb275CO0PzQu/s9Nipsn q8YznBu2Csop5guqq59tQ== X-UI-Out-Filterresults: notjunk:1; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150409_024723_198281_373813EC X-CRM114-Status: UNSURE ( 7.80 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: Andrey Ryabinin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, David Rientjes X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is a fix^3 for the mempool poisoning patch, which introduces a compile-time error on some ARM randconfig builds: mm/mempool.c: In function 'check_element': mm/mempool.c:65:16: error: implicit declaration of function 'kmap_atomic' [-Werror=implicit-function-declaration] void *addr = kmap_atomic((struct page *)element); The problem is clearly the missing declaration, and including linux/highmem.h fixes it. Signed-off-by: Arnd Bergmann Fixes: a3db5a8463b0db ("mm, mempool: poison elements backed by page allocator fix fix") Acked-by: David Rientjes diff --git a/mm/mempool.c b/mm/mempool.c index 05ad55e61264..5e7c4a871391 100644 --- a/mm/mempool.c +++ b/mm/mempool.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include