mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
4673402ebf
It's dangerous to use empty code define. Furthermore it lead to the following warning: drivers/char/agp/generic.c: In function « agp_generic_destroy_page »: drivers/char/agp/generic.c:1266:28: attention : suggest braces around empty body in an « if » statement [-Wempty-body] So let's replace emptyness by "do {} while(0)" Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/1574324085-4338-6-git-send-email-clabbe@baylibre.com
28 lines
863 B
C
28 lines
863 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_IA64_AGP_H
|
|
#define _ASM_IA64_AGP_H
|
|
|
|
/*
|
|
* IA-64 specific AGP definitions.
|
|
*
|
|
* Copyright (C) 2002-2003 Hewlett-Packard Co
|
|
* David Mosberger-Tang <davidm@hpl.hp.com>
|
|
*/
|
|
|
|
/*
|
|
* To avoid memory-attribute aliasing issues, we require that the AGPGART engine operate
|
|
* in coherent mode, which lets us map the AGP memory as normal (write-back) memory
|
|
* (unlike x86, where it gets mapped "write-coalescing").
|
|
*/
|
|
#define map_page_into_agp(page) do { } while (0)
|
|
#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 /* _ASM_IA64_AGP_H */
|