Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4026461ybl; Mon, 3 Feb 2020 11:06:31 -0800 (PST) X-Google-Smtp-Source: APXvYqz1jk6hj205pxC8/rgFYoJnyjXiwBaRgS/VAt6/ewF+Fu5ffK6lISq3g2ZItmzFCpYATCJL X-Received: by 2002:a05:6830:22cd:: with SMTP id q13mr19062706otc.224.1580756791228; Mon, 03 Feb 2020 11:06:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580756791; cv=none; d=google.com; s=arc-20160816; b=ev4+gDMYpteRP5vHboIjKss6vtKJaGwjftC2c3kV8Uot2nEv075x8k7k8fEdf0uNGC Vs/vGE1cOI3SXfCiKakYa8V3jmCYWiOCAAtW3DtcYoFMflokTnhHDC2Vwq0iHR4WOjZe i22Z1Nm9YTPibQUi05urdBzpbuYU8+TO12iKl8zh/FavyejJVK+CpOED5dATVICWk1nC uKCPrJRXnbgbVzfosDlJTSEXzJ1eHzKK9JcqOroDm/+FJxjo8PZkOjOTalhkDvbFZu57 TlDICDX9FQfuxjniOMU6GOuX6NHZIWKfUkTyDKlwGKNE7ks7B+FjbgPx9ZkhAFDqixHY VUUw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZJ+30YfXs8wqF1L2wGS7OrR/btztCMjzKvogF6C3jGE=; b=qUiSieF+Kcp8FTR4LRGUHA5cyLMvlaF1crzw56XRbzkVZcoQoKl/w840U39hb4S9MU Zt1Hko/GbIH/HlPwLOEySV0BMkHGLAOyWNyU9T5Iq6KB7Wp9bWm2UsNN/GWzboee8V5+ BP2N+uTUZgKNq5BDPIzQgH7h7gPNhMfvIv/w75zyQ/wub/VLtHeWVdoZurU+oC5TKgqB lv+/Uk2Z27D790IHB9AWSPO9ugHs3hU7xLoRnyt66Z/z12M7HWsVuihDuu0fU8x174xg GLNZI744+k6hU0uMRkuBQqFoQP9AsXXxZHeCH6YohvLf28fs3fa9DQS+lxclyNbTERBC qI+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ckPW69qh; 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 i78si8637026oib.1.2020.02.03.11.06.19; Mon, 03 Feb 2020 11:06:31 -0800 (PST) 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=@kernel.org header.s=default header.b=ckPW69qh; 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 S1731072AbgBCQnQ (ORCPT + 98 others); Mon, 3 Feb 2020 11:43:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:47104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730542AbgBCQdN (ORCPT ); Mon, 3 Feb 2020 11:33:13 -0500 Received: from localhost (unknown [104.132.45.99]) (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 ACFB72082E; Mon, 3 Feb 2020 16:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580747592; bh=BDjz74+6EHpA358Rpo3pAmTLh3gEXKPR3UIGVHtDEV8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ckPW69qhtMJI3lB4tX2Gaf46zLFfJSZABHHzzEdRRBm9+4MCky1WXd1OnK6Rei2cy cfbjEJxmcP2KC8wFRwpFu05s56G92RPI0trkc++Am6iIwXYxAXXfc7IyEzML1DC5gC trGpxBBXBoJmraCwFw4/dpMYMXenhioBzwuros0s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vincenzo Frascino , Jens Wiklander , Sasha Levin Subject: [PATCH 4.19 59/70] tee: optee: Fix compilation issue with nommu Date: Mon, 3 Feb 2020 16:20:11 +0000 Message-Id: <20200203161920.746158380@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200203161912.158976871@linuxfoundation.org> References: <20200203161912.158976871@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Vincenzo Frascino [ Upstream commit 9e0caab8e0f96f0af7d1dd388e62f44184a75372 ] The optee driver uses specific page table types to verify if a memory region is normal. These types are not defined in nommu systems. Trying to compile the driver in these systems results in a build error: linux/drivers/tee/optee/call.c: In function ‘is_normal_memory’: linux/drivers/tee/optee/call.c:533:26: error: ‘L_PTE_MT_MASK’ undeclared (first use in this function); did you mean ‘PREEMPT_MASK’? return (pgprot_val(p) & L_PTE_MT_MASK) == L_PTE_MT_WRITEALLOC; ^~~~~~~~~~~~~ PREEMPT_MASK linux/drivers/tee/optee/call.c:533:26: note: each undeclared identifier is reported only once for each function it appears in linux/drivers/tee/optee/call.c:533:44: error: ‘L_PTE_MT_WRITEALLOC’ undeclared (first use in this function) return (pgprot_val(p) & L_PTE_MT_MASK) == L_PTE_MT_WRITEALLOC; ^~~~~~~~~~~~~~~~~~~ Make the optee driver depend on MMU to fix the compilation issue. Signed-off-by: Vincenzo Frascino [jw: update commit title] Signed-off-by: Jens Wiklander Signed-off-by: Sasha Levin --- drivers/tee/optee/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tee/optee/Kconfig b/drivers/tee/optee/Kconfig index 3c59e19029bef..3c1ec4e9ed29a 100644 --- a/drivers/tee/optee/Kconfig +++ b/drivers/tee/optee/Kconfig @@ -2,6 +2,7 @@ config OPTEE tristate "OP-TEE" depends on HAVE_ARM_SMCCC + depends on MMU help This implements the OP-TEE Trusted Execution Environment (TEE) driver. -- 2.20.1