Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1327613pxu; Mon, 23 Nov 2020 18:42:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlkBShhKVG6OaN5Yq9aWLuuPiVu6pD7GVuJ9k3F3iZVQQN/V5vRG9E3a+8fV7PNclk+A7Q X-Received: by 2002:a17:906:374a:: with SMTP id e10mr2226968ejc.246.1606185728169; Mon, 23 Nov 2020 18:42:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606185728; cv=none; d=google.com; s=arc-20160816; b=Wokn/kXqmx7NX5Advy6htb622b1RvB6OZOPoElp+mSLwIBltST5w+BVbWtXmFgmxF3 8K/tlcsWludisWBa73SkD5RqyFgOIhvjYgysNoMTWdAJ1QFFgSHa6r72U4KZMhCpBdXr uBknhh6w33lA4PUXsNZeMYknVGMz+uYi5IhEqR91cYu568XMQriRo5OpkB9BHMrXO9o5 dqmV3krjspT+gTrfiKQj6G48ZrMlOP9QFsLmRg79Nk0j1d/x/IjmFEVmYUftoVo2gZxH WJteSCnZQVC49ubdqGHr4TPrATjSLJxz4Brb3uFxy5+tFhA4XPv6pDw5RQPFkH4bn28Y mscA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YOwMAmOQDf+goHShzvoeJO6mfMPICLI9ZmPn/Hn0its=; b=KGjqP9U37eW4E/RTentlYyJEozpZIynviZcm9t5l4Gpp3Lg7MXm3fhkKZ3Xc7ns1s9 uEWLw3HedZHcUEEgVvjNmEVfq7/56mP+gwKK+qRHaLQ5QXAmwc+7USNJcdH/yjuUTuQa AOsLvfZPGzIbovzOrhwfYJptBS6pORhBqjxV5fCZwXIRYC64ql7XI/bR2MfG/lVRVyCy J5dmY1NARLgeQ3lWUeZuZdw5+0W4Jqy3RVwupIsmLLyAMjNbiPdCbso4npYWdIKuZV8v xQ2XDaPvCVg/9iZV6ivBr0fLGX4BHX7U29GoCfOvWNbZ3UppM5H+sowx+bwdEYL6u1tg b9Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pHwl7Opy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dx6si7593980ejb.698.2020.11.23.18.41.46; Mon, 23 Nov 2020 18:42:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pHwl7Opy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388524AbgKWNJo (ORCPT + 99 others); Mon, 23 Nov 2020 08:09:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:33618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732781AbgKWMsk (ORCPT ); Mon, 23 Nov 2020 07:48:40 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BBD9D2158C; Mon, 23 Nov 2020 12:47:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135677; bh=YZej0oFCHfEySeRMmAj+CJN5Dp4nWdKSWd/ZBBpkli0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pHwl7OpyNeKOE/LU7zgWiin2PgCl7Y80bBg9N5+WAaKVVlczgiyx1EPGI+24fphBi Ok/FCHZY7V6cwlgkJW3IfTZtEU9mGroYOPJqj9DcwQBj4tnsgxcO7nK7Dv+mjGzmCZ eRJoBktyCk1RaInvy7bk/mMS4PiTgxVokUFmlaxk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Lu Baolu , Joerg Roedel , Sasha Levin Subject: [PATCH 5.9 156/252] iommu/vt-d: Move intel_iommu_gfx_mapped to Intel IOMMU header Date: Mon, 23 Nov 2020 13:21:46 +0100 Message-Id: <20201123121843.121692548@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121835.580259631@linuxfoundation.org> References: <20201123121835.580259631@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko [ Upstream commit c7eb900f5f45eeab1ea1bed997a2a12d8b5907bc ] Static analyzer is not happy about intel_iommu_gfx_mapped declaration: .../drivers/iommu/intel/iommu.c:364:5: warning: symbol 'intel_iommu_gfx_mapped' was not declared. Should it be static? Move its declaration to Intel IOMMU header file. Signed-off-by: Andy Shevchenko Reviewed-by: Lu Baolu Link: https://lore.kernel.org/r/20200828161212.71294-1-andriy.shevchenko@linux.intel.com Signed-off-by: Joerg Roedel Signed-off-by: Sasha Levin --- include/drm/intel-gtt.h | 5 +---- include/linux/intel-iommu.h | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/drm/intel-gtt.h b/include/drm/intel-gtt.h index 71d81923e6b06..abfefaaf897a0 100644 --- a/include/drm/intel-gtt.h +++ b/include/drm/intel-gtt.h @@ -5,6 +5,7 @@ #define _DRM_INTEL_GTT_H #include +#include #include void intel_gtt_get(u64 *gtt_total, @@ -33,8 +34,4 @@ void intel_gtt_clear_range(unsigned int first_entry, unsigned int num_entries); /* flag for GFDT type */ #define AGP_USER_CACHED_MEMORY_GFDT (1 << 3) -#ifdef CONFIG_INTEL_IOMMU -extern int intel_iommu_gfx_mapped; -#endif - #endif diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index b1ed2f25f7c0d..6a3ddaabf3f50 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h @@ -792,6 +792,7 @@ extern int iommu_calculate_max_sagaw(struct intel_iommu *iommu); extern int dmar_disabled; extern int intel_iommu_enabled; extern int intel_iommu_tboot_noforce; +extern int intel_iommu_gfx_mapped; #else static inline int iommu_calculate_agaw(struct intel_iommu *iommu) { -- 2.27.0