From patchwork Fri Jun 30 15:54:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 106723 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2507184qge; Fri, 30 Jun 2017 08:56:45 -0700 (PDT) X-Received: by 10.107.34.205 with SMTP id i196mr25097823ioi.157.1498838205855; Fri, 30 Jun 2017 08:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498838205; cv=none; d=google.com; s=arc-20160816; b=SiH1/sd7ymaqWxEm5KEh0cjfkB/FEFesNivN9UxGCy90FDO0fcKdWelC0uibToE+NY MFWin3hGdjhY1xzm1n2liZ7UTBUl96VJY6CVlXIOy/31e4xzCaFHxWwOzeEps6eb+B5+ 68THnVYKvQmx8ByvUJkeSIhgLuCGhVaOPsNdURC+1bwCK9vUaf1Mrn5vbuDu+mDPPyOj l44BHde6uZ5V/25GRGD1lNPSxzU166WKGM8ptW50iMgOPBOBPAhnBcWj+oEj/phPfj8j hLxi4rMWBayNYCvxcKhDTjT2baTLl1PD8MU6RsmJSSerYkcgKNpVY+OOeP5rV2RgAvB5 EYNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=3AyDVnywIT6c6alV9I+K7xizb9PwHkGI9WOzbylTqZg=; b=LlQ2tGj5uQvmZ1djEUAcDRjfzbj8/DepP5unlv5/FzcmKzu6qBDJ/nJDwJttBCsbjb gugWKwtqKwlSXBuT3Y3ppRWx5qkSGRUbIPCj6Np+N3uV+foxPHv+pVX1ITIdlyDc+910 3uV4VpRmD9stTL135VYJODBVaarmsG/m3DUyHc7FilcQnHPNjsVGKo+XIqoGQH2ic9W5 3L4y4xqtMhnJvx/BIlISHfmEIbLu9Dq/auY9aZ6tJ6h7Y1nzqvU6zRL7UMQmrxtUkFuU 79c7fhmZd+ZDVhpxlxHx3ZiD6Hh1jKRM+SkBtCjax0F/Sqs3hgSq44nLYffiukA+n8a7 2VcA== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id e126si7780882iof.252.2017.06.30.08.56.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jun 2017 08:56:45 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQyFy-0000gf-4L; Fri, 30 Jun 2017 15:54:54 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQyFx-0000de-8t for xen-devel@lists.xen.org; Fri, 30 Jun 2017 15:54:53 +0000 Received: from [85.158.143.35] by server-5.bemta-6.messagelabs.com id 66/CD-03368-C4476595; Fri, 30 Jun 2017 15:54:52 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRWlGSWpSXmKPExsVysyfVTdenJCz S4NBFdoslHxezODB6HN39mymAMYo1My8pvyKBNWPitm+sBe0cFctaLrI1MF5g62Lk4hAS2Mwo cef7KUYI5zSjxPvzR1i7GDk52AQ0Je58/sQEYosISEtc+3yZEcRmFnCQePPxHguILSzgLPHg5 TSwOIuAqsS7mz/BenkFrCSu7lrEDGJLCMhL7Gq7CBbnBIof//cAbKaQgKXE61lXWSYwci9gZF jFqFGcWlSWWqRrZKiXVJSZnlGSm5iZo2toYKaXm1pcnJiempOYVKyXnJ+7iRHoYQYg2MH4Z1n AIUZJDiYlUd6V10IjhfiS8lMqMxKLM+KLSnNSiw8xynBwKEnwKhaHRQoJFqWmp1akZeYAQw0m LcHBoyTCKxsElOYtLkjMLc5Mh0idYtTleDXh/zcmIZa8/LxUKXHeEJAZAiBFGaV5cCNgYX+JU VZKmJcR6CghnoLUotzMElT5V4ziHIxKwrzOIFN4MvNK4Da9AjqCCegI4RkhIEeUJCKkpBoY91 SE5e4O0ROYXbzj486OfYefGlQG1SQEMUTfXN8yTcQsKIPh2KGKaesDjfy33lXO6mzu1rwzRS3 r1e9F9/fuOhrKGRJ2MUtxWsAPy6hi3Xu2SQuPK5w0YV/jffjfXt2fj/ctWch00kJKPO/S1GbO WRrSc7+fFzn5VWSru7vPJ6XfDzp3K8duU2Ipzkg01GIuKk4EAN1CBBx2AgAA X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-15.tower-21.messagelabs.com!1498838091!70998065!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 16438 invoked from network); 30 Jun 2017 15:54:51 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-15.tower-21.messagelabs.com with SMTP; 30 Jun 2017 15:54:51 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 68ED4164F; Fri, 30 Jun 2017 08:54:51 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C946D3F41F; Fri, 30 Jun 2017 08:54:50 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 30 Jun 2017 16:54:31 +0100 Message-Id: <20170630155431.23824-17-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170630155431.23824-1-julien.grall@arm.com> References: <20170630155431.23824-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH v3 16/16] xen/arm: lpae: Switch from bool_t to bool X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" We are phasing out the use of bool_t in the hypervisor code. Reviewed-by: Stefano Stabellini Signed-off-by: Julien Grall --- Changes in v3: - Patch added --- xen/include/asm-arm/lpae.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/include/asm-arm/lpae.h b/xen/include/asm-arm/lpae.h index 6fbf7c606c..a62b118630 100644 --- a/xen/include/asm-arm/lpae.h +++ b/xen/include/asm-arm/lpae.h @@ -126,7 +126,7 @@ typedef union { lpae_walk_t walk; } lpae_t; -static inline bool_t lpae_valid(lpae_t pte) +static inline bool lpae_valid(lpae_t pte) { return pte.walk.valid; } @@ -136,12 +136,12 @@ static inline bool_t lpae_valid(lpae_t pte) * the table bit and therefore these would return the opposite to what * you would expect. */ -static inline bool_t lpae_table(lpae_t pte) +static inline bool lpae_table(lpae_t pte) { return lpae_valid(pte) && pte.walk.table; } -static inline bool_t lpae_mapping(lpae_t pte) +static inline bool lpae_mapping(lpae_t pte) { return lpae_valid(pte) && !pte.walk.table; }