From: Tobias Doerffel Subject: Re: [PATCH] drm/i915: intel_overlay_print_error_state() only needed for debugfs (v2) Date: Thu, 26 Aug 2010 10:31:09 +0200 Message-ID: <201008261031.14512.tobias.doerffel@gmail.com> References: <1282776152.3711.23.camel@mattotaupa> <1282780336-9271-1-git-send-email-tobias.doerffel@gmail.com> <4C760C89.1000107@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1970770602==" Return-path: Received: from jessica.hrz.tu-chemnitz.de (jessica.hrz.tu-chemnitz.de [134.109.132.47]) by gabe.freedesktop.org (Postfix) with ESMTP id A2FA69E894 for ; Thu, 26 Aug 2010 01:55:11 -0700 (PDT) In-Reply-To: <4C760C89.1000107@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Andre =?iso-8859-1?q?M=FCller?= Cc: intel-gfx@lists.freedesktop.org, akpm@linux-foundation.org List-Id: intel-gfx@lists.freedesktop.org --===============1970770602== Content-Type: multipart/signed; boundary="nextPart17819723.E11ogIZnWc"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart17819723.E11ogIZnWc Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Am Donnerstag, 26. August 2010, um 08:41:13 schrieb Andre M=FCller: > 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. > >=20 > > Signed-off-by: Tobias Doerffel >=20 > You may want to refer to > https://bugzilla.kernel.org/show_bug.cgi?id=3D16811 > in the description. > Andrew Morton has a different fix for the failure > applied to -mm, which just adds an (unconditional) > #include . Yes, that works as well however the affected function is not required at al= l=20 without debugfs so we can leave it out completely (like done with all the=20 other functions in i915_debufs.c) and save some bytes. Regards Toby > Regards, > Andre >=20 > > --- > >=20 > > drivers/gpu/drm/i915/intel_overlay.c | 2 ++ > > 1 files changed, 2 insertions(+), 0 deletions(-) > >=20 > > 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 > >=20 > > @@ -1461,6 +1461,7 @@ err: > > return NULL; > > =20 > > } > >=20 > > +#ifdef CONFIG_DEBUG_FS > >=20 > > void > > intel_overlay_print_error_state(struct seq_file *m, struct > > intel_overlay_error_state *error) { > >=20 > > @@ -1513,3 +1514,4 @@ intel_overlay_print_error_state(struct seq_file *= m, > > struct intel_overlay_error_s > >=20 > > P(UVSCALEV); > > =20 > > #undef P > > } > >=20 > > +#endif /* CONFIG_DEBUG_FS */ --nextPart17819723.E11ogIZnWc Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkx2Jk4ACgkQHsjdpw2Oaac83gCdHJ5eV5G2+CkiX5UybcJXQ04c 22wAoKhS7TpYzjjhBAdkzB1mqGuOh3p+ =wHXH -----END PGP SIGNATURE----- --nextPart17819723.E11ogIZnWc-- --===============1970770602== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1970770602==--