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

2024-11-01 Thread Gyeyoung Baek
.html";. v2: I modified this to print when only cond is true. v3: Modify to evaluate cond only once. v4: There was a mistake in v3, send this again. Signed-off-by: Gyeyoung Baek --- drivers/gpu/drm/xe/xe_macros.h | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --gi

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

2024-11-01 Thread Gyeyoung Baek
.html";. v2: I modified this to print when only cond is true. v3: Modify to evaluate cond only once. Signed-off-by: Gyeyoung Baek --- drivers/gpu/drm/xe/xe_macros.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_macros.h b/d

[PATCH] Fix unused variable warning in 'drm_print.h'

2024-10-29 Thread Gyeyoung Baek
] 218 | enum drm_debug_category category = p->category; so i simply add '(void)(category);' to remove unused variable warning, by referring to "https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html";. Signed-off-by: Gyeyoung Baek --- include/drm/drm_print.h |

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

2024-10-29 Thread Gyeyoung Baek
.html";. v2: I modified this to print when only cond is true. Signed-off-by: Gyeyoung Baek --- drivers/gpu/drm/xe/xe_macros.h | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_macros.h b/drivers/gpu/drm/xe/xe_macros.h index daf56c846d

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

2024-10-27 Thread Gyeyoung Baek
I fix the expression to be compatible with the do while statement, by referring to "https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html";. Signed-off-by: Gyeyoung Baek --- drivers/gpu/drm/xe/xe_macros.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dr