Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3553929pxb; Mon, 16 Nov 2020 18:59:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzse9dcqQRkNOpjHDn46U6Bj7IhINnuwCfGO/Va7iSrwwecq3cwdk9LTZwLA/vF21RIXGjD X-Received: by 2002:a17:906:4116:: with SMTP id j22mr17135678ejk.373.1605581972962; Mon, 16 Nov 2020 18:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605581972; cv=none; d=google.com; s=arc-20160816; b=OUkqye4XFPaiyIWOILNSRmDtExjf+RnoCyuSFDU2uDHsSQmEuMOD9k7gPtGRX345yA UfF+IAIApLzjQPcfVqipPeycW2fABUVAlN+Mm4Fx5HJE34Rzpo3RIBPti3MjeczKpDO9 vDlEX3vZWvHKkWgf6LOxD/gLl8ngwjrhDcDyuWoNH+oxmbPUNoSIGmB8+++Bngd6Q5Ni SbJjSwDX4WVmxemOp+xUsFn97/W5/8Oh8LPfUdvM9WXRJoCjgJXf2RRTronkipQ9dUpH GrgOykTTchW8WxjWDV3B70uhY8grc5e/VUJVgVfjMWzJBBJnoeIufvCPptpCG4ncokRp +qyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rph6elS4sVb6X0aZV8oBI4KEro3xkFbil1su2bbIStE=; b=FMVGvVovTNRlyLF/LF9kZekq+oGWBs8LHHlilMmtWpwVBBmK2eTzPW61h7+7blP/wN i1Z+fht1y1RneVRD1muh60C0DPSzmhLcOfopGWStq+Rs41eMvghcdfDL0mGxABygfEDD yPvOfewx2z/BxwDdYWshcV3UrMao6nZYyPMBih+SD8sBKKngKJKQU7XVtHttZtp0rcCY D5/Rz3rVA/J3NLOKidnn/X9yITWMgjN49jbL2aPUJqfAV9n55tlStjt15N7XCdn4PxeG Rpsa90JX7vyFQja1oc2Ccl+IsKOxJKObSBodKtM7D16oINQJ0hkBw8FRptksjOTJUbEJ fF4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=USQyK3bB; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si12571772ejf.335.2020.11.16.18.59.10; Mon, 16 Nov 2020 18:59:32 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=USQyK3bB; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727410AbgKQCzz (ORCPT + 99 others); Mon, 16 Nov 2020 21:55:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727377AbgKQCzy (ORCPT ); Mon, 16 Nov 2020 21:55:54 -0500 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E18AC0613CF; Mon, 16 Nov 2020 18:55:54 -0800 (PST) Received: by mail-qk1-x744.google.com with SMTP id 199so19175341qkg.9; Mon, 16 Nov 2020 18:55:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rph6elS4sVb6X0aZV8oBI4KEro3xkFbil1su2bbIStE=; b=USQyK3bB+z/rsRt1AELXV8ctRWtIiY5icuzdfAECiIyyhTqCjd/cubqHwqXKSUrpNW jS0x+7FDLMQEfX5d7LQRDJHMhIRUHZF7ZyjiIzz9U1hm4GfyOWrcoaA437AVuzPTV8jD gPnd6rltXsXDr1sppsRO9SurjxkcvrJY9DaPtvKkm38dDeNTSA+354EJG7j5ZVdclpAn oz/RVsDsjTwbuaICvAL+c02bw1WRI2G1FJ+tljpDFR8an2UnbZAvBcHpkmo4aS1mSE9w nBDJ91GZEg6FqhfGkMA0vfYxJtfEqU73B3egT2cKvmkDKOWEzPGV2v85V43YHu74tHYP 09tw== 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=rph6elS4sVb6X0aZV8oBI4KEro3xkFbil1su2bbIStE=; b=e1cXfGi0EelZDDCIZL3DCkzrUoE4K0pNQc8qI0XMbNhq2iE3/4DwFCqcvo5Y5x8c7s CpWsPgq3IRxEmJnSxtd1EbSWqpVHVts6JC7itRuytO7pA4BjcJXzSbx4Yddl0rP30MTl U+l4/Y/8/NoGWagaH6U16x98mTaJe+7mMgxXzYJdS2nANC9oKNWkinZZ+cuK06BOgYap Cj17jowHXa8okNS/uZzC1ZHfZBdcPNgaMSxhZq35ot4juhG0wDusRmO2u0jRU8RdrpKK il487YLgOnIarnYyAHI/54LIB9+VlAveW9fSL1IX6pmp9IzzUJX2e/r64NUAlsAGbesJ R46w== X-Gm-Message-State: AOAM532qIy0un2715zRgb5+t8nshbfzyjuwkpslq3YdJIOKS6o2VoDMg laHbFN3l5oykH5uuArasIFE= X-Received: by 2002:a37:8305:: with SMTP id f5mr17316880qkd.209.1605581753676; Mon, 16 Nov 2020 18:55:53 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id r14sm13431270qtu.25.2020.11.16.18.55.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 18:55:53 -0800 (PST) Date: Mon, 16 Nov 2020 19:55:51 -0700 From: Nathan Chancellor To: Lukas Bulwahn Cc: Roman Gushchin , Johannes Weiner , Andrew Morton , cgroups@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Vladimir Davydov , Arnd Bergmann , Tom Rix , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: memcg: remove obsolete memcg_has_children() Message-ID: <20201117025551.GA1103291@ubuntu-m3-large-x86> References: <20201116055043.20886-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201116055043.20886-1-lukas.bulwahn@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 06:50:43AM +0100, Lukas Bulwahn wrote: > Commit 2ef1bf118c40 ("mm: memcg: deprecate the non-hierarchical mode") > removed the only use of memcg_has_children() in > mem_cgroup_hierarchy_write() as part of the feature deprecation. > > Hence, since then, make CC=clang W=1 warns: > > mm/memcontrol.c:3421:20: > warning: unused function 'memcg_has_children' [-Wunused-function] > > Simply remove this obsolete unused function. > > Signed-off-by: Lukas Bulwahn Reviewed-by: Nathan Chancellor