summaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorMike Rapoport <rppt@kernel.org>2023-02-12 09:46:10 +0100
committerArnd Bergmann <arnd@arndb.de>2023-02-13 22:13:12 +0100
commit0e4f2c4567953a230b420f2c4460c3368d6509db (patch)
tree619d28cce3da8a56aa786bcd9f39d0e159439ef3 /arch/alpha
parentlocking/atomic: cmpxchg: Make __generic_cmpxchg_local compare against zero-ex... (diff)
downloadlinux-0e4f2c4567953a230b420f2c4460c3368d6509db.tar.xz
linux-0e4f2c4567953a230b420f2c4460c3368d6509db.zip
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>
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/include/asm/agp.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/alpha/include/asm/agp.h b/arch/alpha/include/asm/agp.h
index 7874f063d000..4197b3bc78ee 100644
--- a/arch/alpha/include/asm/agp.h
+++ b/arch/alpha/include/asm/agp.h
@@ -10,10 +10,4 @@
#define unmap_page_from_agp(page) do { } while (0)
#define flush_agp_cache() mb()
-/* GATT allocation. Returns/accepts GATT kernel virtual address. */
-#define alloc_gatt_pages(order) \
- ((char *)__get_free_pages(GFP_KERNEL, (order)))
-#define free_gatt_pages(table, order) \
- free_pages((unsigned long)(table), (order))
-
#endif