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_WARN_ON WARN_ON 12 13#define XE_IOCTL_DBG(xe, cond) \ 14 ((cond) && (drm_dbg(&(xe)->drm, \ 15 "Ioctl argument check failed at %s:%d: %s", \ 16 __FILE__, __LINE__, #cond), 1)) 17 18#endif 19