From patchwork Tue Mar 25 16:55:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27077 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9C7F620539 for ; Tue, 25 Mar 2014 16:59:24 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf1804626pbc.8 for ; Tue, 25 Mar 2014 09:59:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=ly9RrxqQ2g7sjYudkcTMwRWFrRD1SZo2Dcu5TKMS1X4=; b=fDcKfxdabxUy6AUL/lW37G5hpxRNUXipwE5AA9wCV0hHGZLDLy2h+V9LunKohiaWnv Cz2WybU1sA4elPscz3ReaWLmXZnt+Zhz7hOl+yC7O0oEF4krGhuWmR+pA0ffQa8dBRLX 3zuiZBkmX0trv774ZiJJVqyJaRGbmq7pSEDRyI6cW/i9Ts0O5eaYxnWG7CIzA4rPeOzB e0BkYWtXiSkau/YT1TS9zKo7UPR/iTx0kb5jX1AnYDrQGomvs9hwnLLLxttPjZlDCCuu s2Md2xutVZwlnVsoOAxbs4sCaFB2ZpvDLc2Yb/oS6qP/vF52KD43ccq4GedUmuTecaxz KuBg== X-Gm-Message-State: ALoCoQlysykJ83FiFv5ZwBg8lgfK0Pe1JfrdikNmxqnLRx3Vu+fgd6Z9hceiYRd2y7kP/YdnsAjX X-Received: by 10.66.144.228 with SMTP id sp4mr28824046pab.5.1395766763909; Tue, 25 Mar 2014 09:59:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.120 with SMTP id y111ls331158qgd.0.gmail; Tue, 25 Mar 2014 09:59:23 -0700 (PDT) X-Received: by 10.221.61.210 with SMTP id wx18mr2026237vcb.27.1395766763805; Tue, 25 Mar 2014 09:59:23 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id wy9si2610973vdc.181.2014.03.25.09.59.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:59:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id oy12so890660veb.32 for ; Tue, 25 Mar 2014 09:59:23 -0700 (PDT) X-Received: by 10.221.40.10 with SMTP id to10mr7175649vcb.22.1395766763742; Tue, 25 Mar 2014 09:59:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp320475vck; Tue, 25 Mar 2014 09:59:22 -0700 (PDT) X-Received: by 10.140.42.136 with SMTP id c8mr13869243qga.24.1395766762758; Tue, 25 Mar 2014 09:59:22 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id 72si10945889qga.18.2014.03.25.09.59.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:59:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUf9-0001k6-Gb; Tue, 25 Mar 2014 16:57:19 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUf7-0001g1-Vk for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 16:57:18 +0000 Received: from [85.158.137.68:12300] by server-15.bemta-3.messagelabs.com id D5/4D-13757-D65B1335; Tue, 25 Mar 2014 16:57:17 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-12.tower-31.messagelabs.com!1395766636!1399812!1 X-Originating-IP: [74.125.83.51] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 12164 invoked from network); 25 Mar 2014 16:57:16 -0000 Received: from mail-ee0-f51.google.com (HELO mail-ee0-f51.google.com) (74.125.83.51) by server-12.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 25 Mar 2014 16:57:16 -0000 Received: by mail-ee0-f51.google.com with SMTP id c13so684514eek.38 for ; Tue, 25 Mar 2014 09:56:17 -0700 (PDT) X-Received: by 10.15.31.70 with SMTP id x46mr6540133eeu.26.1395766577272; Tue, 25 Mar 2014 09:56:17 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id h47sm33377501eey.13.2014.03.25.09.56.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:56:16 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 25 Mar 2014 16:55:21 +0000 Message-Id: <1395766541-23979-15-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH 14/34] xen/arm: mm: Mark check_memory_layout_alignment_constraints as unused X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Fix compilation with Clang 3.5: mm.c:148:20: error: unused function 'check_memory_layout_alignment_constraints' [-Werror,-Wunused-function] static inline void check_memory_layout_alignment_constraints(void) { ^ Signed-off-by: Julien Grall Cc: Ian Campbell Cc: Stefano Stabellini Cc: Tim Deegan Acked-by: Ian Campbell --- 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 d66ce85..fc58fc6 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -144,7 +144,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 inline always_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);