1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2021 Intel Corporation 4 */ 5 6 #ifndef _XE_MACROS_H_ 7 #define _XE_MACROS_H_ 8 9 #include <linux/bug.h> 10 11 #define XE_EXTRA_DEBUG 1 12 #define XE_WARN_ON WARN_ON 13 #define XE_BUG_ON BUG_ON 14 15 #define XE_IOCTL_ERR(xe, cond) \ 16 ((cond) && (drm_info(&(xe)->drm, \ 17 "Ioctl argument check failed at %s:%d: %s", \ 18 __FILE__, __LINE__, #cond), 1)) 19 20 #endif 21