From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philipp Zabel Subject: Re: [PATCH] [RESEND] gpu: ipu-v3: add DRM dependency Date: Tue, 25 Jul 2017 13:52:57 +0200 Message-ID: <1500983577.4101.16.camel@pengutronix.de> References: <20170721205625.3375683-1-arnd@arndb.de> <1500883545.2391.31.camel@pengutronix.de> <1500969825.4101.11.camel@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Arnd Bergmann Cc: Daniel Vetter , Stephen Boyd , Rob Clark , dri-devel , Linux Kernel Mailing List List-Id: dri-devel@lists.freedesktop.org On Tue, 2017-07-25 at 13:35 +0200, Arnd Bergmann wrote: > On Tue, Jul 25, 2017 at 10:03 AM, Philipp Zabel wrote: > > On Tue, 2017-07-25 at 09:33 +0200, Arnd Bergmann wrote: > >> On Mon, Jul 24, 2017 at 10:05 AM, Philipp Zabel wrote: > >> > On Fri, 2017-07-21 at 22:56 +0200, Arnd Bergmann wrote: > > >> If you only need build-testing, you could have a simple wrapper like > >> > >> const struct drm_format_info *ipu_format_info(u32 format) > >> { > >> static const struct drm_format_info invalid = {}; > >> > >> if (!IS_REACHABLE(CONFIG_DRM)) > >> return &invalid; > >> > >> return drm_format_info(format); > >> } > > > > That should work fine. Both ipu_prg_format_supported and > > ipu_prg_channel_configure are only ever called by DRM code. > > Ok, in that case, I think we should just make the compilation > of PRE and PRG conditional and leave them out when DRM > is not built-in (be aware of the case of DRM=m, IPU=y). Maybe we should just: config IMX_IPUV3_CORE depends on DRM || !DRM # if DRM=m, this can't be 'y' regards Philipp