Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5915181ybf; Thu, 5 Mar 2020 09:23:33 -0800 (PST) X-Google-Smtp-Source: ADFU+vsTdni11lXm3OTW7zuO7UtTip4o0MVfZ/IiOwvRQtlNiI4/UzAxZfx/ZbyGtHRyqNmsY55q X-Received: by 2002:a9d:554c:: with SMTP id h12mr5496711oti.16.1583429013660; Thu, 05 Mar 2020 09:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583429013; cv=none; d=google.com; s=arc-20160816; b=cOY8aFePpOE/BhriXltwcDU0BlAaeyaZB1Lgk5ddGDO8a7e53tUHERipWQJBT5Koa5 ngkEBM2P+c9qC/KsGyBVBKVQ+hHsfYhhppaMkC3JCbT3ySrnJa8mYlSelf//pfnTWV/O vdyD2phqqvDFeUIag1MlcMfA3ichbyK5X6i5hXop2cHZMmpzLHMc56cRJJxjyfB6s6TG czc0PZXLUOkW8c1WKKxaVsA39egL+K0V1GcBomPtmVPQJEKy57eNMtw26qt+GXkUEA9G 0xPi5hbm7uAutDoJDMUVDBP3+6wIXnF638yLU3vOg1Nysi/ozU5oOwPHTjQtbBWVmI0J twZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fYgwNPn+hzRISUrcnyS4RtnmnpZ3Kb0VaVci8GbrKTU=; b=bsP1hChteeO5oTcRXR15FHToTDbxhwuVgX7yBP8aT+PDCh9+FiUXtYU7MmKGrE4pVz D3E29ewpinllb+GgxcNP5lasyUrLUO5+Abu13tGHutcdStcRicozSkK0FxOfGDk3FIIe ybTDa7s6RdZa2kZZjvLlZZ509ugXjwpmsrUbkEPDW0JfgZqvjBlBrtloU3zQpLFDAItu j48LjJF75Jhy/YpyhuLKNHcAIM5PyYU05+gB9MpbU+loI4h6wycRR4SAWfD51J+9+roK 99foHbFMOcJJ55AxmXObpdW+fWGKBiEVOQGOpuDbWdu4kxCNSTAMbJ/L7niNhYNemc1y NJSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=o3YE+cY0; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j184si3716842oih.216.2020.03.05.09.23.21; Thu, 05 Mar 2020 09:23:33 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=o3YE+cY0; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728083AbgCERW5 (ORCPT + 99 others); Thu, 5 Mar 2020 12:22:57 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:52955 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727528AbgCERW4 (ORCPT ); Thu, 5 Mar 2020 12:22:56 -0500 Received: by mail-pj1-f68.google.com with SMTP id lt1so2763310pjb.2 for ; Thu, 05 Mar 2020 09:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=fYgwNPn+hzRISUrcnyS4RtnmnpZ3Kb0VaVci8GbrKTU=; b=o3YE+cY0AMvX9FIW61axswC5hLklVI8JTAIAQgcBVazuzotTqc/h+Pg/g6abfRuyzX 4tXglOcKGcpc3Vagoluun7pQ18V4NCAMAXN4KVIey9I3n/1BsqLmzHVTuYyPZDoMVbS9 GO/1VbUKbSM4tglRQh3iDgaRKj9fi/5oH2waIvdNhUu7AFyImdXwXpx21mwDy2i4i583 gsNE50sIgAG7q8VTCuKUIRa9C0XTWAXjU/lPN0+zsdp6Mhxfvpxo9x0ciDBWiSofPoLW XYl/9twPKE5N9aeDYfS3VDDx0eVriYJZRqtpPPdiX7+DsxzXzILz+SDuaSXU9Xn3dwjf PB3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=fYgwNPn+hzRISUrcnyS4RtnmnpZ3Kb0VaVci8GbrKTU=; b=e5qBgvG3pjkcHziZd/qL5JK2bsmwTm8gMTpo0m23xE30zicoxT4X+YfK76axvV4L3E Trogr6yW0cY6mqC4Mn6mowOWMaXKHJXMbTjwOWHxlxWJXc7AWtkAxsTbeTAQl/QlpiVy 7qUmGpBlgEvHH+wYaN+Qwr9ranD5AsQLcxgkQJhTmqCL5r8Xibet3Mn7CC1FCu2T/MjU Uwfr2zzxpCN3V9wx2kuhnO8srE/h7Y11z/eGDlMipSkZPdBrUbDuLh+zCpc6PqOuwTLf rvPVK0QLZoY6axHoUcTMufYMEqJk69jAiOnOUmnM+9uAQKaCA5Iw+U7/zblhjXCieHQM RffA== X-Gm-Message-State: ANhLgQ0yMRb8fnUGSUuu5z35rMEsH6fXNNNJo0kwXXcK591aTKKTcSGe zUq9EI+UhzfkHNvetW+IHe9WNw== X-Received: by 2002:a17:90a:a616:: with SMTP id c22mr10057159pjq.47.1583428974706; Thu, 05 Mar 2020 09:22:54 -0800 (PST) Received: from localhost ([2620:10d:c090:400::5:6216]) by smtp.gmail.com with ESMTPSA id 9sm28532487pge.65.2020.03.05.09.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 09:22:53 -0800 (PST) Date: Thu, 5 Mar 2020 12:22:48 -0500 From: Johannes Weiner To: Vincenzo Frascino Cc: cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , Vladimir Davydov , Andrew Morton Subject: Re: [PATCH v2] mm: Make mem_cgroup_id_get_many() __maybe_unused Message-ID: <20200305172248.GB2508@cmpxchg.org> References: <20200305164354.48147-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200305164354.48147-1-vincenzo.frascino@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 05, 2020 at 04:43:54PM +0000, Vincenzo Frascino wrote: > mem_cgroup_id_get_many() is currently used only when MMU or MEMCG_SWAP > configuration options are enabled. Having them disabled triggers the > following warning at compile time: > > linux/mm/memcontrol.c:4797:13: warning: ‘mem_cgroup_id_get_many’ defined > but not used [-Wunused-function] > static void mem_cgroup_id_get_many(struct mem_cgroup *memcg, unsigned > int n) > > Make mem_cgroup_id_get_many() __maybe_unused to address the issue. > > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: Vladimir Davydov > Cc: Andrew Morton > Signed-off-by: Vincenzo Frascino Acked-by: Johannes Weiner Thanks Vincenzo.