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 X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9D05C432C0 for ; Fri, 22 Nov 2019 06:15:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7212A2068E for ; Fri, 22 Nov 2019 06:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574403358; bh=7I440dgsAAXMb1dwZ7WtUl9IFmfO2mQSOAE4QTI4dN4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=qNaepw87P/RwMTrby45dbjAJkrd6XSeQvYb/UuHaYwXLvVGo+/GoIhYB9vKHjXQJK r4B1cJMlsO0q/TYx8HLQCgY7+0YUwek8A8U6D66/YhCYWFrMiB7GLpcQTi0qKZOMYU AXLCPkaDQ9u6FQXg8KGa6Y4agagBiU1AoZ6My/vE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729615AbfKVGP5 (ORCPT ); Fri, 22 Nov 2019 01:15:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:51578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729256AbfKVGOD (ORCPT ); Fri, 22 Nov 2019 01:14:03 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6788E2068E; Fri, 22 Nov 2019 06:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574403242; bh=7I440dgsAAXMb1dwZ7WtUl9IFmfO2mQSOAE4QTI4dN4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wMJuvdE89iogC90Vpz+hfYgK5vHuEXfgEsGms4Iqv71Wsa/LO4JVaRMfS4Gb1oza7 OPbo8+bLh7FKl7h3Me5IepHw0aUgcZC0WcJISbt0a+vt9MsKDatdOqgKbSj5EJjCNZ g1fyDehufF9Cd5OyNahY2mvvBZW8Qz4fY2VQNu5A= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Olof Johansson , Huang Shijie , Andrew Morton , Alexey Skidanov , Linus Torvalds , Sasha Levin Subject: [PATCH AUTOSEL 4.4 53/68] lib/genalloc.c: include vmalloc.h Date: Fri, 22 Nov 2019 01:12:46 -0500 Message-Id: <20191122061301.4947-52-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191122061301.4947-1-sashal@kernel.org> References: <20191122061301.4947-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Olof Johansson [ Upstream commit 35004f2e55807a1a1491db24ab512dd2f770a130 ] Fixes build break on most ARM/ARM64 defconfigs: lib/genalloc.c: In function 'gen_pool_add_virt': lib/genalloc.c:190:10: error: implicit declaration of function 'vzalloc_node'; did you mean 'kzalloc_node'? lib/genalloc.c:190:8: warning: assignment to 'struct gen_pool_chunk *' from 'int' makes pointer from integer without a cast [-Wint-conversion] lib/genalloc.c: In function 'gen_pool_destroy': lib/genalloc.c:254:3: error: implicit declaration of function 'vfree'; did you mean 'kfree'? Fixes: 6862d2fc8185 ('lib/genalloc.c: use vzalloc_node() to allocate the bitmap') Cc: Huang Shijie Cc: Andrew Morton Cc: Alexey Skidanov Signed-off-by: Olof Johansson Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- lib/genalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/genalloc.c b/lib/genalloc.c index 38764572ddde8..e3a475b14e260 100644 --- a/lib/genalloc.c +++ b/lib/genalloc.c @@ -35,6 +35,7 @@ #include #include #include +#include static inline size_t chunk_size(const struct gen_pool_chunk *chunk) { -- 2.20.1