Re: [PATCH v2] drm/xe: Fix build error for XE_IOCTL_DBG macro

2024-11-01 Thread gyeyoung
> >--- a/drivers/gpu/drm/xe/xe_macros.h > >+++ b/drivers/gpu/drm/xe/xe_macros.h > >@@ -11,8 +11,12 @@ > > #define XE_WARN_ON WARN_ON > > > > #define XE_IOCTL_DBG(xe, cond) \ > >- ((cond) && (drm_dbg(&(xe)->drm, \ > >- "Ioctl argument check failed at %s:%d: %s", \ > >-

Re: [PATCH v2] drm/xe: Fix build error for XE_IOCTL_DBG macro

2024-11-01 Thread Lucas De Marchi
On Tue, Oct 29, 2024 at 05:48:58PM +0900, Gyeyoung Baek wrote: if CONFIG_DRM_USE_DYNAMIC_DEBUG is set, 'drm_dbg' function is replaced with '__dynamic_func_call_cls', which is replaced with a do while statement. so in the previous code, there are the following build errors. include/linux/dynamic_

[PATCH v2] drm/xe: Fix build error for XE_IOCTL_DBG macro

2024-10-29 Thread Gyeyoung Baek
if CONFIG_DRM_USE_DYNAMIC_DEBUG is set, 'drm_dbg' function is replaced with '__dynamic_func_call_cls', which is replaced with a do while statement. so in the previous code, there are the following build errors. include/linux/dynamic_debug.h:221:58: error: expected expression before ‘do’ 221 | #d