Commit 1e703d0
mm/slab: remove some unused functions
alternate_node_alloc and ____cache_alloc_node are always called when
CONFIG_NUMA. So we can remove the unused !CONFIG_NUMA variant. Also
forward declaration for alternate_node_alloc is unnecessary. Remove
it too.
[ vbabka@suse.cz: move ____cache_alloc_node() declaration closer to
its callers ]
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Link: https://lore.kernel.org/r/20220322091421.25285-1-linmiaohe@huawei.com1 parent 3123109 commit 1e703d0
1 file changed
Lines changed: 2 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | 622 | | |
635 | 623 | | |
636 | 624 | | |
637 | 625 | | |
638 | 626 | | |
639 | 627 | | |
640 | 628 | | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | 629 | | |
645 | 630 | | |
646 | 631 | | |
| |||
3056 | 3041 | | |
3057 | 3042 | | |
3058 | 3043 | | |
| 3044 | + | |
| 3045 | + | |
3059 | 3046 | | |
3060 | 3047 | | |
3061 | 3048 | | |
| |||
0 commit comments