From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751746AbdGYLxB (ORCPT ); Tue, 25 Jul 2017 07:53:01 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:49035 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751657AbdGYLxA (ORCPT ); Tue, 25 Jul 2017 07:53:00 -0400 Message-ID: <1500983577.4101.16.camel@pengutronix.de> Subject: Re: [PATCH] [RESEND] gpu: ipu-v3: add DRM dependency From: Philipp Zabel To: Arnd Bergmann Cc: Daniel Vetter , Stephen Boyd , Rob Clark , dri-devel , Linux Kernel Mailing List Date: Tue, 25 Jul 2017 13:52:57 +0200 In-Reply-To: References: <20170721205625.3375683-1-arnd@arndb.de> <1500883545.2391.31.camel@pengutronix.de> <1500969825.4101.11.camel@pengutronix.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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