diff mbox series

[3/7] drm/writeback: remove pointless enable_signaling implementation

Message ID 20240911085903.1496-4-christian.koenig@amd.com (mailing list archive)
State New, archived
Headers show
Series [1/7] dma-buf: add WARN_ON() illegal dma-fence signaling | expand

Commit Message

Christian König Sept. 11, 2024, 8:58 a.m. UTC
Just returning true here is a no-op, remove the optional callback.

Signed-off-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/drm_writeback.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Simona Vetter Sept. 24, 2024, 9:47 a.m. UTC | #1
On Wed, Sep 11, 2024 at 10:58:59AM +0200, Christian König wrote:
> Just returning true here is a no-op, remove the optional callback.
> 
> Signed-off-by: Christian König <christian.koenig@amd.com>

Patches 1-3:

Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>

> ---
>  drivers/gpu/drm/drm_writeback.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_writeback.c b/drivers/gpu/drm/drm_writeback.c
> index a031c335bdb9..33a3c98a962d 100644
> --- a/drivers/gpu/drm/drm_writeback.c
> +++ b/drivers/gpu/drm/drm_writeback.c
> @@ -100,15 +100,9 @@ drm_writeback_fence_get_timeline_name(struct dma_fence *fence)
>  	return wb_connector->timeline_name;
>  }
>  
> -static bool drm_writeback_fence_enable_signaling(struct dma_fence *fence)
> -{
> -	return true;
> -}
> -
>  static const struct dma_fence_ops drm_writeback_fence_ops = {
>  	.get_driver_name = drm_writeback_fence_get_driver_name,
>  	.get_timeline_name = drm_writeback_fence_get_timeline_name,
> -	.enable_signaling = drm_writeback_fence_enable_signaling,
>  };
>  
>  static int create_writeback_properties(struct drm_device *dev)
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_writeback.c b/drivers/gpu/drm/drm_writeback.c
index a031c335bdb9..33a3c98a962d 100644
--- a/drivers/gpu/drm/drm_writeback.c
+++ b/drivers/gpu/drm/drm_writeback.c
@@ -100,15 +100,9 @@  drm_writeback_fence_get_timeline_name(struct dma_fence *fence)
 	return wb_connector->timeline_name;
 }
 
-static bool drm_writeback_fence_enable_signaling(struct dma_fence *fence)
-{
-	return true;
-}
-
 static const struct dma_fence_ops drm_writeback_fence_ops = {
 	.get_driver_name = drm_writeback_fence_get_driver_name,
 	.get_timeline_name = drm_writeback_fence_get_timeline_name,
-	.enable_signaling = drm_writeback_fence_enable_signaling,
 };
 
 static int create_writeback_properties(struct drm_device *dev)