All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs
@ 2010-08-25 21:54 Tobias Doerffel
  2010-08-25 22:42 ` Paul Menzel
  0 siblings, 1 reply; 5+ messages in thread
From: Tobias Doerffel @ 2010-08-25 21:54 UTC (permalink / raw)
  To: intel-gfx

The function intel_overlay_print_error_state() is called from within
i915_error_state() in i915_debufs.c which is only built if
CONFIG_DEBUG_FS is set. When building without this option, seq_printf()
is not declared in intel_overlay.c and the file fails to compile.
Furthermore the whole function is superfluous in this case. Therefore
only build it if CONFIG_DEBUG_FS is set.
---
 drivers/gpu/drm/i915/intel_overlay.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c
index 4f00390..74feb89 100644
--- a/drivers/gpu/drm/i915/intel_overlay.c
+++ b/drivers/gpu/drm/i915/intel_overlay.c
@@ -1461,6 +1461,7 @@ err:
 	return NULL;
 }
 
+#ifdef CONFIG_DEBUG_FS
 void
 intel_overlay_print_error_state(struct seq_file *m, struct intel_overlay_error_state *error)
 {
@@ -1513,3 +1514,4 @@ intel_overlay_print_error_state(struct seq_file *m, struct intel_overlay_error_s
 	P(UVSCALEV);
 #undef P
 }
+#endif	/* CONFIG_DEBUG_FS */
-- 
1.7.1

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

* Re: [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs
  2010-08-25 21:54 [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs Tobias Doerffel
@ 2010-08-25 22:42 ` Paul Menzel
  2010-08-25 23:52   ` [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs (v2) Tobias Doerffel
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Menzel @ 2010-08-25 22:42 UTC (permalink / raw)
  To: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 542 bytes --]

Am Mittwoch, den 25.08.2010, 23:54 +0200 schrieb Tobias Doerffel:
> The function intel_overlay_print_error_state() is called from within
> i915_error_state() in i915_debufs.c which is only built if
> CONFIG_DEBUG_FS is set. When building without this option, seq_printf()
> is not declared in intel_overlay.c and the file fails to compile.
> Furthermore the whole function is superfluous in this case. Therefore
> only build it if CONFIG_DEBUG_FS is set.

Signed-off-by is missing. Please resent as v2.

[…]


Thanks,

Paul

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs (v2)
  2010-08-25 22:42 ` Paul Menzel
@ 2010-08-25 23:52   ` Tobias Doerffel
       [not found]     ` <4C760C89.1000107@gmail.com>
  2010-08-26 10:02     ` Chris Wilson
  0 siblings, 2 replies; 5+ messages in thread
From: Tobias Doerffel @ 2010-08-25 23:52 UTC (permalink / raw)
  To: intel-gfx

The function intel_overlay_print_error_state() is called from within
i915_error_state() in i915_debufs.c which is only built if
CONFIG_DEBUG_FS is set. When building without this option, seq_printf()
is not declared in intel_overlay.c and the file fails to compile.
Furthermore the whole function is superfluous in this case. Therefore
only build it if CONFIG_DEBUG_FS is set.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
---
 drivers/gpu/drm/i915/intel_overlay.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c
index 4f00390..74feb89 100644
--- a/drivers/gpu/drm/i915/intel_overlay.c
+++ b/drivers/gpu/drm/i915/intel_overlay.c
@@ -1461,6 +1461,7 @@ err:
 	return NULL;
 }
 
+#ifdef CONFIG_DEBUG_FS
 void
 intel_overlay_print_error_state(struct seq_file *m, struct intel_overlay_error_state *error)
 {
@@ -1513,3 +1514,4 @@ intel_overlay_print_error_state(struct seq_file *m, struct intel_overlay_error_s
 	P(UVSCALEV);
 #undef P
 }
+#endif	/* CONFIG_DEBUG_FS */
-- 
1.7.1

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

* Re: [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs (v2)
       [not found]     ` <4C760C89.1000107@gmail.com>
@ 2010-08-26  8:31       ` Tobias Doerffel
  0 siblings, 0 replies; 5+ messages in thread
From: Tobias Doerffel @ 2010-08-26  8:31 UTC (permalink / raw)
  To: Andre Müller; +Cc: intel-gfx, akpm


[-- Attachment #1.1: Type: Text/Plain, Size: 1906 bytes --]

Hi,

Am Donnerstag, 26. August 2010, um 08:41:13 schrieb Andre Müller:
> On 08/26/10 01:52, Tobias Doerffel wrote:
> > The function intel_overlay_print_error_state() is called from within
> > i915_error_state() in i915_debufs.c which is only built if
> > CONFIG_DEBUG_FS is set. When building without this option, seq_printf()
> > is not declared in intel_overlay.c and the file fails to compile.
> > Furthermore the whole function is superfluous in this case. Therefore
> > only build it if CONFIG_DEBUG_FS is set.
> > 
> > Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
> 
> You may want to refer to
> https://bugzilla.kernel.org/show_bug.cgi?id=16811
> in the description.
> Andrew Morton has a different fix for the failure
> applied to -mm, which just adds an (unconditional)
> #include <linux/seq_file.h>.

Yes, that works as well however the affected function is not required at all 
without debugfs so we can leave it out completely (like done with all the 
other functions in i915_debufs.c) and save some bytes.

Regards

Toby

> Regards,
> Andre
> 
> > ---
> > 
> >  drivers/gpu/drm/i915/intel_overlay.c |    2 ++
> >  1 files changed, 2 insertions(+), 0 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/intel_overlay.c
> > b/drivers/gpu/drm/i915/intel_overlay.c index 4f00390..74feb89 100644
> > --- a/drivers/gpu/drm/i915/intel_overlay.c
> > +++ b/drivers/gpu/drm/i915/intel_overlay.c
> > 
> > @@ -1461,6 +1461,7 @@ err:
> >  	return NULL;
> >  
> >  }
> > 
> > +#ifdef CONFIG_DEBUG_FS
> > 
> >  void
> >  intel_overlay_print_error_state(struct seq_file *m, struct
> >  intel_overlay_error_state *error) {
> > 
> > @@ -1513,3 +1514,4 @@ intel_overlay_print_error_state(struct seq_file *m,
> > struct intel_overlay_error_s
> > 
> >  	P(UVSCALEV);
> >  
> >  #undef P
> >  }
> > 
> > +#endif	/* CONFIG_DEBUG_FS */


[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs (v2)
  2010-08-25 23:52   ` [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs (v2) Tobias Doerffel
       [not found]     ` <4C760C89.1000107@gmail.com>
@ 2010-08-26 10:02     ` Chris Wilson
  1 sibling, 0 replies; 5+ messages in thread
From: Chris Wilson @ 2010-08-26 10:02 UTC (permalink / raw)
  To: Tobias Doerffel, intel-gfx

On Thu, 26 Aug 2010 01:52:16 +0200, Tobias Doerffel <tobias.doerffel@gmail.com> wrote:
> The function intel_overlay_print_error_state() is called from within
> i915_error_state() in i915_debufs.c which is only built if
> CONFIG_DEBUG_FS is set. When building without this option, seq_printf()
> is not declared in intel_overlay.c and the file fails to compile.
> Furthermore the whole function is superfluous in this case. Therefore
> only build it if CONFIG_DEBUG_FS is set.
> 
> Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
I've already posted a better patch to remove the compile warnings as well.

The simple inclusion of seq_file.h is the best patch to go into mainline
atm, with the more complete patch coming in via drm-intel-next.

-- 
Chris Wilson, Intel Open Source Technology Centre

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

end of thread, other threads:[~2010-08-26 10:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-25 21:54 [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs Tobias Doerffel
2010-08-25 22:42 ` Paul Menzel
2010-08-25 23:52   ` [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs (v2) Tobias Doerffel
     [not found]     ` <4C760C89.1000107@gmail.com>
2010-08-26  8:31       ` Tobias Doerffel
2010-08-26 10:02     ` Chris Wilson

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.