From patchwork Wed Nov 23 09:21:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 83606 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp2541805qge; Wed, 23 Nov 2016 01:39:32 -0800 (PST) X-Received: by 10.84.209.143 with SMTP id y15mr4712869plh.173.1479893972251; Wed, 23 Nov 2016 01:39:32 -0800 (PST) Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id r29si32904740pfe.133.2016.11.23.01.39.31; Wed, 23 Nov 2016 01:39:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C46F671BC1; Wed, 23 Nov 2016 09:37:34 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by mail.openembedded.org (Postfix) with ESMTP id 4FA23605B3 for ; Wed, 23 Nov 2016 09:22:44 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id c4so445196pfb.3 for ; Wed, 23 Nov 2016 01:22:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CQXXZ44PNTeiJ1MPoueDr+2GUS6LTzH5lmciDo55gD4=; b=U90enSHxkBZSSL3IwIVFgcxQBAceM7KwkD2CwU7vEwP6R0jBl2iRPw4b65HUgqLviu 3KvXvXdXGC/TgzV413zeHs49x3blvT21g0XYdDhM3s9vqiCrsx5Hl/qmkPVwaaxc8HZl Ha5aP0I693i26J97RiowxDpI3oilF9vn9binNZXluYmLvTuG9lD8ZJTXak9mZC1bKosN qKjN57VLB27765IvXBds+AcN1TGQiiAPDUMX+QGWxml7BYt81AzNZcI/fmUWZcYAhvex MBu2J9B98ytKi64TLxmln71WtrN/78tAswVvZ+WGvwCyL3o9TQD/Eo2dOwVtp9OvtSvN XCcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CQXXZ44PNTeiJ1MPoueDr+2GUS6LTzH5lmciDo55gD4=; b=KDdG4MjQl+Bvx0nFitrftVWDjNWn4tl0dXJrm9XSwxMqKF8RZlXANImShfOwWZJk03 Ism7DkStotJ7HdX+u7X7GhKtHwT7EFkPuuDeIIRqsZSIaOQxqKT+vD631bPCZYf/I3do h6mFgbcjSJnYGmx+/XEwYMMjbZmxUL1SUQrZGaeGAZ7I6DnweI+4KDvXcHmEQWg89Ykk KE4okXZkq4PYF+gtNq/h5lLNWHiU/vMwhlBHljgWk1d1GMx3RrlWszMSTIX0bU95jbvN 0rvitfN254C3zWlGm2Wrnyur0ndSogHeUEayhC7uGMcqWdAxVt4/YUz3OmBR73QQ8DtW QvdA== X-Gm-Message-State: AKaTC03sCJHgsfEdGw96lxAi0uz6apO0P+MD1fxxyZHPQz4v9Ee9vjYLnKL6lWgP5eEtXg== X-Received: by 10.98.14.143 with SMTP id 15mr1902782pfo.11.1479892966060; Wed, 23 Nov 2016 01:22:46 -0800 (PST) Received: from localhost.localdomain (c-76-102-32-192.hsd1.ca.comcast.net. [76.102.32.192]) by smtp.gmail.com with ESMTPSA id u23sm51056087pfg.86.2016.11.23.01.22.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Nov 2016 01:22:45 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 23 Nov 2016 01:21:57 -0800 Message-Id: <20161123092209.23699-37-raj.khem@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161123092209.23699-1-raj.khem@gmail.com> References: <20161123092209.23699-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 37/49] flashrom: Remove redundant const qualifier X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: openembedded-devel@lists.openembedded.org MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org This is flagged by latest clang Signed-off-by: Khem Raj --- .../0001-ichspi.c-Fix-build-with-clang.patch | 29 ++++++++++++++++++++++ .../recipes-extended/flashrom/flashrom_0.9.6.1.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta-oe/recipes-extended/flashrom/flashrom/0001-ichspi.c-Fix-build-with-clang.patch -- 2.10.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/flashrom/flashrom/0001-ichspi.c-Fix-build-with-clang.patch b/meta-oe/recipes-extended/flashrom/flashrom/0001-ichspi.c-Fix-build-with-clang.patch new file mode 100644 index 0000000..ff16f0b --- /dev/null +++ b/meta-oe/recipes-extended/flashrom/flashrom/0001-ichspi.c-Fix-build-with-clang.patch @@ -0,0 +1,29 @@ +From a2f603c54013cd0b04bb0103dc615644f315d5e8 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 15 Nov 2016 17:39:24 +0000 +Subject: [PATCH] ichspi.c: Fix build with clang + +ichspi.c:1130:24: error: duplicate 'const' declaration specifier [-Werror,-Wduplicate-decl-specifier] + static const uint32_t const dec_berase[4] = { + ^ +Signed-off-by: Khem Raj +--- + ichspi.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ichspi.c b/ichspi.c +index 0223ae3..e47aebd 100644 +--- a/ichspi.c ++++ b/ichspi.c +@@ -1127,7 +1127,7 @@ static void ich_hwseq_set_addr(uint32_t addr) + static uint32_t ich_hwseq_get_erase_block_size(unsigned int addr) + { + uint8_t enc_berase; +- static const uint32_t const dec_berase[4] = { ++ static const uint32_t dec_berase[4] = { + 256, + 4 * 1024, + 8 * 1024, +-- +1.9.1 + diff --git a/meta-oe/recipes-extended/flashrom/flashrom_0.9.6.1.bb b/meta-oe/recipes-extended/flashrom/flashrom_0.9.6.1.bb index d3ec578..0edc688 100644 --- a/meta-oe/recipes-extended/flashrom/flashrom_0.9.6.1.bb +++ b/meta-oe/recipes-extended/flashrom/flashrom_0.9.6.1.bb @@ -9,6 +9,7 @@ SRC_URI = "http://download.flashrom.org/releases/flashrom-${PV}.tar.bz2 \ file://0001-Fix-compilation-on-aarch64.patch \ file://0002-Disable-Wtautological-pointer-compare-when-using-cla.patch \ file://0003-remove-duplicate-const-qualifiers.patch \ + file://0001-ichspi.c-Fix-build-with-clang.patch \ " SRC_URI[md5sum] = "407e836c0a2b17ec76583cb6809f65e5"