From patchwork Mon Sep 9 16:32:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Michal_Koutn=C3=BD?= X-Patchwork-Id: 13797304 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5FFDECE579 for ; Mon, 9 Sep 2024 16:32:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2259A6B00C3; Mon, 9 Sep 2024 12:32:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 138BC6B0191; Mon, 9 Sep 2024 12:32:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EA6A16B00C3; Mon, 9 Sep 2024 12:32:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id C6C966B00C5 for ; Mon, 9 Sep 2024 12:32:29 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 78F2FC0BBA for ; Mon, 9 Sep 2024 16:32:29 +0000 (UTC) X-FDA: 82545742818.21.994941C Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by imf23.hostedemail.com (Postfix) with ESMTP id 8BD8814000C for ; Mon, 9 Sep 2024 16:32:27 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=suse.com header.s=google header.b=Hx7X9O5d; dmarc=pass (policy=quarantine) header.from=suse.com; spf=pass (imf23.hostedemail.com: domain of mkoutny@suse.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=mkoutny@suse.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725899434; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=qcEdQE9kkUNRmd1oSgPgT8tBtd/F56AnD10peYUx9eU=; b=0kMsVZ6cBTXZ419p6hpoQy0iWsFpdmFhur0WVi28ZXrc0LnTIdWmUYLf7YdF2RyIwLofQh o6rtCkfD/FfY6zFMvj+h4TGop2L6EIIBOhYoLMnfW2aR7g3AOtbzfnfjjDI0lQ7QbI3vuZ jxcSZdNqGXBzkswX0WGwETVNOaVi0Uc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725899434; a=rsa-sha256; cv=none; b=PS6SfvmcqxGEoVslDthrHLtrj2c9GDNhNKYsc67o8g0MJcoUoa2Du70MNnSiv87lA7jvV7 +YptA8WU8U2T6uqcRDoV68vF0HMVe+PKqWuCu1f9LVq5O6+hLufb5Fi0gXIJRhRnsOvWqK OfJiokkQiLrsjmVPxCem9fkQxPQnZwI= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=suse.com header.s=google header.b=Hx7X9O5d; dmarc=pass (policy=quarantine) header.from=suse.com; spf=pass (imf23.hostedemail.com: domain of mkoutny@suse.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=mkoutny@suse.com Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42cb9a0c300so8495265e9.0 for ; Mon, 09 Sep 2024 09:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1725899546; x=1726504346; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qcEdQE9kkUNRmd1oSgPgT8tBtd/F56AnD10peYUx9eU=; b=Hx7X9O5dq+udVtzDwCOqaPG793V7sZZYUn7wtch3PkGiwOjREAOTXyJ8BFuSBf8xXq SI4wwOhbT4H1pZCfjxrBnASKGhAyRvNIWll61O/V747yTSGUe0pbN1xnUN9mHadirg4T 7Vi50w+wZ1VwhQCQPEs00nYB41nAvGlAQI0nUXFSCGjRcJV4vPhN2EhXnvkhK8FjAqNS jacxLMJtYcK4RjTBTzoB4RJKQU93TiYIZ4tfJO7SH1zVdER16xtSExcLD2q/fNBd6SZR icvqw8oWZhQGczBk6M/ktWnMHO20htIvdfWGE71HrgBGRI/g8ZH9+/w2aMS+p8Xa1YwH OLWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725899546; x=1726504346; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qcEdQE9kkUNRmd1oSgPgT8tBtd/F56AnD10peYUx9eU=; b=tuNgRtjGvbv5xpWv19wdcchEUzk8CLk6uzHBu65Dll39/0ZaTHhCZArUxlVXYIC+ZA SNhUBV5yD2lYXx0jEVO0PTfJFHXC2nKC8dgdDQ6wizDzUXhSr52hOiMfb6LHZcNRB35i 8lw5L8bxxrqH74iUo9l+B8vqH3YK9OGen14BTShUf8OFWedDqlDRcOZJNtHGh7ZW3DR7 2UUDD8f0QISZehQ0BlkE/V0Gu1B0oPGPWIef1WIavsLlQOQ6nB3VtTEFi7H1aethboHk zWb5if3CkJMW0ac286sc29LaNw504E5+koeyWg2dA76FBrXSq3XsqQW5IV3/jgDlYr25 s7fA== X-Forwarded-Encrypted: i=1; AJvYcCU1vsP6RhQzwukJMyuoyRtznmMVyKoeEe+m7Rfr5q7ar1creTU3ckTgOe6jVfGBSIHtNGOczlH29Q==@kvack.org X-Gm-Message-State: AOJu0YzGFImpix851aZ8rjpqeP37eIJ0ZDVhjG4dPdMwgKG0dFJYpNsW cX3U1CeuMuBlIK02E+1jVLw5ri2qkYsY8wfs1tjXscyGeBxMlvewWei/drXCqdU= X-Google-Smtp-Source: AGHT+IFYKssoeiQ8071s5mgXvgeKUkJPqXfUO0b5wcMLkjdGWzc7MF/UiF8wCm6ppGL882KotfQOTg== X-Received: by 2002:a05:600c:1c81:b0:42c:bbd5:af70 with SMTP id 5b1f17b1804b1-42cbbd5b273mr10759625e9.30.1725899545970; Mon, 09 Sep 2024 09:32:25 -0700 (PDT) Received: from blackdock.suse.cz ([193.86.92.181]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3789564a072sm6478606f8f.2.2024.09.09.09.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 09:32:25 -0700 (PDT) From: =?utf-8?q?Michal_Koutn=C3=BD?= To: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Tejun Heo , Zefan Li , Johannes Weiner , =?utf-8?q?Michal_Koutn=C3=BD?= , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , Chen Ridong Subject: [PATCH 1/4] memcg: Cleanup with !CONFIG_MEMCG_V1 Date: Mon, 9 Sep 2024 18:32:20 +0200 Message-ID: <20240909163223.3693529-2-mkoutny@suse.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240909163223.3693529-1-mkoutny@suse.com> References: <20240909163223.3693529-1-mkoutny@suse.com> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 8BD8814000C X-Stat-Signature: fngu9ah47sc7xdwtcr3q3ij7dxffp8uf X-Rspam-User: X-HE-Tag: 1725899547-660057 X-HE-Meta: U2FsdGVkX1/8WdcRlQ4fu5BI5t9v5knzxv6lcOOyvra7Di23ufY9kRjEz0dcLNOtPKsIte3duLl7uHgwy+VFRJIzRO+JXJ/jXrVc7mFZa8hWmVEerIFUX7TM3PgvIJr136p5VSxhr4czV9SE6atJe52Vz9jg5xe2rj1LrMWEinXHohEemqHCOVLL1WE98huxilQe34fpQf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Zf1YmElk+dZkJWraddUWPrDKSYiP48UhyhNevxj+o2r3h4I8GwQ/RDd92Q2ea/VUwd5Tr7mXAFD1R8PLB42fUFNoXsOKR4QR7A3cCIRbJaAO9wykTEMjuNfx7TVil7AxMnSmhFXL95SsK9aH9ILnewOjSLacZ+yln7hdElGpmOF7KL+8v9xPYuAYo3544yGLFB X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Extern declarations have no definitions with !CONFIG_MEMCG_V1 and no users, drop them altogether. Signed-off-by: Michal Koutný Acked-by: Shakeel Butt Acked-by: Tejun Heo --- mm/memcontrol-v1.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/memcontrol-v1.h b/mm/memcontrol-v1.h index 56d7eaa982741..db2ebf8bea6c5 100644 --- a/mm/memcontrol-v1.h +++ b/mm/memcontrol-v1.h @@ -140,8 +140,6 @@ static inline bool memcg1_charge_skmem(struct mem_cgroup *memcg, unsigned int nr gfp_t gfp_mask) { return true; } static inline void memcg1_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) {} -extern struct cftype memsw_files[]; -extern struct cftype mem_cgroup_legacy_files[]; #endif /* CONFIG_MEMCG_V1 */ #endif /* __MM_MEMCONTROL_V1_H */