Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp254701lqb; Tue, 28 May 2024 14:45:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlb57s9Rf9SG8do4THuF7TbI6Cr7bKQZFwHsWkV+bL6LvcQZcebtQoyoOq6NIjJ6c0gR8lv/iNazJeXO6KDuL4bbDNhqDwKjyrZeOtjA== X-Google-Smtp-Source: AGHT+IE1LsCg/vOERp93hdSSdf0wniGxv5wlMtGbRKtvUZAN45HCDyN2jZx7o8AnsYSh30c+tS2t X-Received: by 2002:a05:6870:40c9:b0:24f:e3f0:ef60 with SMTP id 586e51a60fabf-24fe3f259e5mr9269641fac.0.1716932711095; Tue, 28 May 2024 14:45:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716932711; cv=pass; d=google.com; s=arc-20160816; b=dV9NG7gDsNs868hefS60SgYI6j7NcLaoSI2JrAj8WSjrBP9NE2+wrc3XeKob+CJo2o dCLNlqS0MsfzXbwDargBegxAu6a0dLGq07hlzGo7JtDcVyV0hVNp6uDE/B8eNO/OrOSr fIl+bQB9mq/amgs3HCAosrb6R65P1PWS2QUAAlZby+MDLhQMMQK7qgwzW9T3rrX4B1VI 6xML/FkztKhf2qUF+CbaNX6P96ePcYiutcdni3i/hBfO6XpKYNz1+ImKWKLpXT6MANuv 6yeqs3RlFa7RIGt25TJbVHqGnbZSORC3I247jZkrPSePFu/3b8PpodNrLhYq5SB/inmj tdDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=f4ula8SYVBjOfrvxjW/OkqDvPiEodD69W30PbWhQWRY=; fh=QUOYkrhvYyk//ZoGwHdb2m1c7vfsqYd5CGnq47wy3QU=; b=f1Uv+EBALcxw8V5Cjzag/r03bCcwUAGO7etplpZ5RTKui+LhmHZX6UBMNdP/f5A/gj TtfCFPXyRsHenwQqhRtIJm+6ZdKDWp8ZilPdS0h495hoIhAWfKWRjYCbofFQLn3izp/a M/9dC1dmePpxccWhvnB+3Kx5bGr5WaLni/eyQSrNuwfSSfp50noUR+9jugDhf9ZHx6xQ ROFL96BUW+zzbyJ/8eQB1eZXBkG+3gUtx0/XVCb4UEJp3pskpieZ6eVJTpNtGw6rZ1XP FPmD5SVCW5SRbzU6Rc57tqB31hk//vzoEs3bgvNd3R51UTdkLci3zxnixFn0j42Y4gyu er7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jYmTP6P9; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-193131-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-68222ea5d93si9258961a12.223.2024.05.28.14.45.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 14:45:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193131-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jYmTP6P9; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-193131-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0150B288847 for ; Tue, 28 May 2024 21:45:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3A5A13E059; Tue, 28 May 2024 21:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="jYmTP6P9" Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFC5C17B4E7 for ; Tue, 28 May 2024 21:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716932702; cv=none; b=YMhM9ajZM8goJ5pa2i25tXJk257e3/gM7VF2MpqTISOwhShwFWXwCVDo66OvghTin3MZ2ALDhU3yJcm8q0eGLstQWR3YM5JScRlegndXLUMIxKFcvOIhWZIViiygLHh9pCxufeu6tOZqWL6cEyDASKgFBT0tnd6JBUOsESdDpdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716932702; c=relaxed/simple; bh=VTtPrR4KmhUjYljEb8kfbrxj0xWTE0j4toW05KrtPrA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eMfsp7Ip2fEG5Y+AnxNfCJFQJ5B2QDpQuA5dd9Oafr4TuLhNMpocW0VLYq7rFTvDzumy6Z7Yqs2I7Bsh2CBzLejPspJMRArTW+NPhF34CIns2jAkQhJxRuTfk/jDcjrnFvjU6ApvI/9pVsDWij/7ZfmPwWCA8Znw8100medlK4c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=jYmTP6P9; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: akpm@linux-foundation.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1716932697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f4ula8SYVBjOfrvxjW/OkqDvPiEodD69W30PbWhQWRY=; b=jYmTP6P9ngp+GGp/Jp43SJZqmrpNAcaEPMeezUJYIj/+lpi5MWRiUA6ciB715FDT4xAecG oonitBUfENxBApr2YtRZE8X6UqIOqFl2SnRkXf/stwdJ2BGqowM3n9CGd+fNpnm1MeTZg8 EXI6IPdTuZauhLzmc/DCB/RMi+YuHK8= X-Envelope-To: muchun.song@linux.dev X-Envelope-To: hannes@cmpxchg.org X-Envelope-To: mhocko@kernel.org X-Envelope-To: shakeel.butt@linux.dev X-Envelope-To: willy@infradead.org X-Envelope-To: linux-mm@kvack.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: roman.gushchin@linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Andrew Morton Cc: Muchun Song , Johannes Weiner , Michal Hocko , Shakeel Butt , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Roman Gushchin Subject: [PATCH v1 11/14] mm: memcg: make memcg1_update_tree() static Date: Tue, 28 May 2024 14:44:32 -0700 Message-ID: <20240528214435.3125304-2-roman.gushchin@linux.dev> In-Reply-To: <20240528214435.3125304-1-roman.gushchin@linux.dev> References: <20240528202101.3099300-1-roman.gushchin@linux.dev> <20240528214435.3125304-1-roman.gushchin@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT memcg1_update_tree() is not used outside of mm/memcontrol-v1.c anymore, define it as static and remove the declaration from the header file. Signed-off-by: Roman Gushchin --- mm/memcontrol-v1.c | 2 +- mm/memcontrol-v1.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/memcontrol-v1.c b/mm/memcontrol-v1.c index 3972172f83624..b69181322fb18 100644 --- a/mm/memcontrol-v1.c +++ b/mm/memcontrol-v1.c @@ -201,7 +201,7 @@ static unsigned long soft_limit_excess(struct mem_cgroup *memcg) return excess; } -void memcg1_update_tree(struct mem_cgroup *memcg, int nid) +static void memcg1_update_tree(struct mem_cgroup *memcg, int nid) { unsigned long excess; struct mem_cgroup_per_node *mz; diff --git a/mm/memcontrol-v1.h b/mm/memcontrol-v1.h index 7be4670d9abbb..7d6ac4a4fb36d 100644 --- a/mm/memcontrol-v1.h +++ b/mm/memcontrol-v1.h @@ -5,7 +5,6 @@ #include -void memcg1_update_tree(struct mem_cgroup *memcg, int nid); void memcg1_remove_from_trees(struct mem_cgroup *memcg); static inline void memcg1_soft_limit_reset(struct mem_cgroup *memcg) -- 2.45.1