Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp774786img; Fri, 22 Mar 2019 08:17:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrWogJEtx8kCW0DWuSkw6/Y0JCvSF7R9tYeUL9662azJtHObkZSPBAhtC5+7ka55ivsiWi X-Received: by 2002:a65:5184:: with SMTP id h4mr9460029pgq.32.1553267876150; Fri, 22 Mar 2019 08:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553267876; cv=none; d=google.com; s=arc-20160816; b=oOf7N8HvJBPXF/rBOYAkPPBhCBHK1KqBijmamMSTH6kMPjjDB9PxthAtfl9Fmfg8Fq 7GPTaYQVrIITDdULtUQA+ZYA3eh5zTX83+v3Vy4OWyutqUjM8OJwfDKJzUtusag75nig k0949w6g5nsXtGleIm/05XaM3GreSdeWWZ3ysXmb73CsbFFP+cF/tuuTVWcZUg+bLU+C DKv+1TSc6zbGvuhROqFkMD+H5VhFNmL5rXpUgRk0zxhTbSwJ8TIRozaq9IelFvGMp+tB EYSfovY+SVtX7/mpll8SDgehSRVq2WbRUk8oDRejRwQy0F0C1Hf07IJrHdjLJxRNkEDC iZbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ywL9z7ntA6u+x6YmbqlJFZmhar9s03dzPgwmh4x78os=; b=iutjCiw6SF7El2Z12dgcJOJadYL8QO/RSM6ZwTiUJL7jrMovnC+w/Nv7u4IALtyrRo uFDknntYrzxlMu0goZp7O8KL8VbFGZP4g5FlRcBQsrYf/Ld/bXJnt4pzeYS70FARM892 c0fZHvxGvCb8C2BaZHHFuyPnzIENSnnTNOQGCRTs9fNu27nxZ03b55jVy3Qjkp8Vv23H hnilw+ubfRSsQ0cMRV1gryNITNjiwgUV+SRCI1fxe4lrDgjqYUOjVLpt0djhwogh5YAX gh8UzhSIgSpp+CS0iBoQDi/p2jMbnxBpcoWZCJlSG62I5gFsiIAAjYJsxh09RhsRkY3J bsrw== ARC-Authentication-Results: i=1; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si6830890pfj.186.2019.03.22.08.17.37; Fri, 22 Mar 2019 08:17:56 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbfCVPQy (ORCPT + 99 others); Fri, 22 Mar 2019 11:16:54 -0400 Received: from relay.sw.ru ([185.231.240.75]:46650 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbfCVPQy (ORCPT ); Fri, 22 Mar 2019 11:16:54 -0400 Received: from [172.16.25.169] by relay.sw.ru with esmtp (Exim 4.91) (envelope-from ) id 1h7LuX-00037y-LP; Fri, 22 Mar 2019 18:16:45 +0300 Subject: Re: [PATCH] fixup: vmscan: Fix build on !CONFIG_MEMCG from nr_deactivate changes To: Chris Down , Andrew Morton Cc: Johannes Weiner , Tejun Heo , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, kernel-team@fb.com References: <20190322150513.GA22021@chrisdown.name> From: Kirill Tkhai Message-ID: Date: Fri, 22 Mar 2019 18:16:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190322150513.GA22021@chrisdown.name> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.03.2019 18:05, Chris Down wrote: > "mm: move nr_deactivate accounting to shrink_active_list()" uses the > non-irqsaved version of count_memcg_events (__count_memcg_events), but > we've only exported the irqsaving version of it to userspace, so the > build breaks: > > mm/vmscan.c: In function ‘shrink_active_list’: > mm/vmscan.c:2101:2: error: implicit declaration of function ‘__count_memcg_events’; did you mean ‘count_memcg_events’? [-Werror=implicit-function-declaration] > > This fixup makes it build with !CONFIG_MEMCG. Yeah, thanks, Chris. > Signed-off-by: Chris Down > Cc: Andrew Morton > Cc: Kirill Tkhai > Cc: Johannes Weiner > Cc: Tejun Heo > Cc: linux-kernel@vger.kernel.org > Cc: cgroups@vger.kernel.org > Cc: linux-mm@kvack.org > Cc: kernel-team@fb.com > --- > include/linux/memcontrol.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h > index 534267947664..b226c4bafc93 100644 > --- a/include/linux/memcontrol.h > +++ b/include/linux/memcontrol.h > @@ -1147,6 +1147,12 @@ static inline void count_memcg_events(struct mem_cgroup *memcg, > { > } > > +static inline void __count_memcg_events(struct mem_cgroup *memcg, > + enum vm_event_item idx, > + unsigned long count) > +{ > +} > + > static inline void count_memcg_page_event(struct page *page, > int idx) > { >