From patchwork Wed Mar 27 18:45:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 161275 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp6828981jan; Wed, 27 Mar 2019 11:47:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzX2s3pVnf565/F+P7YpvT/sN4GMytmL0KxAc66gDjs7jsjH2jRr6KDPmYOW/ya3qwrVF69 X-Received: by 2002:a81:4f01:: with SMTP id d1mr31969260ywb.326.1553712448126; Wed, 27 Mar 2019 11:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553712448; cv=none; d=google.com; s=arc-20160816; b=ecT5MRj1WnS4eyTFwfa25VlSRAwY5ffgK5PlElnnMQ55t/mfQBV2N22bmchjhVFSJq n8Q7qe6TXu+r08s/9rS1gpXlRkEILESvO9ty6UwRlhCP/LriiOWVo1HmvRgAVMpCUYH3 RYJqS7WGT6xVa2KjcXF6kl6i8QobHia9UWCRhGspxf1dxf4S6rocRpU7emxDC1X0yDfo jImRMxuoLkKehnjzqZeswpdO+lsnddO1l9fShgQFavh0vVHf4JFMMhF51u59DMiRxa40 CbnQjdRw2PeyuKJN72Lz5xvH2jYpg0qlkaAmmztCNC7MoMUdYzB7zXV0ikbhv5+ykA2f GBGw== 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:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from; bh=JL95K8SQi9ypzKTFfryC4isT3qLCHS2IXNqL86PhUmY=; b=e0dgcLZuZFrduVk9JJG8sfnYGAkJAC0JeHAPVu69IIRr1M1Y5zknj37Hgo1ZZBEwLH Kh2U8P6OirLUZvSYNvu4BlA/rduxOnx4+sOf5xmZyGcsht6ungTWVElgxK8lIqV3z91v WInIgs5Kjr1b2YUsZhqJDu2SC1JP9saCGH6a0MIEEnjyJaJT1THfgGONk4BhqXWYK27D 1teB470NMs2QQwFMGjZLwkoWxysrE0Kyk7g7FVnxSE7TE6y0jHu9uxF8IAgwSDmfxDAL ZXkVvtb96xb7Ry+s8J6lKpBA1r2tzXC01fEgmlzJfocUwhrdxRLJF/i3kQZIkJ766GUh PUIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id b83si6437287ywb.121.2019.03.27.11.47.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Mar 2019 11:47:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1h9DYm-0001mv-53; Wed, 27 Mar 2019 18:46:00 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1h9DYl-0001mT-Ht for xen-devel@lists.xenproject.org; Wed, 27 Mar 2019 18:45:59 +0000 X-Inumbo-ID: 8fde43f2-50c0-11e9-8ce9-23a7eae2d9e0 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 8fde43f2-50c0-11e9-8ce9-23a7eae2d9e0; Wed, 27 Mar 2019 18:45:59 +0000 (UTC) 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 8E7B3A78; Wed, 27 Mar 2019 11:45:58 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5B44F3F557; Wed, 27 Mar 2019 11:45:57 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Wed, 27 Mar 2019 18:45:30 +0000 Message-Id: <20190327184531.30986-12-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190327184531.30986-1-julien.grall@arm.com> References: <20190327184531.30986-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH 11/12] xen/arm: traps: Mark check_stack_alignment_constraints as unused X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Artem_Mygaiev@epam.com, Oleksandr_Tyshchenko@epam.com, Julien Grall , sstabellini@kernel.org, Andrii_Anisov@epam.com MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Clang will throw an error if a function is unused unless you tell to ignore it. This can be done using __maybe_unused. Signed-off-by: Julien Grall --- xen/arch/arm/traps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index d8b9a8a0f0..661475666a 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -54,7 +54,8 @@ * that both the kernel half of struct cpu_user_regs (which is pushed in * entry.S) and struct cpu_info (which lives at the bottom of a Xen * stack) must be doubleword-aligned in size. */ -static inline void check_stack_alignment_constraints(void) { +static void __maybe_unused check_stack_alignment_constraints(void) +{ #ifdef CONFIG_ARM_64 BUILD_BUG_ON((sizeof (struct cpu_user_regs)) & 0xf); BUILD_BUG_ON((offsetof(struct cpu_user_regs, spsr_el1)) & 0xf);