From patchwork Fri Nov 5 20:39:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12605529 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 3A100C433EF for ; Fri, 5 Nov 2021 20:39:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E9B5860FBF for ; Fri, 5 Nov 2021 20:39:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E9B5860FBF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 8A3C194004F; Fri, 5 Nov 2021 16:39:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 83B45940049; Fri, 5 Nov 2021 16:39:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6817294004F; Fri, 5 Nov 2021 16:39:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0048.hostedemail.com [216.40.44.48]) by kanga.kvack.org (Postfix) with ESMTP id 51D18940049 for ; Fri, 5 Nov 2021 16:39:02 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 11FF0181C9673 for ; Fri, 5 Nov 2021 20:39:02 +0000 (UTC) X-FDA: 78776040882.09.7784C8F Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf24.hostedemail.com (Postfix) with ESMTP id ABF5CB0000B2 for ; Fri, 5 Nov 2021 20:39:01 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id AC56C60174; Fri, 5 Nov 2021 20:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1636144740; bh=z8Gm1/mAEeURZen3baG2cZYKbHFRwQEKqQkCaN+4no0=; h=Date:From:To:Subject:In-Reply-To:From; b=UrXQFGyuC6gC4SVQdJJdUX+FJeOXWJzbBHn3CnXRtScCCQtSMQB0Kzg2MZIkCA1Es r3kNlio5HtTw06dbg9U8m5LnOwJSzDiD+d+Z+39VFPVFghu3UqTxwRfxjqcQ6LZNLP wHSif08jrdm85Zzpyubqzo6dBy9o876poSEt1xh8= Date: Fri, 05 Nov 2021 13:39:00 -0700 From: Andrew Morton To: akpm@linux-foundation.org, dave.hansen@linux.intel.com, david@redhat.com, linux-mm@kvack.org, lukas.bulwahn@gmail.com, mhocko@suse.com, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 083/262] memory: remove unused CONFIG_MEM_BLOCK_SIZE Message-ID: <20211105203900.bo9SeDCE2%akpm@linux-foundation.org> In-Reply-To: <20211105133408.cccbb98b71a77d5e8430aba1@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: ABF5CB0000B2 X-Stat-Signature: 43qd3fbjgcqyhmzyq973abzugfi5595j Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=UrXQFGyu; spf=pass (imf24.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-HE-Tag: 1636144741-777427 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: From: Lukas Bulwahn Subject: memory: remove unused CONFIG_MEM_BLOCK_SIZE 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. Link: https://lkml.kernel.org/r/20211006120354.7468-1-lukas.bulwahn@gmail.com Signed-off-by: Lukas Bulwahn Reviewed-by: David Hildenbrand Cc: Michal Hocko Cc: Dave Hansen Signed-off-by: Andrew Morton --- include/linux/memory.h | 1 - 1 file changed, 1 deletion(-) --- a/include/linux/memory.h~memory-remove-unused-config_mem_block_size +++ a/include/linux/memory.h @@ -140,7 +140,6 @@ typedef int (*walk_memory_blocks_func_t) 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<