Files
linux/include/linux
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
..
2025-04-03 21:35:32 +02:00
2025-05-11 17:54:10 -07:00
2025-02-21 17:31:45 -06:00
2025-02-21 09:54:01 +01:00
2024-11-11 10:45:03 +01:00
2025-04-21 10:27:59 +02:00
2025-04-29 15:58:38 -04:00
2025-04-29 15:58:38 -04:00
2025-04-29 15:58:38 -04:00
2025-05-19 08:17:08 -07:00
2025-04-17 10:50:55 -07:00
2025-03-08 14:37:39 +01:00
2025-02-26 12:10:48 +01:00
2025-05-21 13:41:03 +02:00
2025-05-21 13:39:45 +02:00
2025-02-06 11:27:16 -07:00
2025-04-11 18:58:10 -07:00
2025-05-20 05:34:27 +02:00
2024-11-05 13:32:21 +01:00
2025-04-17 10:56:11 +02:00
2025-02-24 12:08:51 +02:00
2025-04-10 10:39:14 +01:00
2025-05-15 20:24:40 +02:00
2024-11-28 14:49:28 +01:00
2025-07-09 22:42:09 -07:00
2025-05-22 11:07:05 +02:00
2025-06-17 14:29:19 +02:00
2025-01-07 18:06:51 -08:00
2024-11-24 17:05:27 -08:00
2025-03-10 13:13:04 -07:00
2025-06-11 11:57:14 -07:00
2025-01-14 19:45:35 +01:00
2024-12-13 08:49:31 -07:00
2025-03-08 12:13:25 +01:00
2024-12-09 13:48:23 -08:00
2025-05-11 17:48:29 -07:00
2025-02-20 15:24:13 +01:00
2025-02-07 23:15:01 +05:30
2025-07-09 22:41:56 -07:00
2025-03-17 13:54:50 +00:00
2025-06-04 09:51:10 +02:00
2025-02-18 11:51:22 -05:00
2024-11-05 16:56:26 -08:00
2024-11-16 10:09:30 -06:00
2025-05-21 16:46:37 +02:00
2025-04-26 08:28:03 +02:00
2025-03-10 08:53:40 +01:00
2025-05-02 11:03:18 +05:30
2025-03-12 20:41:14 +01:00
2025-01-10 11:59:00 +01:00
2025-01-07 15:16:48 +01:00
2025-01-02 10:37:14 -06:00
2025-05-03 12:02:04 +02:00
2024-12-09 14:44:59 -08:00
2025-05-11 17:54:09 -07:00
2025-05-06 11:11:45 -06:00
2025-03-17 11:52:25 +01:00
2025-04-25 15:53:59 +02:00
2025-01-29 13:32:23 -08:00
2025-04-10 18:34:05 -07:00
2025-02-28 11:51:26 -08:00
2025-05-15 04:49:15 +03:00
2025-03-20 08:00:50 -07:00
2025-02-28 11:51:26 -08:00
2025-02-12 12:12:27 +01:00
2025-06-19 12:36:19 +02:00
2025-04-18 10:05:49 -04:00
2024-12-09 14:44:59 -08:00
2024-11-06 12:59:44 -05:00
2025-03-13 13:25:58 -07:00
2025-03-13 13:25:58 -07:00
2025-03-13 13:25:58 -07:00