From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EF97C3F2CE for ; Mon, 16 Mar 2020 15:39:30 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 02CB62071C for ; Mon, 16 Mar 2020 15:39:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VjUfHswC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 02CB62071C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CB74E86F99; Mon, 16 Mar 2020 15:39:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Iqf1t1cageg; Mon, 16 Mar 2020 15:39:29 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4232386EFF; Mon, 16 Mar 2020 15:39:29 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 27E63C1D7C; Mon, 16 Mar 2020 15:39:29 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 900FAC013E for ; Mon, 16 Mar 2020 15:39:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7E8A588C8E for ; Mon, 16 Mar 2020 15:39:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T1VQd8B3UnQf for ; Mon, 16 Mar 2020 15:39:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id 86A4B88C80 for ; Mon, 16 Mar 2020 15:39:26 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id a25so21826843wrd.0 for ; Mon, 16 Mar 2020 08:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Q0yzkSCm1Xcsm6hOYYsbTqS4amhDbi797Ag8RmkjurU=; b=VjUfHswCT1UKNAujAPhK8VCtliVrWtYIYyppBsAtlnbFCrxaad4Uc2A5soRvyi8Lz/ SqPfxSFRDIQCzDyvLFNz52fC+JJkBauYJCclNDsvmtzidrUQROIsVQV6zcwzj00LmPWd He65rfdf7A/Oc+IFkmPIIFP2thDMmrP7w+MUVZbhd7yiRPnRF5U7lNWsW24hYJVoJYeR 8wHBvHBpk9d8ZmoBo1s6yLkrnEqIRgPQmKuMyjkvlD33ynh0mEfoeYi9XfpNu36ky7nN jntyaqHoGFn/okVfozaKqLoYwnG4+U3ZIqhxZ9ETSHCiCMC6Iw7WS6sjUwRs0+vfP+X7 +bQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Q0yzkSCm1Xcsm6hOYYsbTqS4amhDbi797Ag8RmkjurU=; b=SN3BLPMdMxtgsaGUByY9WUH1vLtRDoaRq4YL3+U2OfW99u7P9epeaUGBE2ipnc6ic5 ay0zPUChGDZDA6Ao86XO3N4gOxMVGbS3jgj+z9hEVK9vJXpK5YPFMckeAPKbIKJ6rCNM 32BOb8ddziuVizN5No0I33gNAf7OCzh0Kczzeypwsipcj4kLuLnk2qczahakkIAJ9WGx 7khCA/Jkj+wp301JNMCPMbE2lNjPMB0x8e3TXalMcZjwxOmabt7jD5n3xTvBi7s6xtdK TUiEbUtCth6KjV0IJV4v/tGwMM2P4aRudnn4YLQH9S+mE5He0vRb3txkmxwoYH3wQzzh i5Zw== X-Gm-Message-State: ANhLgQ0M7gFpK+WyC/0iTI8Y6uvzMDDXiTL5FkpQrGg6S0b5ceVfOjtf c5hLMOa6T0PfIIgQ+W5UP6a4bQ== X-Google-Smtp-Source: ADFU+vs0mvRenL1g+U69U0qbNtFq1SVNLFNkkOGefFPc2C+th0hGKZ/JyHhYDuRn/eeS5wXEeUsB/Q== X-Received: by 2002:adf:d4ce:: with SMTP id w14mr26159791wrk.101.1584373164974; Mon, 16 Mar 2020 08:39:24 -0700 (PDT) Received: from myrica ([2001:171b:226b:54a0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id 19sm143446wma.3.2020.03.16.08.39.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2020 08:39:24 -0700 (PDT) Date: Mon, 16 Mar 2020 16:39:16 +0100 From: Jean-Philippe Brucker To: Joerg Roedel Subject: Re: [PATCH 01/15] iommu: Define dev_iommu_fwspec_get() for !CONFIG_IOMMU_API Message-ID: <20200316153916.GB304669@myrica> References: <20200310091229.29830-1-joro@8bytes.org> <20200310091229.29830-2-joro@8bytes.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200310091229.29830-2-joro@8bytes.org> Cc: Will Deacon , linux-arm-msm@vger.kernel.org, Sudeep Holla , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, iommu@lists.linux-foundation.org, Thierry Reding , linux-mediatek@lists.infradead.org, Andy Gross , Joerg Roedel , Hanjun Guo , Matthias Brugger , Bjorn Andersson , Sean Paul , Robin Murphy X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Tue, Mar 10, 2020 at 10:12:15AM +0100, Joerg Roedel wrote: > From: Joerg Roedel > > There are users outside of the IOMMU code that need to call that > function. Define it for !CONFIG_IOMMU_API too so that compilation does > not break. > > Reported-by: kbuild test robot > Signed-off-by: Joerg Roedel Reviewed-by: Jean-Philippe Brucker As a result drivers/gpu/host1x/hw/channel_hw.c and drivers/gpu/drm/tegra/vic.c can lose their #ifdef CONFIG_IOMMU_API > --- > include/linux/iommu.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/linux/iommu.h b/include/linux/iommu.h > index d1b5f4d98569..3c4ca041d7a2 100644 > --- a/include/linux/iommu.h > +++ b/include/linux/iommu.h > @@ -1073,6 +1073,10 @@ static inline int iommu_sva_unbind_gpasid(struct iommu_domain *domain, > return -ENODEV; > } > > +static inline struct iommu_fwspec *dev_iommu_fwspec_get(struct device *dev) > +{ > + return NULL; > +} > #endif /* CONFIG_IOMMU_API */ > > #ifdef CONFIG_IOMMU_DEBUGFS > -- > 2.17.1 > _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu