Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2055618imu; Sat, 5 Jan 2019 13:22:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN4hbsaZoP+i81UubHEZ5J8AIYoPJX3VLk6R1YLj8vRYVE9nHiNJfaJgr8p+ZJWhXdSasVDu X-Received: by 2002:a63:9306:: with SMTP id b6mr5696701pge.36.1546723367132; Sat, 05 Jan 2019 13:22:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546723367; cv=none; d=google.com; s=arc-20160816; b=D6bDEWjbfU541IngYXMLV2s/U4610Iqq9eX2kTyNZqylbd+5VkXRyYnd8VaKfVIaTG JWE98vabkEtzTkgbbhALGGX3+KJ4eGtWJZfvLRZZYOJUdfTnIwdIR2HHoeLlplIM+HZt mFaFp0EQ5WGwoyn5RvT52s224Iv78GJyI3TzjngulJN8Z+WBzrJy2yh1RyuxJ0yfGEff faETg6QD3vy6W/3HQ5i6RRZJiAwLqZk7UEfgW1eMH4/wjlxClHUlIQGsXVdsYKQA7DZy HCr5PxhC72rMy+ZU1dsAUrjKN1kdUM/GQkjqK4FtAULqaCmAvNyY8sbBkYfVheTeiflk 6WMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=TF8DZUPrmtApW+U4qPG1tASLC2r/54NTnf6VZywr0OU=; b=jykA5d5eCXNGF/WPXvXJHC2vfqAZAejRtS1iyXitOk8hhyPq/S4vD+9yG/Nhm4zhOr l4/uYBVhpXIOe2mW5X+eP9bmclvPucJHidw0yb9+cv7KC52SXSBb4FNnKdvXYRW+jlDc hv8uNEkOMjT/kqWRT3/0ChS+Co+vL4ky3sQy+YEAHiKiWc7/oTL2AtqnrnoLF63DK54G SwiVBb4dm7QvAsMBQ528pO0fp/BV9nBbsvESv0w9ibLOosNqPmlZxmrzuYl9UdJqnqyI cBGSUgJJTLHMZ9WP56uYr347g1tkV2i/USGFWGt/mUeOlIsA1mEmVtmUq7N3cw+u2Fq0 h7dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Gp3ABTyK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si49646137plp.167.2019.01.05.13.22.31; Sat, 05 Jan 2019 13:22:47 -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; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Gp3ABTyK; 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 S1726365AbfAEVVZ (ORCPT + 99 others); Sat, 5 Jan 2019 16:21:25 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46003 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbfAEVVZ (ORCPT ); Sat, 5 Jan 2019 16:21:25 -0500 Received: by mail-pf1-f195.google.com with SMTP id g62so19919786pfd.12 for ; Sat, 05 Jan 2019 13:21:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=TF8DZUPrmtApW+U4qPG1tASLC2r/54NTnf6VZywr0OU=; b=Gp3ABTyK0wqofMcAU5zmRymlC23yRS16nI3/GoGOfbJoeo9jAK7gFkKBJiFAKR3PE8 wZxrrCBxXfhj+k9eseH16XHX5VMZkV7Bqw0FClBYoLgCrtp/jwZ/92rkmZcVicJZRLGR pbdkORZriUtPy3jdA3hT4VsYDS9BCyRs4wgj0IVLaFaIel69kxikQIw8lrIHi16x8MbY Lv57ahuJ4e+gCUQlmcua/Whp72QAVyZKBzRdo5znpMbZsucVva9OAjBjfrC4gkjiTUoV VUUatLh9VHgwhilVNdZSO7/ugJjg/AK0H1n8bPOoo14E4PmKUnYVyl+cxi/rcqACijbB Atgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TF8DZUPrmtApW+U4qPG1tASLC2r/54NTnf6VZywr0OU=; b=HNO28w4DhWKkU5T7d2Ywbuwq/0TW+b1/rpMeRDKgEzp+R11X1bgg0Yjx7VUZ4oN6vs aH5rXID28atSmMb9viu7/UTrHYclXRk+wjZ90LhpgtbgnaXT2VOwjMxqEhG0nV0pdUcu ceifvJNzy2nAZsv6dgwkS6wg6PYhEQcIinT+ADZXTKUS8Wba0z9Wsn1sNR+YTun87ilS Fa/5ddY9yeNz1kXWmjnEUjc9M3rXFYyO4VWLj/t0ZYH9zUCeRGK4eHoHSTeU3DvvMZGy BQYZqHhJ8juujk1Pkl8jYkk69NNxxUHr3pgtXgH+PAwLvAMYYmuUN24QIywTyPPhnMjd 91vQ== X-Gm-Message-State: AJcUukeOXHY1FqKjjxP42RUc3Xn8vdVr66C284ZQ1snnwozXJeYhNVUn cxRWpUHgOHrw0lxcwY7Fab+f2w== X-Received: by 2002:aa7:8608:: with SMTP id p8mr58400755pfn.125.1546723284749; Sat, 05 Jan 2019 13:21:24 -0800 (PST) Received: from rip.lixom.net (99-152-116-91.lightspeed.sntcca.sbcglobal.net. [99.152.116.91]) by smtp.gmail.com with ESMTPSA id j9sm80358474pfi.86.2019.01.05.13.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jan 2019 13:21:23 -0800 (PST) From: Olof Johansson To: torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Olof Johansson , Huang Shijie , Andrew Morton , Alexey Skidanov Subject: [PATCH] lib/genalloc.c: include vmalloc.h Date: Sat, 5 Jan 2019 13:21:18 -0800 Message-Id: <20190105212118.61022-1-olof@lixom.net> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- lib/genalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/genalloc.c b/lib/genalloc.c index f365d71cdc774..7e85d1e37a6ea 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.11.0