diff mbox

[PATCH:drm,1/4] intel: Only define variable when it's used.

Message ID 1405844794-27210-1-git-send-email-wiz@NetBSD.org (mailing list archive)
State Not Applicable
Headers show

Commit Message

Thomas Klausner July 20, 2014, 8:26 a.m. UTC
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
---
 intel/test_decode.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Thomas Klausner Aug. 5, 2014, 9:12 a.m. UTC | #1
Hi!

I'm new here, so I don't know how to find the correct people to review
this patchset. Please let me know.

Thanks,
 Thomas

On Sun, Jul 20, 2014 at 10:26:31AM +0200, Thomas Klausner wrote:
> Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
> ---
>  intel/test_decode.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/intel/test_decode.c b/intel/test_decode.c
> index b710f34..f9127cf 100644
> --- a/intel/test_decode.c
> +++ b/intel/test_decode.c
> @@ -90,7 +90,10 @@ compare_batch(struct drm_intel_decode *ctx, const char *batch_filename)
>  {
>  	FILE *out = NULL;
>  	void *ptr, *ref_ptr, *batch_ptr;
> -	size_t size, ref_size, batch_size;
> +#ifdef HAVE_OPEN_MEMSTREAM
> +	size_t size;
> +#endif
> +	size_t ref_size, batch_size;
>  	const char *ref_suffix = "-ref.txt";
>  	char *ref_filename;
>  
> -- 
> 1.9.4
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
Thomas Klausner Sept. 29, 2014, 12:10 p.m. UTC | #2
Re-ping.
These patches are quite simple...
 Thomas

On Tue, Aug 05, 2014 at 11:12:54AM +0200, Thomas Klausner wrote:
> Hi!
> 
> I'm new here, so I don't know how to find the correct people to review
> this patchset. Please let me know.
> 
> Thanks,
>  Thomas
> 
> On Sun, Jul 20, 2014 at 10:26:31AM +0200, Thomas Klausner wrote:
> > Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
> > ---
> >  intel/test_decode.c | 5 ++++-
> >  1 file changed, 4 insertions(+), 1 deletion(-)
> > 
> > diff --git a/intel/test_decode.c b/intel/test_decode.c
> > index b710f34..f9127cf 100644
> > --- a/intel/test_decode.c
> > +++ b/intel/test_decode.c
> > @@ -90,7 +90,10 @@ compare_batch(struct drm_intel_decode *ctx, const char *batch_filename)
> >  {
> >  	FILE *out = NULL;
> >  	void *ptr, *ref_ptr, *batch_ptr;
> > -	size_t size, ref_size, batch_size;
> > +#ifdef HAVE_OPEN_MEMSTREAM
> > +	size_t size;
> > +#endif
> > +	size_t ref_size, batch_size;
> >  	const char *ref_suffix = "-ref.txt";
> >  	char *ref_filename;
> >  
> > -- 
> > 1.9.4
> > 
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/dri-devel
> > 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
diff mbox

Patch

diff --git a/intel/test_decode.c b/intel/test_decode.c
index b710f34..f9127cf 100644
--- a/intel/test_decode.c
+++ b/intel/test_decode.c
@@ -90,7 +90,10 @@  compare_batch(struct drm_intel_decode *ctx, const char *batch_filename)
 {
 	FILE *out = NULL;
 	void *ptr, *ref_ptr, *batch_ptr;
-	size_t size, ref_size, batch_size;
+#ifdef HAVE_OPEN_MEMSTREAM
+	size_t size;
+#endif
+	size_t ref_size, batch_size;
 	const char *ref_suffix = "-ref.txt";
 	char *ref_filename;