From patchwork Tue Mar 25 16:55:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27051 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E14D32057C for ; Tue, 25 Mar 2014 16:57:22 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id to1sf2585758ieb.9 for ; Tue, 25 Mar 2014 09:57:22 -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=4FXAyyfEMvujVR1JlU/Du/Y2h+n5lkLGHMbbExgJ/sw=; b=FIK8H2Naj/2xT1x0MXR1MVOfox4lMT6PrW1mSrDo5dOGwY1ULXklBQNW9xblFcPoX5 /AETCXXAgzVcnql3XoULHlpZFp3J/jf01R4yAOcYGOSWcTHTh2GmnFJNU/wDlMGo0M/g 0tiM4iYwWHwykdGmGtiTxRKOru+ToAVB5bVUzgCe8ACpaohhSOh4kCP43H7/aG5VGggn zu3VQqIM7/joAWfYJfHS6JypSiPOKKiGoFHjqQUTEo23kfQtU/vobcqlU/qv/ltjNgDb EAoXhrd2JX1SNani0DlsQ+UfhnntVpSa6od0zBWyqLEnYcoxNZM/+x7xT7usztZRCPgN ZfzQ== X-Gm-Message-State: ALoCoQlMA08R7/1IcY9+ar5YA1j2zUFeWVGOONtMJbt47rKBe3KbuslLGZwT61cp7o/39EB5HFf/ X-Received: by 10.42.28.2 with SMTP id l2mr25350581icc.20.1395766642415; Tue, 25 Mar 2014 09:57:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.137 with SMTP id j9ls292059qgd.70.gmail; Tue, 25 Mar 2014 09:57:22 -0700 (PDT) X-Received: by 10.221.29.196 with SMTP id rz4mr56242181vcb.8.1395766642340; Tue, 25 Mar 2014 09:57:22 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id b2si3810809vcz.92.2014.03.25.09.57.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 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.171; Received: by mail-ve0-f171.google.com with SMTP id cz12so891333veb.16 for ; Tue, 25 Mar 2014 09:57:22 -0700 (PDT) X-Received: by 10.221.27.8 with SMTP id ro8mr1151742vcb.30.1395766642252; Tue, 25 Mar 2014 09:57:22 -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 i9csp320306vck; Tue, 25 Mar 2014 09:57:21 -0700 (PDT) X-Received: by 10.224.63.197 with SMTP id c5mr9232428qai.39.1395766641311; Tue, 25 Mar 2014 09:57:21 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id 100si10927301qgf.87.2014.03.25.09.57.20 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:21 -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 1WSUe4-0008Nz-GH; Tue, 25 Mar 2014 16:56:12 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUe2-0008La-Pf for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 16:56:10 +0000 Received: from [85.158.143.35:63812] by server-1.bemta-4.messagelabs.com id A1/FE-09853-A25B1335; Tue, 25 Mar 2014 16:56:10 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-3.tower-21.messagelabs.com!1395766569!4656477!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 8914 invoked from network); 25 Mar 2014 16:56:09 -0000 Received: from mail-ee0-f51.google.com (HELO mail-ee0-f51.google.com) (74.125.83.51) by server-3.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 25 Mar 2014 16:56:09 -0000 Received: by mail-ee0-f51.google.com with SMTP id c13so684360eek.38 for ; Tue, 25 Mar 2014 09:56:09 -0700 (PDT) X-Received: by 10.15.31.70 with SMTP id x46mr6539609eeu.26.1395766569121; Tue, 25 Mar 2014 09:56:09 -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.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:56:08 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 25 Mar 2014 16:55:17 +0000 Message-Id: <1395766541-23979-11-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, Keir Fraser , Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH 10/34] xen/crypto: rijndael: Fix compilation with Clang 3.5 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.171 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: Td0, Td1, Td2, Td3, Td4 are only used when NEED_RIJNDAEL is defined. rijndael.c:383:18: error: unused variable 'Td0' [-Werror,-Wunused-const-variable] static const u32 Td0[256] = { ^ rijndael.c:449:18: error: unused variable 'Td1' [-Werror,-Wunused-const-variable] static const u32 Td1[256] = { ^ rijndael.c:515:18: error: unused variable 'Td2' [-Werror,-Wunused-const-variable] static const u32 Td2[256] = { ^ rijndael.c:581:18: error: unused variable 'Td3' [-Werror,-Wunused-const-variable] static const u32 Td3[256] = { ^ rijndael.c:647:18: error: unused variable 'Td4' [-Werror,-Wunused-const-variable] static const u32 Td4[256] = { Signed-off-by: Julien Grall Cc: Keir Fraser Acked-by: Keir Fraser --- xen/crypto/rijndael.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/crypto/rijndael.c b/xen/crypto/rijndael.c index b7cd0d1..9de0992 100644 --- a/xen/crypto/rijndael.c +++ b/xen/crypto/rijndael.c @@ -380,6 +380,8 @@ static const u32 Te4[256] = { 0x41414141U, 0x99999999U, 0x2d2d2d2dU, 0x0f0f0f0fU, 0xb0b0b0b0U, 0x54545454U, 0xbbbbbbbbU, 0x16161616U, }; + +#ifdef NEED_RIJNDAEL_DECRYPT static const u32 Td0[256] = { 0x51f4a750U, 0x7e416553U, 0x1a17a4c3U, 0x3a275e96U, 0x3bab6bcbU, 0x1f9d45f1U, 0xacfa58abU, 0x4be30393U, @@ -710,6 +712,7 @@ static const u32 Td4[256] = { 0xe1e1e1e1U, 0x69696969U, 0x14141414U, 0x63636363U, 0x55555555U, 0x21212121U, 0x0c0c0c0cU, 0x7d7d7d7dU, }; +#endif static const u32 rcon[] = { 0x01000000, 0x02000000, 0x04000000, 0x08000000, 0x10000000, 0x20000000, 0x40000000, 0x80000000,