From patchwork Tue Apr 17 08:52:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 10344579 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4D36460542 for ; Tue, 17 Apr 2018 08:52:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C14F28A07 for ; Tue, 17 Apr 2018 08:52:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3050E28A0D; Tue, 17 Apr 2018 08:52:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C8F928A07 for ; Tue, 17 Apr 2018 08:52:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751238AbeDQIwW (ORCPT ); Tue, 17 Apr 2018 04:52:22 -0400 Received: from osg.samsung.com ([64.30.133.232]:33719 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200AbeDQIwV (ORCPT ); Tue, 17 Apr 2018 04:52:21 -0400 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 3A5B3293B1; Tue, 17 Apr 2018 01:52:21 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fD99GNaK9jD6; Tue, 17 Apr 2018 01:52:19 -0700 (PDT) Received: from vento.lan (unknown [201.86.164.1]) by osg.samsung.com (Postfix) with ESMTPSA id 20B79293A9; Tue, 17 Apr 2018 01:52:18 -0700 (PDT) Date: Tue, 17 Apr 2018 05:52:15 -0300 From: Mauro Carvalho Chehab To: Matthias Schwarzott Cc: Linux Media Mailing List , Mauro Carvalho Chehab Subject: Re: [PATCH 01/16] omap: omap-iommu.h: allow building drivers with COMPILE_TEST Message-ID: <20180417055215.084ec137@vento.lan> In-Reply-To: References: <6741dd205de1e7d4e80a93386095db2a0c604bb5.1522949748.git.mchehab@s-opensource.com> Organization: Samsung X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Em Sun, 8 Apr 2018 12:12:17 +0200 Matthias Schwarzott escreveu: > Am 05.04.2018 um 19:54 schrieb Mauro Carvalho Chehab: > > Drivers that depend on omap-iommu.h (currently, just omap3isp) > > need a stub implementation in order to be built with COMPILE_TEST. > > > > Signed-off-by: Mauro Carvalho Chehab > > --- > > include/linux/omap-iommu.h | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/include/linux/omap-iommu.h b/include/linux/omap-iommu.h > > index c1aede46718b..0c21fc5b002e 100644 > > --- a/include/linux/omap-iommu.h > > +++ b/include/linux/omap-iommu.h > > @@ -13,7 +13,12 @@ > > #ifndef _OMAP_IOMMU_H_ > > #define _OMAP_IOMMU_H_ > > > > +#ifdef CONFIG_OMAP_IOMMU > > extern void omap_iommu_save_ctx(struct device *dev); > > extern void omap_iommu_restore_ctx(struct device *dev); > > +#else > > +static inline void omap_iommu_save_ctx(struct device *dev) {}; > > +static inline void omap_iommu_restore_ctx(struct device *dev) {}; > > The semicolons at end of line are unnecessary. > > > +#endif > > > > #endif > > Hi Matthias, Somehow, I missed your comment. New version enclosed. Thanks, Mauro [PATCH v3] omap: omap-iommu.h: allow building drivers with COMPILE_TEST Drivers that depend on omap-iommu.h (currently, just omap3isp) need a stub implementation in order to be built with COMPILE_TEST. Signed-off-by: Mauro Carvalho Chehab --- include/linux/omap-iommu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/omap-iommu.h b/include/linux/omap-iommu.h index c1aede46718b..0c21fc5b002e 100644 --- a/include/linux/omap-iommu.h +++ b/include/linux/omap-iommu.h @@ -13,7 +13,12 @@ #ifndef _OMAP_IOMMU_H_ #define _OMAP_IOMMU_H_ +#ifdef CONFIG_OMAP_IOMMU extern void omap_iommu_save_ctx(struct device *dev); extern void omap_iommu_restore_ctx(struct device *dev); +#else +static inline void omap_iommu_save_ctx(struct device *dev) {} +static inline void omap_iommu_restore_ctx(struct device *dev) {} +#endif #endif