From patchwork Thu Jul 6 11:28:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13303541 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 B9C57EB64D9 for ; Thu, 6 Jul 2023 11:28:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 17A038D0002; Thu, 6 Jul 2023 07:28:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 12A328D0001; Thu, 6 Jul 2023 07:28:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 017A88D0002; Thu, 6 Jul 2023 07:28:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id E261A8D0001 for ; Thu, 6 Jul 2023 07:28:11 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id A77EDAF263 for ; Thu, 6 Jul 2023 11:28:11 +0000 (UTC) X-FDA: 80980963182.23.CBC2CD8 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf15.hostedemail.com (Postfix) with ESMTP id 624EFA000F for ; Thu, 6 Jul 2023 11:28:07 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf15.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688642889; 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: references; bh=b3unIiavzBPfNvJOgbxULNHpCIf2j7nG4zs2PkcRRKo=; b=GurjYEVfFXimD+1nNAIX0HoQOC/x6LVCeq9f/KQH7W1K/xFAOsfL4SFdSQdfWlCMXymY7K VTOCsYheRlSZTWTHgA23aIUhJIJeMMTGG+T7jklaxC1R07CQLjSF45WVP9OPGwoLSjnqQJ tfQsA1hJ0QpRurdoR+QgGiUfA087ndo= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf15.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688642889; a=rsa-sha256; cv=none; b=F5kkq1S4NRNW83KTeXJ7Phlsi6l2gqaHsFYaRA7hR8QQ8pMMdjiSX+RL35ssg9xD21xvIR xo/U91NHmaA1EZ7zp6L7hIlfGAJAMeic8aKvGGEULfGPg4kCl/bTTEMk3yfS+N/rQqdEyX OQyIg7eGtPDmCC0WmT31An9Mv+uYf5I= Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QxZ1n323HzMqQD; Thu, 6 Jul 2023 19:24:45 +0800 (CST) Received: from huawei.com (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 6 Jul 2023 19:27:59 +0800 From: Miaohe Lin To: , , , , CC: , , , , Subject: [PATCH] mm/memcg: remove definition of MEM_CGROUP_ID_MAX when !CONFIG_MEMCG Date: Thu, 6 Jul 2023 19:28:20 +0800 Message-ID: <20230706112820.2393447-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 624EFA000F X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: ozks69myt8ur4ogjee1xe6rhwmam9r4w X-HE-Tag: 1688642887-101713 X-HE-Meta: U2FsdGVkX18qHRkWzuOq/elhvBvCZmp1EWnjDrn3KlBXGBiEzOS9nk5zLStdiW6/gmfYk+8X/adzY+abtqgJNJjAluAWH5E+sibW3tvv1RORryc3Xbl5nVtDnwobeWwyf+yCkfG4yuQ2+5dwKCvBdlN+nXtaHg9X7PkY8joOlAktsyjsXis+QbgHK6vyQybEUbtSn/6ihf1jLbTpkhri+V8sJ6KN1xf49xd36JwNSxJ9+Vyz6rXfOsR1edSjo+MomP/4j2VbNJ2DptUUqqSJt8SBIRB8ynCrDEDQsuclML4OB19IeILDKX+ZbeR6h2tOCZPaevElEoKdwIwfNiCetI6UgTDGKEC4IH2MzyY2VVM/5lFd5pU9CY5g8qT7o3tdQfgJGTT2oHIwshsA5lhYMhIdYX8mNU63VYCAJOdoSqNlReqYW0oHqS1ayRXdgjiEkpchcr62unuxZwhzKNZJs7lozMUPI8H6YETCySL416wAwjdESpCRyzyE0Ghqxr7/kpTMFoXdioJRZGsjF+L3k8y1VhKBsFNnjtwLTzWYE47SjnUgCI2IfO1rSGGIGHG5wTbvZ8hZKtCatLOkGCwn+zo6qtIfo3eVdUJuFTaylK3tzhUkJ3jlEQ9DRF5oqSLHDRI/ZCcMovexMmlDoEgkWxzOkyiTihujqc5xy90IqYtNRJCAVgOqyxoUdTz75hNaLIkh23nuBvWvildDTw1zCBDsPL+eIgbF11QYJzge8qfe4RYHg2Gc12J7fldd+OCtUVTd0bO1tw5C/LQ74XgL9ehrwngOVtjDstwRWjnwFS6JUk3ecG8Dyet1w5Q/mAVf6l1ZnxBle3fC8ulIjc6FG4TCQzOTJb+Em/wZjMhhwHQl/r972CoHMZ2EVlOEql6QQxA0/P3APAC2UhY/a6YDn2xfk+LVsAb92IXfy4UUzhXxtaNIU7qp5xgJ2dnSkhGFdqhRiwWkZ5zpl4Daa/F ppiRRaFH G1Isw8APwPRnJYswmBikVUfLciHJf0z7Ay3/hzReVwysbbbCzwnaj5GNgodT/Glulj+Iu4BM1CNxnM4TQIeFsyvarNiJqCiBzrIvvP16XX/KPippA9fQs92EuT1rW2yAxVe2hjOXb2VslbsI28tza7F6WloBj2+O+2gLuT3a6YMr/NYBArlMc+M83LZtoK5oVFxmOsKCMFV2MdQX0pKSF2+yJigRNCt+ccug8yDQuaaXDBNE= 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: MEM_CGROUP_ID_MAX is only used when CONFIG_MEMCG is configured. Remove unneeded !CONFIG_MEMCG variant. Signed-off-by: Miaohe Lin Reviewed-by: Muchun Song --- include/linux/memcontrol.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 5818af8eca5a..634a282099bf 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -1158,7 +1158,6 @@ unsigned long mem_cgroup_soft_limit_reclaim(pg_data_t *pgdat, int order, #else /* CONFIG_MEMCG */ #define MEM_CGROUP_ID_SHIFT 0 -#define MEM_CGROUP_ID_MAX 0 static inline struct mem_cgroup *folio_memcg(struct folio *folio) {