Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memblock tests: remove 'cleared' from comment blocks

The tests in alloc_nid_api can now run either memblock_alloc_try_nid()
or memblock_alloc_try_nid_raw(). The comment blocks for these tests
should not refer to a 'cleared' region since that only applies to
memblock_alloc_try_nid(). Remove 'cleared' from the comment blocks so
that the comments are accurate for either memblock function.

Signed-off-by: Rebecca Mckeever <remckee0@gmail.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/e8be24137e54e9f81a06af969ded82b319114d7a.1662264347.git.remckee0@gmail.com

authored by

Rebecca Mckeever and committed by
Mike Rapoport
35e49953 dcd45ad2

+11 -11
+11 -11
tools/testing/memblock/tests/alloc_nid_api.c
··· 33 33 * | | 34 34 * min_addr max_addr 35 35 * 36 - * Expect to allocate a cleared region that ends at max_addr. 36 + * Expect to allocate a region that ends at max_addr. 37 37 */ 38 38 static int alloc_try_nid_top_down_simple_check(void) 39 39 { ··· 87 87 * Aligned address 88 88 * boundary 89 89 * 90 - * Expect to allocate a cleared, aligned region that ends before max_addr. 90 + * Expect to allocate an aligned region that ends before max_addr. 91 91 */ 92 92 static int alloc_try_nid_top_down_end_misaligned_check(void) 93 93 { ··· 139 139 * | | 140 140 * min_addr max_addr 141 141 * 142 - * Expect to allocate a cleared region that starts at min_addr and ends at 142 + * Expect to allocate a region that starts at min_addr and ends at 143 143 * max_addr, given that min_addr is aligned. 144 144 */ 145 145 static int alloc_try_nid_exact_address_generic_check(void) ··· 193 193 * address | 194 194 * boundary min_add 195 195 * 196 - * Expect to drop the lower limit and allocate a cleared memory region which 196 + * Expect to drop the lower limit and allocate a memory region which 197 197 * ends at max_addr (if the address is aligned). 198 198 */ 199 199 static int alloc_try_nid_top_down_narrow_range_check(void) ··· 641 641 /* 642 642 * A test that tries to allocate a memory region, where max_addr is 643 643 * bigger than the end address of the available memory. Expect to allocate 644 - * a cleared region that ends before the end of the memory. 644 + * a region that ends before the end of the memory. 645 645 */ 646 646 static int alloc_try_nid_top_down_cap_max_check(void) 647 647 { ··· 680 680 /* 681 681 * A test that tries to allocate a memory region, where min_addr is 682 682 * smaller than the start address of the available memory. Expect to allocate 683 - * a cleared region that ends before the end of the memory. 683 + * a region that ends before the end of the memory. 684 684 */ 685 685 static int alloc_try_nid_top_down_cap_min_check(void) 686 686 { ··· 728 728 * | | 729 729 * min_addr max_addr 730 730 * 731 - * Expect to allocate a cleared region that ends before max_addr. 731 + * Expect to allocate a region that ends before max_addr. 732 732 */ 733 733 static int alloc_try_nid_bottom_up_simple_check(void) 734 734 { ··· 782 782 * Aligned address 783 783 * boundary 784 784 * 785 - * Expect to allocate a cleared, aligned region that ends before max_addr. 785 + * Expect to allocate an aligned region that ends before max_addr. 786 786 */ 787 787 static int alloc_try_nid_bottom_up_start_misaligned_check(void) 788 788 { ··· 836 836 * | 837 837 * min_add 838 838 * 839 - * Expect to drop the lower limit and allocate a cleared memory region which 839 + * Expect to drop the lower limit and allocate a memory region which 840 840 * starts at the beginning of the available memory. 841 841 */ 842 842 static int alloc_try_nid_bottom_up_narrow_range_check(void) ··· 1019 1019 /* 1020 1020 * A test that tries to allocate a memory region, where max_addr is 1021 1021 * bigger than the end address of the available memory. Expect to allocate 1022 - * a cleared region that starts at the min_addr 1022 + * a region that starts at the min_addr. 1023 1023 */ 1024 1024 static int alloc_try_nid_bottom_up_cap_max_check(void) 1025 1025 { ··· 1058 1058 /* 1059 1059 * A test that tries to allocate a memory region, where min_addr is 1060 1060 * smaller than the start address of the available memory. Expect to allocate 1061 - * a cleared region at the beginning of the available memory. 1061 + * a region at the beginning of the available memory. 1062 1062 */ 1063 1063 static int alloc_try_nid_bottom_up_cap_min_check(void) 1064 1064 {