Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5280275yba; Wed, 10 Apr 2019 15:48:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2dpJEWRPwf9PIqHsx8L2bvelnj/r8llPpCLvX2Trle5BY/WTNqB08qYG0VB6gspdQox1e X-Received: by 2002:a62:6c6:: with SMTP id 189mr18789303pfg.36.1554936522023; Wed, 10 Apr 2019 15:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554936522; cv=none; d=google.com; s=arc-20160816; b=mwWB00R8EHR9xFixIG0oPybsklKp8Lx7U796ucs/Bm1fyXxtl7ymUStXzRPsqSCDV8 JQihM8MmQW5a9bDujP8anL1gX2DbvVi977u72K6Z6kKkXoiAzq4fv/4UogPY7vbLey9g 41IWEA6GnCqiNfJnND5tC4kgxJAQiJlF+Q4B3XTYypkxK7ElaM7jJsFZbfPSjhpFbqxq cWlLiOKbtmw09ydROEI55eZEC9ndDkHw3Tg0n3kg8kiVvfKyQNpTlK4wGFOxExePlJYL Vzr/K6+wxekJTbrZV3iKCGtQwXCr7r8ylVKr0FCEjwMMU/ngmLQQwbfv3ajWI1Om9etI atgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AFE2C6yZSCer3XVYw7g8fJ6fBDG37VSELxp7La10+ew=; b=ZaRg+cZuawcmqVlj7rviBlCUcm2UtqvOU3++xQ0a1Ck1956IOqyDqHvTnK4dTjXp9N 80D7VY62nO181zJOOuDXqyAQn9UalLRdGN5DniU0UN2CdrOj7lOt8mREXgkcPIpoo1+M lwerwHKHvOqmAwXuX1aYW50zxW5h132dLqaI2+VmTx3LlvTxjF2/GY8tdJUWb8AybDvX RkZmpHIqkpAH8gli8/iwpTiSapeEtZ+UKMZN7SFQvwbJ6B7FM8/tNeX0ePEezZfgcLbT BXK2A5qIDZLq1PfR+msO5tksErf/Imtmq3tK0DBn7xCQVj+VYklMETrSIc/pwSBSHwX0 FNVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=bhKhjRg9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si31955473pgs.397.2019.04.10.15.48.26; Wed, 10 Apr 2019 15:48:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=bhKhjRg9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726694AbfDJWq4 (ORCPT + 99 others); Wed, 10 Apr 2019 18:46:56 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:56054 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725782AbfDJWq4 (ORCPT ); Wed, 10 Apr 2019 18:46:56 -0400 Received: from zyt.lan (unknown [IPv6:2a02:169:3465::360]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 4125B5C062C; Thu, 11 Apr 2019 00:46:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1554936413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=AFE2C6yZSCer3XVYw7g8fJ6fBDG37VSELxp7La10+ew=; b=bhKhjRg9sLUsQAdSSQReqOD8LmM/kBjkArZsQ4ASvkjIOsHxnBB+kwGlb8BrrSkzb310IH Pk8yFFn4Sa9b/NseUBk3gOHzZQNwQ8k8ValXFeCoQEFAimcJ64xgHKDBrrLSZUAMin0bMX VT6IEds3IYjrV80H89QznDqdGpEk8y4= From: Stefan Agner To: thierry.reding@gmail.com Cc: digetx@gmail.com, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH] gpu: host1x: fix compile error when IOMMU API is not available Date: Thu, 11 Apr 2019 00:47:46 +0200 Message-Id: <4c3d021c73c001f633803e364cfbc6ace3381205.1554936354.git.stefan@agner.ch> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In case the IOMMU API is not available compiling host1x fails with the following error: In file included from drivers/gpu/host1x/hw/host1x06.c:27: drivers/gpu/host1x/hw/channel_hw.c: In function ‘host1x_channel_set_streamid’: drivers/gpu/host1x/hw/channel_hw.c:118:30: error: implicit declaration of function ‘dev_iommu_fwspec_get’; did you mean ‘iommu_fwspec_free’? [-Werror=implicit-function-declaration] struct iommu_fwspec *spec = dev_iommu_fwspec_get(channel->dev->parent); ^~~~~~~~~~~~~~~~~~~~ iommu_fwspec_free Fixes: de5469c21ff9 ("gpu: host1x: Program the channel stream ID") Signed-off-by: Stefan Agner --- drivers/gpu/host1x/hw/channel_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/host1x/hw/channel_hw.c b/drivers/gpu/host1x/hw/channel_hw.c index 27101c04a827..4030d64916f0 100644 --- a/drivers/gpu/host1x/hw/channel_hw.c +++ b/drivers/gpu/host1x/hw/channel_hw.c @@ -114,7 +114,7 @@ static inline void synchronize_syncpt_base(struct host1x_job *job) static void host1x_channel_set_streamid(struct host1x_channel *channel) { -#if HOST1X_HW >= 6 +#if IS_ENABLED(CONFIG_IOMMU_API) && HOST1X_HW >= 6 struct iommu_fwspec *spec = dev_iommu_fwspec_get(channel->dev->parent); u32 sid = spec ? spec->ids[0] & 0xffff : 0x7f; -- 2.21.0