]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/memblock: remove empty dummy entry
authorWei Yang <richard.weiyang@gmail.com>
Fri, 5 Apr 2024 01:58:21 +0000 (01:58 +0000)
committerMike Rapoport (IBM) <rppt@kernel.org>
Wed, 5 Jun 2024 07:21:47 +0000 (10:21 +0300)
commit721f4a6526daafca15634f30c9865e880da3e1d1
tree6f65c186a50bbeaf31434e364256f8c830479b21
parentc3f38fa61af77b49866b006939479069cd451173
mm/memblock: remove empty dummy entry

The dummy entry is introduced in the initial implementation of lmb in
commit 7c8c6b9776fb ("powerpc: Merge lmb.c and make MM initialization
use it.").

As the comment says the empty dummy entry is to simplify the code.

/* Create a dummy zero size LMB which will get coalesced away later.
         * This simplifies the lmb_add() code below...
         */

While current code is reimplemented by Tejun in commit 784656f9c680
("memblock: Reimplement memblock_add_region()"). This empty dummy entry
seems not benefit the code any more.

Let's remove it.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
CC: Paul Mackerras <paulus@ozlabs.org>
CC: Tejun Heo <tj@kernel.org>
CC: Mike Rapoport <rppt@kernel.org>
Link: https://lore.kernel.org/r/20240405015821.13411-1-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
mm/memblock.c
tools/testing/memblock/tests/basic_api.c
tools/testing/memblock/tests/common.c