From patchwork Wed Mar 27 18:45:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 161269 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp6828969jan; Wed, 27 Mar 2019 11:47:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIsnGHw91sr2+RmbJm2GMd1j+D4szp6LhjxOPbJb28v/OVa0g2XbYuT/npERf1a3M7Zv9L X-Received: by 2002:a25:9788:: with SMTP id i8mr31945407ybo.506.1553712448317; 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=gqqR8w1qmVRi9iyN8kFghNhLmKpGNgkcIJTbf6NvhLn0q7kWzyaxVbuh0PuwVUejTi /5fxmii8JUxuJ0iGGmgWJnQAzMNWuPJxDv0ZH5mcHEIgiFUgCS4hIBWxumR++cKwx7Y1 8BHZDBx7OolguDGYM94g/U4Oz3O+Ui4gp+HvmxhsDGWhsC1h0AOU051MMhaS5F0D8BMA QiR1XQMnpR2+NpQ/EgOg/AwYh3k5nyJzhJX9IerlMc0xfMF0BlGcdh6xntFzfJWGt/40 Cg4aXpT7s5XRRheLrzK7UdJMpNmoRxns0dPbMrURWuBgWfkPbtKv60AwuWp8HwZR26eV Yw6Q== 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=AlHuCyeZvTV61fx+uw8Qe4YpgMSL/M9Y7mcqCHZrQSQ=; b=BQuG5qUp1dRYxWibz5laSfW3ARq0Yi6EcixdtajHs6EAoPdNqzRv9t7fBbg53ZbQiY 0xN3eKCO68Fn2YddgaWTIJIozZjc+KnDvMDaOFj0rkSfe7GSd4/hb9HTFIkCxRJVEt7u zHFi1u2fN4bOkCg6Kj708scNUzZ7gtMtSNmTQ0FB5troHg7Mksm2koNGYGs54CTt429h ufYBJVQNhPj5srsughYWgCvbQ7xbgMFl4g0oT6zsnKvzskwiFoGD0PhVczM1jOJ2z+a7 PnhWhSPNHcKBzknSP8pXEUD9diMe21DXmbr+L0pTal0u2y8MBShSX95jD97BcIoqcfpp YbRg== 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 f197si13683106yba.77.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 1h9DYl-0001mh-Q2; Wed, 27 Mar 2019 18:45:59 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1h9DYk-0001lv-Gk for xen-devel@lists.xenproject.org; Wed, 27 Mar 2019 18:45:58 +0000 X-Inumbo-ID: 8ed960d7-50c0-11e9-bc90-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 8ed960d7-50c0-11e9-bc90-bc764e045a96; Wed, 27 Mar 2019 18:45:57 +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 1C2EF1596; Wed, 27 Mar 2019 11:45:57 -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 DD0EB3F557; Wed, 27 Mar 2019 11:45:55 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Wed, 27 Mar 2019 18:45:29 +0000 Message-Id: <20190327184531.30986-11-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 10/12] xen/arm: mm: Mark check_memory_layout_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/mm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index 01ae2cccc0..d37925051a 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -160,7 +160,8 @@ unsigned long total_pages; extern char __init_begin[], __init_end[]; /* Checking VA memory layout alignment. */ -static inline void check_memory_layout_alignment_constraints(void) { +static __maybe_unused void check_memory_layout_alignment_constraints(void) +{ /* 2MB aligned regions */ BUILD_BUG_ON(XEN_VIRT_START & ~SECOND_MASK); BUILD_BUG_ON(FIXMAP_ADDR(0) & ~SECOND_MASK);