19 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2021 Intel Corporation4 */5 6#ifndef _XE_MACROS_H_7#define _XE_MACROS_H_8 9#include <linux/bug.h>10 11#define XE_WARN_ON WARN_ON12 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#endif19