Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1238706pxu; Mon, 23 Nov 2020 15:37:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbvbTqVt+s3mmnPf+At+mLbsChMpQ1g6spFELlwAcPlDqT3oqw3a8u2X8YwUBzIHB+INBm X-Received: by 2002:aa7:c4c2:: with SMTP id p2mr1519521edr.371.1606174641984; Mon, 23 Nov 2020 15:37:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174641; cv=none; d=google.com; s=arc-20160816; b=U1mQmTb2DQT4jrLckmtVovZnvLhbpWCuqOPnR/zG4csMaMYzZC9kWtrDHh0FXvOHxE qSwymOJEeBlpl7AW5qNjWgCVu4rI4wHZtPY1uAF/vrvUYnBKPiCcn1dMcy8vsVqVvMIh ADxjQFn9bxAGMyCRAr5LLjRzgH/JBd8ViNi7duKf+a8ogArwxn8etucPbJLAQScHUM6t HwQo468jpjma3ITyKD4gpzM62zvX5Px5f3jsjeVRYOEMRVKGje7wGMs2sQUsifHxUEEd Bw708ShSkKipAaMZ/09cyS7J1KnIiCYmyqcZQV9GlWfv0FwVt91gy9Bc0cO0AA8OYBuG W/0Q== 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=3uRqDuNYOx3ts0xRazEKjEKvtyniqtQBTZ225qwz1Hs=; b=M+iIIcIDi3a185iUGZH3yIvoKcGvo39uIxHG63sRKUuk7OjzQZIrJwIxeALpRJNiRL Bloq+9+zWPeZx+9m9YqGmFL1lQcxizqGnF9IBJzHuuwmVqulKuYDzHKFqfb3x6Y+slCU DP2cCtqiuE2+lZXaRSSjVmEUP5del6G5PTAfaVaR+zzOSwOcJt2Vw63pXFlyoAtQLXRy qu5ZwCtSPlVEoXdpSZSrmumajpA9d912wxk5OU1A2ushNCEWNy0J/9WWwJT2ugGmiBPm YOqHq8cP4ViRduYF6u1KMGi13gYVb3rgxdbQESEj8XQKWG9mv1gqItc9HFn8cWNn3naz q+Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ewcBLt7O; 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 g24si7558970edj.168.2020.11.23.15.36.59; Mon, 23 Nov 2020 15:37:21 -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=ewcBLt7O; 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 S1732061AbgKWMiJ (ORCPT + 99 others); Mon, 23 Nov 2020 07:38:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:50468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732035AbgKWMiA (ORCPT ); Mon, 23 Nov 2020 07:38:00 -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 507F22065E; Mon, 23 Nov 2020 12:37:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135079; bh=9hworobYu1vEnSNzYPzSF1B91iYxJsYXaPzfOxa7KpA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ewcBLt7O+IcUyqjUgz75otonRHVETyYhqcqyL8al8Z6qToKhCFZuZhFlVtHpOH/wo vAFIXSgx7JvQleKWLMc2Y1zyNnEbf+4FwVbh4heErvGhzdJdj4tZ+gmajzuSqHIwug EavD4mtzQywEet+9nrHtbc2bu0WRhRL5Oo94IOjs= 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.4 097/158] iommu/vt-d: Move intel_iommu_gfx_mapped to Intel IOMMU header Date: Mon, 23 Nov 2020 13:22:05 +0100 Message-Id: <20201123121824.613846589@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@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 ed870da78326b..e54d51308f6f5 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h @@ -707,6 +707,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