Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5975745ybf; Thu, 5 Mar 2020 10:35:05 -0800 (PST) X-Google-Smtp-Source: ADFU+vsmCxLjt3qjDSNKc5D88okbDzBLHQ8Uv4OlL3NLSTB0UWmO3BakoV2b0AUnASkOq78p4MgQ X-Received: by 2002:aca:4b93:: with SMTP id y141mr342250oia.18.1583433305495; Thu, 05 Mar 2020 10:35:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583433305; cv=none; d=google.com; s=arc-20160816; b=OqPA4fMOp7EyS0hRkpogUuJGug2p7LVghF0hWOLAQ+0FCBQmUoXuld23ychMJhjMcX odpFyTSiLo4PwrE94fYppOUztww/GO7okNwc6ljSlNmyMI1mXGRCNJ8PKVWPa26mdLbq +Mjb5pWsmyhDIMiTxOXP9Ocr4Sj/qIq0Kj00eB8XyZZxve6/wJOk1TeYGMtiGI1wt89e oiiyqUVVcDLxfVd6tHppsuhOvkL5mtMihAi2bK8XV5DlBFTJobC+SGCLyKSYhLiYWw0L RxIWNUPcAL8fKbldk9AzRT/IJpjD527WQSrzEnck/aEgaElsigP8DS1U+DAtERI3v/w2 kbPA== 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=wJ+dZCI2bt1Xd92Q8gcINy/Mjz00mboTvZOgg2MiZ/Q=; b=WwSZjCv0RuN7rQtF5kjihCbxQcAsiXFXdcQRtBtuxJB94/K2d+8NTKvlarVjL2HXtg e3THW7trU5F6CYmfjzLm9ClZvmajp+vatKvKKpung7WfNUcPY0UgHc/Uq4cL2MCBLyy4 /W9AywVR4FsBZQJqd29sWgBAzxEtyEYNxlh+MKr9etRqkKOXu87ZNXFQ5P0d3/yyDfhb WVZe72jrpXuV2MVm0uLaJ+IMRss2JLt7/wgqTlZoCTMWxnq45Ey7yyyDPeEPJDvz1DhT /kF/iB4mdBKmwn4rdU78wq3r7RadvBi4wsUSfAI4KSktQLH1uJ29L7T7Hq11It5kEx2C C9Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=Az2s3X85; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f136si3646172oib.88.2020.03.05.10.34.52; Thu, 05 Mar 2020 10:35:05 -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=@chrisdown.name header.s=google header.b=Az2s3X85; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726079AbgCESe3 (ORCPT + 99 others); Thu, 5 Mar 2020 13:34:29 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40789 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbgCESe3 (ORCPT ); Thu, 5 Mar 2020 13:34:29 -0500 Received: by mail-wm1-f66.google.com with SMTP id e26so6820669wme.5 for ; Thu, 05 Mar 2020 10:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wJ+dZCI2bt1Xd92Q8gcINy/Mjz00mboTvZOgg2MiZ/Q=; b=Az2s3X855Yee9bmXQu46ijVabcCPfzqRWC0fXIWABql9qvdRJREScafWu3/RuhgSZu j4zu1EG9DYlfH1ymfLDTZX07SiFFS4XIvrkPVnNZt41vphnMSbVDpEJJ5ssq1hWz3/L/ xc3wSL5sORqcP4T1T/bEHP3MxEhe85fLbf6ZQ= 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=wJ+dZCI2bt1Xd92Q8gcINy/Mjz00mboTvZOgg2MiZ/Q=; b=XPh7cGJklqG2qYDhdyLMt+YaeZZNT1dxniDQH3o0toLB/noN7w3mJgKdn84yBVwekQ icXv+gdCDT9rSexyZLICC5fDz/YtYLiZKEbomvkt8MUyUEHCnu6A7i7GMCRstBTT6klq fPa2pB2dxXzZd9Vcw87yhCN8S9WBXIkmcsCdGp14wcyHzgITA64OPhwVTyQsE0t7hVKi N+/OlbPQ4P/2li72xtz6apjwkyWNevyLYrAq2YzdhlomtWcHiSIGzQWWO6wOroa/k1Ms r7GVbU2PyqbYlBxJwcWEpyXQMFOMMi5ghGOQCZHctyzsC6erFRJIjwdFUFHfiIF+IWcp lYSQ== X-Gm-Message-State: ANhLgQ2pMuJAYCmPtDb5TlfF7k3g4cGLY99QInIDCqduTtuns23uZOSs DdxHqJ0BNYWhJylRPmX8afAmAw== X-Received: by 2002:a1c:7c08:: with SMTP id x8mr102447wmc.71.1583433267434; Thu, 05 Mar 2020 10:34:27 -0800 (PST) Received: from localhost ([2620:10d:c092:180::1:6808]) by smtp.gmail.com with ESMTPSA id l4sm47313781wrv.22.2020.03.05.10.34.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 10:34:26 -0800 (PST) Date: Thu, 5 Mar 2020 18:34:26 +0000 From: Chris Down To: Johannes Weiner Cc: Vincenzo Frascino , Michal Hocko , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vladimir Davydov , Andrew Morton Subject: Re: [PATCH] mm: Make mem_cgroup_id_get_many dependent on MMU and MEMCG_SWAP Message-ID: <20200305183426.GA752201@chrisdown.name> References: <20200304142348.48167-1-vincenzo.frascino@arm.com> <20200304165336.GO16139@dhcp22.suse.cz> <8c489836-b824-184e-7cfe-25e55ab73000@arm.com> <20200305160929.GA1166@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200305160929.GA1166@cmpxchg.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Johannes Weiner writes: >I would ack a patch that adds __maybe_unused. > >This is a tiny function. If we keep it around a few releases after >removing the last user, it costs us absolutely nothing. Eventually >somebody will notice and send a patch to remove it. No big deal. > >There is, however, real cost in keeping bogus warnings around and >telling people to ignore them. It's actively lowering the >signal-to-noise ratio and normalizing warnings to developers. That's >the kind of thing that will actually hide problems in the kernel. > >We know that the function can be unused in certain scenarios. It's >silly to let the compiler continue to warn about it. That's exactly >what __maybe_unused is for, so let's use it here. Yeah, this is exactly what I was trying to express in the first one[0]. The fact that this patch came around a second time, as expected, just solidifies my concern around the waste to human time. I would also ack a patch that adds __maybe_unused. 0: https://lore.kernel.org/linux-mm/20191217143720.GB131030@chrisdown.name/