Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754272AbbFELVS (ORCPT ); Fri, 5 Jun 2015 07:21:18 -0400 Received: from mail-qk0-f179.google.com ([209.85.220.179]:36524 "EHLO mail-qk0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbbFELVP (ORCPT ); Fri, 5 Jun 2015 07:21:15 -0400 Date: Fri, 5 Jun 2015 13:20:52 +0200 From: Thierry Reding To: Geert Uytterhoeven Cc: Linus Walleij , Alexandre Courbot , Arnd Bergmann , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 01/27] drm/bridge: ptn3460: #include , depend on GPIOLIB Message-ID: <20150605112050.GA17776@ulmo.nvidia.com> References: <1430836404-15513-1-git-send-email-geert@linux-m68k.org> <1430843563-18615-1-git-send-email-geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <1430843563-18615-1-git-send-email-geert@linux-m68k.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2991 Lines: 72 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 05, 2015 at 06:32:17PM +0200, Geert Uytterhoeven wrote: > If GPIOLIB=3Dn and asm-generic/gpio.h is not used: >=20 > drivers/gpu/drm/bridge/ptn3460.c: In function =E2=80=98ptn3460_pre_en= able=E2=80=99: > drivers/gpu/drm/bridge/ptn3460.c:135: error: implicit declaration of = function =E2=80=98gpiod_set_value=E2=80=99 > drivers/gpu/drm/bridge/ptn3460.c: In function =E2=80=98ptn3460_probe= =E2=80=99: > drivers/gpu/drm/bridge/ptn3460.c:333: error: implicit declaration of = function =E2=80=98devm_gpiod_get=E2=80=99 > drivers/gpu/drm/bridge/ptn3460.c:333: warning: assignment makes point= er from integer without a cast > drivers/gpu/drm/bridge/ptn3460.c:340: error: implicit declaration of = function =E2=80=98gpiod_direction_output=E2=80=99 > drivers/gpu/drm/bridge/ptn3460.c:346: warning: assignment makes point= er from integer without a cast >=20 > Add the missing #include to fix this. >=20 > As the resulting driver won't work with GPIOLIB=3Dn anyway, make > DRM_PTN3460 depend on GPIOLIB || COMPILE_TEST. >=20 > Signed-off-by: Geert Uytterhoeven > Cc: David Airlie > Cc: dri-devel@lists.freedesktop.org > --- > drivers/gpu/drm/bridge/Kconfig | 4 ++-- > drivers/gpu/drm/bridge/ptn3460.c | 1 + > 2 files changed, 3 insertions(+), 2 deletions(-) Applied, thanks. Note that I dropped the part about adding the GPIOLIB dependency because that had been attempted previously to fix this, but it causes recursive dependencies on PowerPC (ppc64_defconfig). I don't know of a way to untangle those (I tried and failed miserably), so I think adding the include is really as good as it'll get. Thierry --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJVcYYPAAoJEN0jrNd/PrOhgsMP+QGPbT8V8r3U+G33xG8hGMED JxbnlEN2lvApaZwnglPWdTyiMEQwLrVGowJo1eGhkWMu34CynMW03ITDY4oKyN3X rdiIGmLsZwlqvJFeC6lADezhkWkpL40VMdIg6ojseIt7xyc9hJVxnLsDqOnxL2LF bVMhnpIRzkJ7x5FyBPgRATZEWuy1f/yu/yq4yM7aiVewzL+SII9uOHX9L7iJ5EKO 5iAT9RfVSDrfwNyR96hNa2IuWrc/F21ST/BnwudytzUBTk1Zuh1LMOJcrfhpVhjL jISwm2lLQt+V3+zsB7VweTDp+kF9denBFWHdUDzK/zGNo4Rt/p4whD2qHpW11Dg3 mX71LweAT9a+t88sqeO5boeCpTjUg3HDZoD5hNrxCCe/vxx5U2OyxfeIvagpxEIE faD2yyKHckToegv2uae+GvGtz2Ghuy2AH1/wUekeEdIExe2q/bdtBIivPpnThAgU k38DDsKm0lNw8fRoYJWuTibLVUcSyBgM5y9gAGLgguYUFQVIn4bWeLKYRUMfW0PX q5JIkPiPM9aIfHsf0hgdRNemgqkPDGkZnshhhiwgTnao8nc/0gO3RW6FB4z7Shhn Hm/nQYp/KkLMmzKQRKO7DgXVbuxEoBG1M8KUJPL3K+XCnpYoYCuVbpEyRw/Cfb54 XSdTsDv/gKOFZgj8hggO =gUx0 -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/