From patchwork Fri Feb 23 03:55:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13568550 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 E83BBC54E41 for ; Fri, 23 Feb 2024 03:56:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 73ED56B0078; Thu, 22 Feb 2024 22:56:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6F2E86B007B; Thu, 22 Feb 2024 22:56:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5B5F86B007D; Thu, 22 Feb 2024 22:56:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 4D7B86B0078 for ; Thu, 22 Feb 2024 22:56:08 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 2023CA10F5 for ; Fri, 23 Feb 2024 03:56:08 +0000 (UTC) X-FDA: 81821705616.09.D7B04D1 Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by imf29.hostedemail.com (Postfix) with ESMTP id 019EB120012 for ; Fri, 23 Feb 2024 03:56:05 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf29.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.32 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708660566; 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; bh=BnNOCUADY5Lb436MiE6zJO9qDKzZTY0YsYH11jhUX70=; b=z2hiflxCr003j+lhWy2sPwItBShXC3LQJVX0YUo7NrE0Lcd3VqP95WdWonZl1VSSI5FT7p BhZVfBDYp3xTk4yihUs/IZ2vdsw+LS1xi/c2dnk/JmSscRZU3T90BrUtGVs3jYcjXjKBHB 5Nc9IvDaRd/4l7wd1cjZiGwt/Jekav0= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf29.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.32 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708660566; a=rsa-sha256; cv=none; b=035Ue/hqgfHTrnK2IUu8w7MiQSp8llLfEM46sYI9IDChQHloguudNdn5P/ZHYksN1eSD2R fHz03GlBiIW1HmL+RsENN4D2GWLeSUfyllte1GexHms3RP8ZLINwVtuKrIk+S3pdSwEtgA Y3J1LSft9UA+u0R2IgUxQ+dVJtFYHpw= Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Tgx4G1kvhz1vtxj; Fri, 23 Feb 2024 11:55:26 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 2A7911A016C; Fri, 23 Feb 2024 11:56:01 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 23 Feb 2024 11:56:00 +0800 From: Kefeng Wang To: Johannes Weiner , Yosry Ahmed , Nhat Pham , Andrew Morton CC: Chengming Zhou , Huacai Chen , Minchan Kim , Sergey Senozhatsky , , , Kefeng Wang Subject: [PATCH 2/5] zram: make zram depends on SWAP Date: Fri, 23 Feb 2024 11:55:45 +0800 Message-ID: <20240223035548.2591882-3-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240223035548.2591882-1-wangkefeng.wang@huawei.com> References: <20240223035548.2591882-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm100001.china.huawei.com (7.185.36.93) X-Rspam-User: X-Stat-Signature: 9bw7ksmxg7j4wai8s6s6jss4mboqryuc X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 019EB120012 X-HE-Tag: 1708660565-964330 X-HE-Meta: U2FsdGVkX1/jH4/VyRrghp3jEkcZugyVp/X6akniEVMluJA62Hu0op3mxcTahsorUQji6TAc6qCvbnpF5J0UtR0W/E12d+nWQ97OWuDkkAaE91ay5UbHVTbgU3HmN7I18L5XXdMw2TyYEaND+zFeWQCQd4mbiv69RT7CvUHUnjSKr/rP9LEKHDRb3op+8oZVsA4moFjioTmBGEudb1K41Ca8cyTO87fezemyQMyjLB1X5mmZI7mkEhWmMG1ok1iqsQr6qJUQMyIyNfu8QgvmexmCNkqSS/OSmyu8JlzrN+P1MQUWSdxq3ggXcmp1GIwac1XpKdXRlPk0UtuybJU+aofo+9y2PivqjG1f+FTAht3m7MWi6XKVnbSgZkx7lCJmQZbSuk9jl89mctgo3iBxVL9oUw+m9lZIUffn50/WbTzpmUIiXUJjs9GOEut5fDg3vI4Sh4RKxEALKCj/x/7l1j0BN5vlkpf7tqOBSBgXN3tBj2QG3857FftbwSArPkfq67et2GqHTp86sRbfMNwJFgxAQzlw1WLX7n4iFqNhaENWCkFHydFXi+gW5YgQmXibJwaSh/PTzYbXV+rFH+UXpkoUI507Ndg9JtbfGAiVD3bMXsVOyoGt+rw5ndHMEpBggwKKRzgUoVY2EtxYpeXCRUgaqu0QypvwOXY970tfhqXVSvyzgxhJjdFiF2Lh5xyUh1h/RkGjH4L3EqVZ8i+oYi829VrnMpii0Hc9gRP2RHohD809/qfrpyxpn7uohbgykI8NxpEG5VHur6EZXLsrjKA9AvU2iHzg/MPXAGLjDEO6ncSjDkroUQvcwTZNdwZq+9tq+Jfv6CszxfiBZtpGtA== 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: The zram is useless when SWAP is disabled, make zram depends on SWAP. Signed-off-by: Kefeng Wang --- drivers/block/zram/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/zram/Kconfig b/drivers/block/zram/Kconfig index 7b29cce60ab2..0cee425da0f5 100644 --- a/drivers/block/zram/Kconfig +++ b/drivers/block/zram/Kconfig @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 config ZRAM tristate "Compressed RAM block device support" - depends on BLOCK && SYSFS && MMU + depends on SWAP && SYSFS depends on CRYPTO_LZO || CRYPTO_ZSTD || CRYPTO_LZ4 || CRYPTO_LZ4HC || CRYPTO_842 select ZSMALLOC help