Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp643434ybl; Fri, 10 Jan 2020 04:29:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxVuEJidtwnei/D44WgQUOsTR+rok2PHWmxv9LV7aYY+0RdvGUb+sChnU5vTg6r1+UfrMVi X-Received: by 2002:aca:4ec3:: with SMTP id c186mr1946314oib.53.1578659390572; Fri, 10 Jan 2020 04:29:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578659390; cv=none; d=google.com; s=arc-20160816; b=A/6vc7IBF/ukJ+gUe2C/7rvyfaV4EarHlDMGinGMKD7nda6+Me0FUYnR4Nh+/6kYeU b4GPCaC3r3p8Op4SYVjutzAuby1uA97MLdnJiDFGwSALqqd6Ae0uM3GOIddf3KYgRxHr Qfxve4qumafBXJqTbdwH0FMjFp9Ht6ymBuuBzp4zIiv82Jpv88SzZos+munbMACYIpGH UbOyz+snwac2IsRqlLZzwHRl0IQI7dRnCFoMZWSpsLjlKa6xq+Dcsk9bOt+uyicF4pGJ wO9HzQ1HwsPOMSmIyT41MAU5YBeO5yk9gE/nv9RUj4EnsXqnSjKo+lJ5/bsDltoptQGs Q0hQ== 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; bh=giXPAHaOc4qCj2vzi7RXaYGSTLjXLrdlDtYrz8gXkl0=; b=mvMWKo0/7RGa5WFDc77X2afjpnOBU576m+1Ir8CUDL1cvth4tXyUARBUCKcMMKZLct eBDzPNvjJ56tpHJbRXnzImAumE3zyYdYoJmxB4ZTPEMppCsJXzWTcHiw2rKt51vbtPrq TkWulDrmLe5G5QD1RhZhXC0NljQsppfGiAuX38SXZ0OfMasX+fWsm3Z97VT7oDzE/DvW RAPfl0Hn8EHKxsEad78xGm2B2Z2oKP4P47o7JQibQtKo+fwtQ1dsxbGILrcpJcGSyQoU 8gipCzebwm84krgP/DhOr3EXyV+phnGPWmkUY2kG3CI0FwTGL9+U5DyDYy0Fpzi2ceTQ RAwg== ARC-Authentication-Results: i=1; mx.google.com; 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 o66si883672oig.193.2020.01.10.04.29.38; Fri, 10 Jan 2020 04:29:50 -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; 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 S1728114AbgAJM2i (ORCPT + 99 others); Fri, 10 Jan 2020 07:28:38 -0500 Received: from foss.arm.com ([217.140.110.172]:43916 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727753AbgAJM2i (ORCPT ); Fri, 10 Jan 2020 07:28:38 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DC7AC1063; Fri, 10 Jan 2020 04:28:37 -0800 (PST) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 38BA73F534; Fri, 10 Jan 2020 04:28:37 -0800 (PST) From: Vincenzo Frascino To: jens.wiklander@linaro.org Cc: tee-dev@lists.linaro.org, linux-kernel@vger.kernel.org, vincenzo.frascino@arm.com Subject: [PATCH] drivers: optee: Fix compilation issue. Date: Fri, 10 Jan 2020 12:28:07 +0000 Message-Id: <20200110122807.49617-1-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.24.1 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 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. Cc: Jens Wiklander Signed-off-by: Vincenzo Frascino --- drivers/tee/optee/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tee/optee/Kconfig b/drivers/tee/optee/Kconfig index d1ad512e1708..3ca71e3812ed 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.24.1