]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arch/s390: clean up hugetlb definitions
authorOscar Salvador <osalvador@suse.de>
Mon, 7 Oct 2024 07:50:36 +0000 (09:50 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:00 +0000 (21:29 -0700)
commit9669f333e9340b919492665ab1eed5e23d6105a0
tree10d22ec490c202068ace4db352055c1d08ce96c6
parent32dbc0579e339eccd8028e24fbab90d8f068a9ee
arch/s390: clean up hugetlb definitions

s390 redefines functions that are already defined (and the same) in
include/asm-generic/hugetlb.h.

Do as the other architectures:
1) include include/asm-generic/hugetlb.h
2) drop the already defined functions in the generic hugetlb.h and
3) use the __HAVE_ARCH_HUGE_* macros to define our own.

This gets rid of quite some code.

Link: https://lkml.kernel.org/r/20241007075037.267650-9-osalvador@suse.de
Signed-off-by: Oscar Salvador <osalvador@suse.de>
Cc: David Hildenbrand <david@redhat.com>
Cc: Donet Tom <donettom@linux.ibm.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Peter Xu <peterx@redhat.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/s390/include/asm/hugetlb.h
include/asm-generic/hugetlb.h