char/agp: consolidate {alloc,free}_gatt_pages()
authorMike Rapoport <rppt@kernel.org>
Sun, 12 Feb 2023 08:46:10 +0000 (10:46 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 13 Feb 2023 21:13:12 +0000 (22:13 +0100)
commit0e4f2c4567953a230b420f2c4460c3368d6509db
tree619d28cce3da8a56aa786bcd9f39d0e159439ef3
parent6246541522845a443b7ae4a8f0e16facc5a91198
char/agp: consolidate {alloc,free}_gatt_pages()

There is a copy of alloc_gatt_pages() and free_gatt_pages in several
architectures in arch/$ARCH/include/asm/agp.h. All the copies do exactly
the same: alias alloc_gatt_pages() to __get_free_pages(GFP_KERNEL) and
alias free_gatt_pages() to free_pages().

Define alloc_gatt_pages() and free_gatt_pages() in drivers/char/agp/agp.h
and drop per-architecture definitions.

Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/alpha/include/asm/agp.h
arch/ia64/include/asm/agp.h
arch/parisc/include/asm/agp.h
arch/powerpc/include/asm/agp.h
arch/sparc/include/asm/agp.h
arch/x86/include/asm/agp.h
drivers/char/agp/agp.h