From patchwork Tue May 23 17:03:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 100380 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp416006qge; Tue, 23 May 2017 10:05:52 -0700 (PDT) X-Received: by 10.107.58.8 with SMTP id h8mr25923321ioa.183.1495559152301; Tue, 23 May 2017 10:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495559152; cv=none; d=google.com; s=arc-20160816; b=BHDZZ6a9yYycbUqfFGgH2hIAY8CQuuH0nbq81Z33EK7NmbTQU/DRu27pagLoHyi37G 2IZo3Cvsrcy0ANhX0tLw20e29EaSwQ+a7ABgoBiNriEDSHXmzgTWYoLhoQ2p2jEur23G P0SL4xuRi2dZlgIOp+NH2coT7axlp5jF3MOjI4BWqbYMd15lObtm2HZk+KqXGXNUHCm2 o7xsFLbhtiqfDZ9YhFnuX8AEmT2ZkftYE5MKnirTV/0CwYj9SNcR+YZqpg7su5QLzgh1 Mim7Lzg1XtodA0ZHWlpg9hmZNQlY1dk65lR+4noVRflTLFeYYNHFTg0IcxyHLs0/S5B/ 3Qqw== 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:message-id:date:to:from :arc-authentication-results; bh=WhiqosFJuHQR24vw9vedEYsDHVuz5jLG17Uc7nwYuG0=; b=HtEl6+oglkVVPOt/zWI84dTvZA88//9pGcMguI1m2W5TgRSOlZy0uqw7mW/ACi0a76 AZlJAuQUeJ3Q2uv0laNSy72AApigFKTSLe1PCNsTOGbbaw9BehmvM+mFnvgmdz+FyyXn cFMm9KP6daB9Caf0XMy0CMR13WxDGw8swkR0oz9SZ9W/H2tL65hiX2QsjBPrIICTxohv C0z6ZuJYjxXIcplmJltkvWauTziL1bFglvo8PleoN50b51JqW/jQdfF+2itdzlpyU8PT BCx8zo6rjen5v61NFwizpPjTZV6ihWUERlyig92dDHVfKEVJ7BFTtzgvCR36JU30yE0l c4xA== 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 r75si22412094iod.226.2017.05.23.10.05.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 10:05:52 -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 1dDDDm-0000ux-1A; Tue, 23 May 2017 17:03:46 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDDDl-0000ur-6V for xen-devel@lists.xen.org; Tue, 23 May 2017 17:03:45 +0000 Received: from [193.109.254.147] by server-5.bemta-6.messagelabs.com id B0/C7-03371-07B64295; Tue, 23 May 2017 17:03:44 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRWlGSWpSXmKPExsVysyfVTbcgWyX S4ONKRoslHxezODB6HN39mymAMYo1My8pvyKBNaNnvV/BSvaKo916DYztbF2MXBxCAhsZJc6v /gXlnGaUuPWmi7GLkZODTUBT4s7nT0wgtoiAtMS1z5fB4swCDhJvPt5jAbGFBcIkHi5cwQxis wioSvxsWgYW5xWwkGj5+o4dxJYQkJfY1XaRdQIj5wJGhlWMGsWpRWWpRbrGRnpJRZnpGSW5iZ k5uoYGZnq5qcXFiempOYlJxXrJ+bmbGIHeYgCCHYyn1wUeYpTkYFIS5d2ToBwpxJeUn1KZkVi cEV9UmpNafIhRhoNDSYL3SqZKpJBgUWp6akVaZg4wbGDSEhw8SiK8L0HSvMUFibnFmekQqVOM uhxz7n19zyTEkpeflyolzsudBVQkAFKUUZoHNwIWwpcYZaWEeRmBjhLiKUgtys0sQZV/xSjOw agkzMsAMoUnM68EbtMroCOYgI5wvasMckRJIkJKqoFxovc5J1duy8vX2h8tmv7scG2Th5VEu7 IEk45mrsq/w+cmaU8TndZsuXRGAv8bRp2zF9bpvUha7St20bQwtr9d73WnmcMfxRP292yK6+4 oPvIrS/Hs+LDpZ6TB/KqD4rcMCs+yzLv/7Fb85tuLVU+dzvqoaqFlKqdp+K5ssXfHnyV/xc29 8nOVWIozEg21mIuKEwFcr4nsXAIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-9.tower-27.messagelabs.com!1495559023!104127217!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.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 37352 invoked from network); 23 May 2017 17:03:43 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-9.tower-27.messagelabs.com with SMTP; 23 May 2017 17:03:43 -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 1F5C02B; Tue, 23 May 2017 10:03:42 -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 768DC3F5C9; Tue, 23 May 2017 10:03:41 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 23 May 2017 18:03:36 +0100 Message-Id: <20170523170336.7326-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Cc: Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH for-next] xen/arm: Remove unused helpers access_ok and array_access_ok 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" Both helpers access_ok and array_access_ok are not used on ARM. Remove them. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- xen/include/asm-arm/guest_access.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/xen/include/asm-arm/guest_access.h b/xen/include/asm-arm/guest_access.h index 421bca5f36..251e935597 100644 --- a/xen/include/asm-arm/guest_access.h +++ b/xen/include/asm-arm/guest_access.h @@ -4,13 +4,6 @@ #include #include -/* Guests have their own comlete address space */ -#define access_ok(addr,size) (1) - -#define array_access_ok(addr,count,size) \ - (likely((count) < (~0UL / (size))) && \ - access_ok(addr, 0 + (count) * (size))) - unsigned long raw_copy_to_guest(void *to, const void *from, unsigned len); unsigned long raw_copy_to_guest_flush_dcache(void *to, const void *from, unsigned len);