All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Really fix the debug unregister code
@ 2013-07-07 18:03 Ben Widawsky
  2013-07-08 20:07 ` Daniel Vetter
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Widawsky @ 2013-07-07 18:03 UTC (permalink / raw)
  To: intel-gfx; +Cc: Ben Widawsky

This smells like a missing git add, but unregister was not handled
properly in:
commit c032d5491a4d8d56d8364f4919364815b55d3437
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Jul 4 20:39:49 2013 +0200

    drm/i915: convert debugfs creation/destruction to table

fops is already the pointer that we want when incrementally removing.

One really bad side effect of this failure is all tests in our test
suite will fail after module_reload fails.

This fix was actually lazily authored by Chris.

CC: Chris Wilson <chris@chris-wilson.co.uk>
Reported-and-tested-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
---
 drivers/gpu/drm/i915/i915_debugfs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index b49d731..d870f27 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2420,8 +2420,7 @@ void i915_debugfs_cleanup(struct drm_minor *minor)
 				 1, minor);
 	for (i = 0; i < ARRAY_SIZE(i915_debugfs_files); i++) {
 		struct drm_info_list *info_list =
-			(struct drm_info_list *) &i915_debugfs_files[i].fops;
-
+			(struct drm_info_list *)i915_debugfs_files[i].fops;
 		drm_debugfs_remove_files(info_list, 1, minor);
 	}
 }
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/i915: Really fix the debug unregister code
  2013-07-07 18:03 [PATCH] drm/i915: Really fix the debug unregister code Ben Widawsky
@ 2013-07-08 20:07 ` Daniel Vetter
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2013-07-08 20:07 UTC (permalink / raw)
  To: Ben Widawsky; +Cc: intel-gfx

On Sun, Jul 07, 2013 at 11:03:53AM -0700, Ben Widawsky wrote:
> This smells like a missing git add, but unregister was not handled
> properly in:
> commit c032d5491a4d8d56d8364f4919364815b55d3437
> Author: Daniel Vetter <daniel.vetter@ffwll.ch>
> Date:   Thu Jul 4 20:39:49 2013 +0200
> 
>     drm/i915: convert debugfs creation/destruction to table
> 
> fops is already the pointer that we want when incrementally removing.
> 
> One really bad side effect of this failure is all tests in our test
> suite will fail after module_reload fails.
> 
> This fix was actually lazily authored by Chris.
> 
> CC: Chris Wilson <chris@chris-wilson.co.uk>
> Reported-and-tested-by: Ben Widawsky <ben@bwidawsk.net>
> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>

Fixed by merging the right version of my patch (the one you've actually
looked at ...). My apologies for the mess I've caused here.
-Daniel

> ---
>  drivers/gpu/drm/i915/i915_debugfs.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> index b49d731..d870f27 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -2420,8 +2420,7 @@ void i915_debugfs_cleanup(struct drm_minor *minor)
>  				 1, minor);
>  	for (i = 0; i < ARRAY_SIZE(i915_debugfs_files); i++) {
>  		struct drm_info_list *info_list =
> -			(struct drm_info_list *) &i915_debugfs_files[i].fops;
> -
> +			(struct drm_info_list *)i915_debugfs_files[i].fops;
>  		drm_debugfs_remove_files(info_list, 1, minor);
>  	}
>  }
> -- 
> 1.8.3.2
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-08 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-07 18:03 [PATCH] drm/i915: Really fix the debug unregister code Ben Widawsky
2013-07-08 20:07 ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.