Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp597461ybm; Thu, 28 May 2020 10:18:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhntb5n14ULVZ5TCa2p4FWlzNE7eaW9f/79Qmx7R2ieO0XpNKCfCKszdAvyTVjC8NRK4lO X-Received: by 2002:a17:906:f9d7:: with SMTP id lj23mr4342015ejb.218.1590686330658; Thu, 28 May 2020 10:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590686330; cv=none; d=google.com; s=arc-20160816; b=GjdSkrSZHppXg2e9Z8hi3kSObuzrMse4wgESjXFPy1bnU8hH8xyS9AU8f6+2dtCgzQ DHUAQYJiEUfsDn+ONaCq4vHRDEmzinIw1jJ89HRPCs+vMPvp78kyMLSCg57dHucNBWRp cQfkvKeQs03uiVlcPEeU8QADWC67Y6HvSwJee5+bFGd4IA0hvHnvMNP5QmeFqAfvj/Hf 8InepRlu/PYT9Qf2URZvTGrgLhRUwou9KUDJfWPVku3ORQt/RcZkpBK4W+fTLzLSqI+P di2C3koaeXAjNr9hGkaaWZlnlT3ldmRdwSBgDhfwEge5etg54KzDSNeuLQc431vXhKgT mh7g== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=atthkvZPtmuffgqI3U1N92nhhfohScsuYraFPx1a33w=; b=qwX5WuYhRazPvFuTZKpbRCxMXHASv4Yb8k/DUOSV7tnHRrRVw+ZfohXgaFGO34lFQI I5EBb3cmrl9LhuArkgRt1xt7xWOZels/luaA53/0AdtLqFo+FLJPAAcQAoXxs6rMksY3 Pn5WENaD2PRwPRueODY+5erGxy0tgt0UOim65wU4/Z6AeKpqbfsvoSjocOEz+WXSVlBe 7rIZZU/O4hWJKAcHNIuPnfbZ7RnTqkUQ5EmfRPUaZ2JbfDHce/uFTxs+q8c5gajBV3+r MthfHIzACY3LXOWmUKRQmGAgVMhSfPNTBYQ6fCie3Gx32YiTHXp3PMbHEfMCEegTO3fN H7vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=etNjUDmY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t11si1676254edi.460.2020.05.28.10.18.26; Thu, 28 May 2020 10:18:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=etNjUDmY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2405445AbgE1RQQ (ORCPT + 99 others); Thu, 28 May 2020 13:16:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405372AbgE1RQN (ORCPT ); Thu, 28 May 2020 13:16:13 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2EADC08C5C6 for ; Thu, 28 May 2020 10:16:11 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id g18so629914qtu.13 for ; Thu, 28 May 2020 10:16:11 -0700 (PDT) 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:in-reply-to; bh=atthkvZPtmuffgqI3U1N92nhhfohScsuYraFPx1a33w=; b=etNjUDmYG/GoUh6tlvW65FzID7MhbLN6fmu5w4+qhKKoJPNlpoymnwadrQfmgoqUiQ lRYk6V4zjlAp1JoiKlZG7EnTqD9m/LUK2LUxhTjK6XSYT1Qm5Wm13M/uiw0pbGdyJz84 G4lqCSxJgN5+v+05NyelPzHo0kpcv6Ih5o4w6a6n68b318tTQF7/zNt8STf2OTad3Cx6 c+5+5OIB9NVG04+b0XA4N+rWS376QGJKQC45cnbq29In09VIZYjftadLqnIw8Jro0HHB Uzpsy0cJlADEg5EH40MR2pIpshdxFwaahEEMvaLa2M1R8R0GrhmwOUGvKvbY4ZaT5aVC /H2Q== 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:in-reply-to; bh=atthkvZPtmuffgqI3U1N92nhhfohScsuYraFPx1a33w=; b=kSSh/MbuZMsb2IK9sZVZeftT+xuSl8GdfPFBUyHt24cgG3m4LHfQrbjf97BYErxXVi P9w8jRHoFvZnEs6USmMBtqbRcz25qcRpbpkP+PTx7inxC0l6GCXcswTzhwx22w89sLt3 6Np4XYqivgiRDBIyvHjpt2B7DYwk6hlq+xQ0ju0VjiA6F/HCAM1HADaH2NeIjcxCY6hJ p5/nO40orAQks9ZEHL9nFS4TGrBsVs8UDfawR8Zlc/JKVKISgWxcy/C4zWbm3DAcUZ81 6YRSXSNJae2+Qkss4Sp4xqUhfGOxwZs+hZjqO2DzIPRHUqX5+WZgHSFcs/IzPQaVcEGH n09Q== X-Gm-Message-State: AOAM530dEngKWJZ9dYtF1M5FY5c/ns5x153tcZJOCbQKJOYM+8vDmdK/ FC1KaZPB9em3c9hzwYf2SaeL3g== X-Received: by 2002:ac8:7112:: with SMTP id z18mr4329049qto.274.1590686171203; Thu, 28 May 2020 10:16:11 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:2535]) by smtp.gmail.com with ESMTPSA id 10sm5614427qkv.136.2020.05.28.10.16.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 10:16:10 -0700 (PDT) Date: Thu, 28 May 2020 13:15:43 -0400 From: Johannes Weiner To: Arnd Bergmann Cc: Michal Hocko , Vladimir Davydov , Andrew Morton , Stephen Rothwell , Joonsoo Kim , Alex Shi , Hugh Dickins , "Kirill A. Shutemov" , Michal Hocko , Roman Gushchin , Shakeel Butt , Balbir Singh , Chris Down , Yafang Shao , Tejun Heo , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: memcontrol: fix an unused-function warning Message-ID: <20200528171543.GB69521@cmpxchg.org> References: <20200528095640.151454-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528095640.151454-1-arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 28, 2020 at 11:56:26AM +0200, Arnd Bergmann wrote: > On NOMMU kernels without CONFIG_MEMCG_KMEM, we now get a harmless > warning about an unused function: > > mm/memcontrol.c:2595:13: error: unused function 'cancel_charge' [-Werror,-Wunused-function] > > Hide this function in a matching #ifdef. > > Fixes: 5bd144bf764c ("mm: memcontrol: drop unused try/commit/cancel charge API") > Signed-off-by: Arnd Bergmann Acked-by: Johannes Weiner Thanks Arnd!