From patchwork Wed Oct 6 12:03:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12539333 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF31EC433F5 for ; Wed, 6 Oct 2021 12:04:01 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7DE426115A for ; Wed, 6 Oct 2021 12:04:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7DE426115A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id E7501900002; Wed, 6 Oct 2021 08:04:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E25AB6B0071; Wed, 6 Oct 2021 08:04:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D1294900002; Wed, 6 Oct 2021 08:04:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0030.hostedemail.com [216.40.44.30]) by kanga.kvack.org (Postfix) with ESMTP id C44716B006C for ; Wed, 6 Oct 2021 08:04:00 -0400 (EDT) Received: from smtpin40.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 6E9D62930A for ; Wed, 6 Oct 2021 12:04:00 +0000 (UTC) X-FDA: 78665879040.40.A501054 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by imf28.hostedemail.com (Postfix) with ESMTP id A494290009DE for ; Wed, 6 Oct 2021 12:03:59 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id r18so8126215wrg.6 for ; Wed, 06 Oct 2021 05:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=e/aej7GbV3RNso2QLtyef0SKYF6ZtFllJDqUDN4OhOw=; b=pjApfVmGa2U6cE/pKb0yScYS7aJhpSbaYToMzszxXiVVy2EDizgOZUD3J8Q5YsL+F5 9HUvXaMOkG5oPHBD1j/LYmlKuvwuayhCudKU8f9Q1Z2uxSNmnqhMNCI4Js7fELco8vCt MLhss5+DO8Gqapjz5T1jPN3+VM8UjOLqlrqtZoW6fP/pDVFZDOPD8V8AStpscxfb3HFe qGQur6Zv6FXEUF9UvuSDo0/fXeL0wUQP8Ngak97RI9QxOD6+MMISkC9EksmPDCCvVVAr 2kucbFm0pzLWHHrIRZCzPuUuL+h0eqlQJyU6LZgNWRJBJzVljGUITi1mbSgpv4OVtBup HJ5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=e/aej7GbV3RNso2QLtyef0SKYF6ZtFllJDqUDN4OhOw=; b=6UK5di7qb2QGbaT4Hxmk/JFH82yFG8NCZv4visrdd0GCoX1d+P8hDfFiXIi61e7gLK 9ERFzi6EuV4hIhB0AljlwsTzxIyh/p2dSJa27bPFVDNm7DInNGdYu1TITxqjYLowEcwe l01PffvrqpxsNAGyPEogHdJ6Y5278bmA5jvb6oP7ee8y4jduCuuU3vAZVbUqCyDOcPBv NPm92csaSEQLsJP3TCIxzEKQuNdALOX/V+7YJxljhkoSyBXNXSlNWCRitzN9M2xpsA82 ahvPBEe7ygQLuKAvk32jBzfCBVsuojdDIdaju+x5qum4GUSNvLRC6OISURGGaOpFydKE NWUA== X-Gm-Message-State: AOAM533VRImPkR+uobDcXcEdZJOIt9TbVhw6zGFDb/93v3o47j7a+xCh XLUJcmAeRmOByaLjQ95YQVE= X-Google-Smtp-Source: ABdhPJx25D0gRSn90gByos6lL+f5LoTcfRdO2Q2woo7Eg/ad9i7u9KhZ3isEjsydfgyH0nxeaU9m6Q== X-Received: by 2002:adf:a550:: with SMTP id j16mr20811802wrb.384.1633521838318; Wed, 06 Oct 2021 05:03:58 -0700 (PDT) Received: from localhost.localdomain (i577BCBA0.versanet.de. [87.123.203.160]) by smtp.gmail.com with ESMTPSA id a2sm7178336wru.82.2021.10.06.05.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 05:03:57 -0700 (PDT) From: Lukas Bulwahn To: Andrew Morton , David Hildenbrand , Michal Hocko , Dave Hansen , linux-mm@kvack.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH] memory: remove unused CONFIG_MEM_BLOCK_SIZE Date: Wed, 6 Oct 2021 14:03:54 +0200 Message-Id: <20211006120354.7468-1-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pjApfVmG; spf=pass (imf28.hostedemail.com: domain of lukas.bulwahn@gmail.com designates 209.85.221.46 as permitted sender) smtp.mailfrom=lukas.bulwahn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: A494290009DE X-Stat-Signature: w5k9mn8cfxpm5xs9w1qqkys9o1s3c6kf X-HE-Tag: 1633521839-356897 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: Commit 3947be1969a9 ("[PATCH] memory hotplug: sysfs and add/remove functions") defines CONFIG_MEM_BLOCK_SIZE, but this has never been utilized anywhere. It is a good practice to keep the CONFIG_* defines exclusively for the Kbuild system. So, drop this unused definition. This issue was noticed due to running ./scripts/checkkconfigsymbols.py. Signed-off-by: Lukas Bulwahn Reviewed-by: David Hildenbrand --- include/linux/memory.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/memory.h b/include/linux/memory.h index c46ff374d48d..a216829df280 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -143,7 +143,6 @@ typedef int (*walk_memory_blocks_func_t)(struct memory_block *, void *); extern int walk_memory_blocks(unsigned long start, unsigned long size, void *arg, walk_memory_blocks_func_t func); extern int for_each_memory_block(void *arg, walk_memory_blocks_func_t func); -#define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<