linux/arch/mips
Peter Xu eff41389d8 mm/hugetlb: remove prepare_hugepage_range()
Only mips and loongarch implemented this API, however what it does was
checking against stack overflow for either len or addr.  That's already
done in arch's arch_get_unmapped_area*() functions, even though it may not
be 100% identical checks.

For example, for both of the architectures, there will be a trivial
difference on how stack top was defined.  The old code uses STACK_TOP
which may be slightly smaller than TASK_SIZE on either of them, but the
hope is that shouldn't be a problem.

It means the whole API is pretty much obsolete at least now, remove it
completely.

Link: https://lkml.kernel.org/r/20250627160707.2124580-1-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Jann Horn <jannh@google.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Pedro Falcato <pfalcato@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-07-13 16:38:19 -07:00
..
alchemy MIPS: alchemy: gpio: use new line value setter callbacks 2025-04-27 09:21:21 +02:00
ath25 MIPS: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
ath79 MIPS: ath79: remove obsolete ATH79_DEV_* configs 2023-03-17 10:28:04 +01:00
bcm47xx net: phy: fixed_phy: remove irq argument from fixed_phy_add 2025-05-20 18:17:43 -07:00
bcm63xx MIPS: BCM63XX: Replace strcpy() with strscpy() in board_prom_init() 2025-04-27 09:47:09 +02:00
bmips mips: bmips: setup: make CBR address configurable 2024-06-27 10:44:32 +02:00
boot mips: dts: Add EcoNet DTS with EN751221 and SmartFiber XP8421-B board 2025-05-20 08:47:07 +02:00
cavium-octeon A set of cleanups for the generic interrupt subsystem: 2025-05-27 08:07:32 -07:00
cobalt MIPS: Cobalt: Fix missing prototypes 2024-01-22 10:32:21 +01:00
configs Networking changes for 6.16. 2025-05-28 15:24:36 -07:00
crypto crypto: mips/sha256 - implement library instead of shash 2025-05-05 18:20:43 +08:00
dec MIPS: dec: Declare which_prom() as static 2025-02-27 10:40:45 +01:00
econet mips: dts: Add EcoNet DTS with EN751221 and SmartFiber XP8421-B board 2025-05-20 08:47:07 +02:00
fw MIPS: fw arc: Fix missing prototypes 2024-01-22 11:12:01 +01:00
generic mips: generic: add fdt fixup for Realtek reference board 2024-07-12 13:12:13 +02:00
include mm/hugetlb: remove prepare_hugepage_range() 2025-07-13 16:38:19 -07:00
ingenic
jazz mips/jazz: remove unused jazz_handle_int() declaration 2024-08-29 10:39:00 +02:00
kernel Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
kvm KVM: MIPS: Switch to use hrtimer_setup() 2025-02-18 10:32:30 +01:00
lantiq MIPS: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
lib This update includes the following changes: 2025-05-26 13:47:28 -07:00
loongson2ef MIPS: Loongson2ef: Replace deprecated strncpy() with strscpy() 2025-02-27 10:40:01 +01:00
loongson32 MIPS: loongson32: Remove dma.h and nand.h 2023-10-06 10:10:13 +02:00
loongson64 - The 6 patch series "Enable strict percpu address space checks" from 2025-04-01 09:29:18 -07:00
math-emu mips/math-emu: fix emulation of the prefx instruction 2025-01-11 12:49:05 +01:00
mm arch: remove mk_pmd() 2025-05-11 17:48:04 -07:00
mobileye MIPS: mobileye: Add EyeQ6H support 2024-06-11 10:15:50 +02:00
mti-malta vgacon: clean up global screen_info instances 2023-10-17 10:17:02 +02:00
n64
net bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro() 2024-03-14 19:28:52 -07:00
pci MIPS: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
pic32 MIPS: Fixup explicit DT include clean-up 2023-07-28 11:41:09 +02:00
power mips: suspend: include linux/suspend.h as needed 2023-12-10 17:21:41 -08:00
ralink MIPS: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
rb532 MIPS: rb532: gpio: use new line value setter callbacks 2025-04-27 09:21:21 +02:00
sgi-ip22 treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
sgi-ip27 irqdomain: Rename irq_set_default_host() to irq_set_default_domain() 2025-04-04 16:39:10 +02:00
sgi-ip30 irqdomain: Rename irq_set_default_host() to irq_set_default_domain() 2025-04-04 16:39:10 +02:00
sgi-ip32 MIPS: sgi-ip32: Fix missing prototypes 2024-01-22 11:12:19 +01:00
sibyte mips: sibyte: add missing MODULE_DESCRIPTION() macro 2024-07-23 09:47:40 +02:00
sni mips: sni: Do not include <linux/fb.h> 2025-02-21 10:19:48 +01:00
tools MIPS: fix typos in comments 2022-05-04 22:22:59 +02:00
txx9 MIPS: txx9: gpio: use new line value setter callbacks 2025-04-27 09:21:21 +02:00
vdso mips: Add -std= flag specified in KBUILD_CFLAGS to vdso CFLAGS 2025-04-27 09:37:10 +02:00
Kbuild MIPS: Share generic kernel code with other architecture 2024-02-20 13:36:25 +01:00
Kbuild.platforms mips: Add EcoNet MIPS platform support 2025-05-20 08:46:58 +02:00
Kconfig mips: econet: Fix incorrect Kconfig dependencies 2025-05-25 15:00:02 +02:00
Kconfig.debug
Makefile kbuild: Introduce Kconfig symbol for linking vmlinux with relocations 2025-03-17 00:29:50 +09:00
Makefile.postlink kbuild: Create intermediate vmlinux build with relocations preserved 2025-03-17 00:29:50 +09:00