intel/crocus: do not redefine PAGE_SIZE
See https://www.openwall.com/lists/musl/2015/09/11/5 ``` ../src/gallium/drivers/crocus/crocus_bufmgr.c:102: error: "PAGE_SIZE" redefined [-Werror] ``` Acked-by: Yonggang Luo <luoyonggang@gmail.com> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19587>
This commit is contained in:

committed by
Marge Bot

parent
9d81729c02
commit
48c1e0e166
@@ -99,7 +99,9 @@ get_time(void)
|
||||
#define VG_DEFINED(ptr, size) VG(VALGRIND_MAKE_MEM_DEFINED(ptr, size))
|
||||
#define VG_NOACCESS(ptr, size) VG(VALGRIND_MAKE_MEM_NOACCESS(ptr, size))
|
||||
|
||||
#ifndef PAGE_SIZE
|
||||
#define PAGE_SIZE 4096
|
||||
#endif
|
||||
|
||||
#define WARN_ONCE(cond, fmt...) do { \
|
||||
if (unlikely(cond)) { \
|
||||
|
Reference in New Issue
Block a user