Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4011981ybl; Mon, 3 Feb 2020 10:49:24 -0800 (PST) X-Google-Smtp-Source: APXvYqySu2Zye5OqZOfWbHjsSuCl5smIwKY8C7p1gneLGfYsLKPQaw+RGfVEi1DfEtznIaox6AVU X-Received: by 2002:a05:6808:358:: with SMTP id j24mr307063oie.89.1580755764386; Mon, 03 Feb 2020 10:49:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580755764; cv=none; d=google.com; s=arc-20160816; b=z7VTx+kOCWS1dxpClCRA2TYo8PsXC3YENfCh76xKzV8wwrWux+d7daofM1AHLOOn0L To7+/YguszaO/nhLT6Ow9xW3Hc9vPH/1Qa3nKEbDL9KrQQe+T+SvuSQ1UfpMfBgMnusC z5YcJZYo9JHFTN65BIj2OzumuD/10Fv2U+XeowjfwA51MfMrxkIRP4LH+hZmXEOJPLLC WcZgWICZwBA2qnzhQWFc0QJmVlgEEVtTYNxucb1pDg8Fs1fFqqCFSB4h5Hp3P6Kc0lAG mZftLJGMCBtdORznf/IXwa+9Ewhb3TPf7GgXcGPxydb+Evkwi2uxoRdhO5wSeBHz+zYa WCVg== 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=G3l/ziUpJQRrh0+UupsIhoknwMoVBBuIQwHB6jD6mi4=; b=q68Vm6O6+aRR1WO771AAMlqCZgwOZO97eKyGYGpLJlEfX7y0IDvrcQacJMGATqkwvj G3eO5Bk+caAGLZB3ntKYBr0+mIg5YhOKNskmwfRWl8NFGFNEGGrQXch8pTrvSsAxdE6f +y+QkgG4nSm/HOzNmH8sYdqJ57HyctgJFAbKF6D9/aWsNcekc1XIPvAeaPMTpOJ2kDA5 SMn7+GjIVwVVk4b4ApMYYR3sdwuJNZPPzrn0a1Ah3ylYsaMvy2aOi6zyxQk2r1MPPB3W PtcGzBy9hG1n0Mg3EwOeN3fDvNYgF6BeyJB0RYGyQhX5DixVIkjJs72fCcJITi5MHIfc GJhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0rluMNId; 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 k9si5111551oiw.262.2020.02.03.10.49.12; Mon, 03 Feb 2020 10:49:24 -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=0rluMNId; 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 S1731207AbgBCQgm (ORCPT + 99 others); Mon, 3 Feb 2020 11:36:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:51942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730978AbgBCQgf (ORCPT ); Mon, 3 Feb 2020 11:36:35 -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 6DD5D20CC7; Mon, 3 Feb 2020 16:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580747794; bh=OMcloxsntVoIZu1MIUy7FA6ZpCV7IFVY1OTmbMPJnKg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0rluMNId1oBPaj7oT1CSKYkdASEDt0IVUSKLSp7Mu/vYlQaBGSM6zpdqI/fH65PHm UNzA4TnZ3v9uCDRHrANcoNFrCKGz5eh6swfZw+0/cEMA/34jpb24PUGkYRZOZ467sM DCxtZj16JlIp9xPSabdlrxW4RDSHfQ5u0pXQ2YLk= 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 5.4 74/90] tee: optee: Fix compilation issue with nommu Date: Mon, 3 Feb 2020 16:20:17 +0000 Message-Id: <20200203161926.370960124@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200203161917.612554987@linuxfoundation.org> References: <20200203161917.612554987@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 d1ad512e17089..3ca71e3812ed4 100644 --- a/drivers/tee/optee/Kconfig +++ b/drivers/tee/optee/Kconfig @@ -3,6 +3,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