Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5747001ybf; Thu, 5 Mar 2020 06:20:52 -0800 (PST) X-Google-Smtp-Source: ADFU+vs/ZeSB6M/5WaV7djMshNLMRj+ILJhbv50XRH4/CIh90HJ4iZRM5N7ovrz4OhCk8p5eiuCr X-Received: by 2002:a05:6830:168d:: with SMTP id k13mr3389772otr.208.1583418051927; Thu, 05 Mar 2020 06:20:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583418051; cv=none; d=google.com; s=arc-20160816; b=XqxA1k3IP9mwuIdP7bBznordywQxiJ2UrCZaHi5NzeRHjNeVZLbqxnQRq8RPBzIlZl xT6AAt9RbySdlc4mStFkxno7Wf81A5fNLIGvy5UA9r/sFAsvqIxWnZ9r6eWvdFbV81b1 SO+qv9VQn/taiOw+joaUtOoUosZC6AtDtzeE0rl7M3ww+YWclJFaU4xP3M+lKQeBSSm4 lTORo9mF9hRvLDkjnw4GyisNzjpKDRXunvwBJK2r6RyPtmCrPuW4VDRWkOx8x5d3lpS7 NjokQGJnGEZljEgOOvvf4M1QW9/jRn6/sIq2dJCtZ3PBBKCpgKFVwCt5Xuv5GAx7aVKP 8u/A== 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; bh=rWJ2ZlSxIkaxSxkCwz25+2vXHAwKGZKzs8QIO832cQQ=; b=Un6MFCc3SZpUrxP4tCzO6WSYcP/Tv/ejDbwkLK/aSyNQTvz4JuiTUc5algBHZAmFhf Sox/0HlX2hwARaipru0yil444oRIJfdCWNLclQpKtJe//vFtsSQWA+jC9olzdp09OZXw I+CbungJdHID6ZpMqjCDRV9ll/38fcgOat3btDf9yIJ0V+1Eyct+2CagYy0Phy2vTzca N1RQvjXs63UZpeAY0RLkBvt3EkO9QGa9iaTmb+IoE/M6jHiGXRy43Da/XPtav9gXfgi8 nUPzR4gsGpSFA/BVJyYptiW+Es9QzI5YpRF4DsU3Q2HJKh6bxvZKZhj7BSKc4SJJ5c/a dKTg== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j18si3645229otq.93.2020.03.05.06.20.39; Thu, 05 Mar 2020 06:20:51 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726233AbgCEOSv (ORCPT + 99 others); Thu, 5 Mar 2020 09:18:51 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38249 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbgCEOSu (ORCPT ); Thu, 5 Mar 2020 09:18:50 -0500 Received: by mail-wr1-f66.google.com with SMTP id t11so7232518wrw.5; Thu, 05 Mar 2020 06:18:49 -0800 (PST) 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=rWJ2ZlSxIkaxSxkCwz25+2vXHAwKGZKzs8QIO832cQQ=; b=tH0ci005uLQQ/UHnvPeaL17EVOJawtcI6QorU0/Ssq0k9UjR+9IB5wRzxQcm6rPjVF 0Rv5dpq/YRL0guHqS1cFHyhg7v5SnRQWFwodkpMK43Ejf4a0TibAtFbWoBcE+wV6Q9F+ hsJosZh/8AMDDdZsAFBUA584XGbg71KFrDnAIV2JMbcJmSLyDfO2OBvZ1Uc3frZWXfDW 3uJbWbTEcsMIGAe+0DYD9B8/YL5O0XfQIfNIl8jNmINC5vREo2p0LaPv39vqYVn6MmuY Yfjkr9yhpuxD2cd9I6PA+TnbrpT01YvDk5BXkUFTvTgSCWExFsJ5U+flo7OU6xsJEhHv eIfA== X-Gm-Message-State: ANhLgQ0Q4P0mMwUL3u72lgMtEwIJ7PtbcAzu73mdmPrYNgv8Z8I2O5DS WNF1c3S7ruU9mr4k3TI+ZPo= X-Received: by 2002:adf:ef92:: with SMTP id d18mr767658wro.193.1583417928448; Thu, 05 Mar 2020 06:18:48 -0800 (PST) Received: from localhost (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id f17sm24030443wrm.3.2020.03.05.06.18.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 06:18:47 -0800 (PST) Date: Thu, 5 Mar 2020 15:18:45 +0100 From: Michal Hocko To: Vincenzo Frascino Cc: cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner , Vladimir Davydov , Andrew Morton Subject: Re: [PATCH] mm: Make mem_cgroup_id_get_many dependent on MMU and MEMCG_SWAP Message-ID: <20200305141845.GZ16139@dhcp22.suse.cz> References: <20200304142348.48167-1-vincenzo.frascino@arm.com> <20200304165336.GO16139@dhcp22.suse.cz> <8c489836-b824-184e-7cfe-25e55ab73000@arm.com> <20200305100023.GR16139@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 05-03-20 10:46:21, Vincenzo Frascino wrote: [...] > I am aware of this. I was just exploring if there was a possibility of > addressing the warning, since if we leave all the warnings in scenarios like > randconfig can cause confusion in between real and non real issues. I would very much like to address _real_ warnings. This one is just bugus. I do not see a fix that would be sensible. Wrapping the helper by ifdefs is just going to make the resulting code worse because there is nothing really specific to swap there. Marking it __maybe_unused will just paper over the report and allow the function to bitrot when it is not used anymore. So for now I would just live with the warning unless it is really causing any real problems. -- Michal Hocko SUSE Labs