Skip to contentSkip to conversation

accel/ivpu: Fix warning due to undefined CONFIG_PROC_FS

PATCH In review Karol Wachowski 3 participants 3 messages Nov 12, 2025

Subsystems (2)
lore
Share & tools
lore

Karol Wachowski

author maintainer
#0 lore raw

PATCH 1/1 accel/ivpu: Fix warning due to undefined CONFIG_PROC_FS

Change #if to #ifdef CONFIG_PROC_FS to fix warning reported by test robot:
drivers/accel/ivpu/ivpu_drv.c:458:5: warning: "CONFIG_PROC_FS" is not defined, evaluates to 0 [-Wundef]

Fixes 63cc028484ab ("accel/ivpu: Add fdinfo support for memory statistics")
---
 drivers/accel/ivpu/ivpu_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/accel/ivpu/ivpu_drv.c +2 -2
index ce7dbd473059..3d6fccdefdd6 100644
@@ -455,7 +455,7 @@ int ivpu_shutdown(struct ivpu_device *vdev)
 static const struct file_operations ivpu_fops = {
 	.owner		= THIS_MODULE,
 	DRM_ACCEL_FOPS,
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
 	.show_fdinfo = drm_show_fdinfo,
 #endif
 };
@@ -472,7 +472,7 @@ static const struct drm_driver driver = {
 	.ioctls = ivpu_drm_ioctls,
 	.num_ioctls = ARRAY_SIZE(ivpu_drm_ioctls),
 	.fops = &ivpu_fops,
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
 	.show_fdinfo = drm_show_memory_stats,
 #endif
 
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Karol Wachowski

Change #if to #ifdef CONFIG_PROC_FS to fix warning reported by test robot:
drivers/accel/ivpu/ivpu_drv.c:458:5: warning: "CONFIG_PROC_FS" is not defined, evaluates to 0 [-Wundef]

Fixes 63cc028484ab ("accel/ivpu: Add fdinfo support for memory statistics")
---
  drivers/accel/ivpu/ivpu_drv.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/accel/ivpu/ivpu_drv.c +1 -1
index ce7dbd473059..3d6fccdefdd6 100644
@@ -455,7 +455,7 @@ int ivpu_shutdown(struct ivpu_device *vdev)
  static const struct file_operations ivpu_fops = {
  	.owner		= THIS_MODULE,
  	DRM_ACCEL_FOPS,
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
  	.show_fdinfo = drm_show_fdinfo,
  #endif
  };

drivers/accel/ivpu/ivpu_drv.c static const struct drm_driver driver = { · line 478

Quoted 8 lines
drivers/accel/ivpu/ivpu_drv.c +1 -1
@@ -472,7 +472,7 @@ static const struct drm_driver driver = {
  	.ioctls = ivpu_drm_ioctls,
  	.num_ioctls = ARRAY_SIZE(ivpu_drm_ioctls),
  	.fops = &ivpu_fops,
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
  	.show_fdinfo = drm_show_memory_stats,
  #endif
 
Reviewed-by [email protected]
Reviewed-by on v1 1/1
#2 lore raw
In reply to Karol Wachowski
Quoted 31 lines · Karol Wachowski

Change #if to #ifdef CONFIG_PROC_FS to fix warning reported by test robot:
drivers/accel/ivpu/ivpu_drv.c:458:5: warning: "CONFIG_PROC_FS" is not defined, evaluates to 0 [-Wundef]

Fixes 63cc028484ab ("accel/ivpu: Add fdinfo support for memory statistics")
---
  drivers/accel/ivpu/ivpu_drv.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/accel/ivpu/ivpu_drv.c +2 -2
index ce7dbd473059..3d6fccdefdd6 100644
@@ -455,7 +455,7 @@ int ivpu_shutdown(struct ivpu_device *vdev)
  static const struct file_operations ivpu_fops = {
  	.owner		= THIS_MODULE,
  	DRM_ACCEL_FOPS,
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
  	.show_fdinfo = drm_show_fdinfo,
  #endif
  };
@@ -472,7 +472,7 @@ static const struct drm_driver driver = {
  	.ioctls = ivpu_drm_ioctls,
  	.num_ioctls = ARRAY_SIZE(ivpu_drm_ioctls),
  	.fops = &ivpu_fops,
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
  	.show_fdinfo = drm_show_memory_stats,
  #endif