From patchwork Mon Aug 28 05:38:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 111098 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4375829qge; Sun, 27 Aug 2017 22:38:18 -0700 (PDT) X-Received: by 10.99.127.78 with SMTP id p14mr6379689pgn.374.1503898698128; Sun, 27 Aug 2017 22:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503898698; cv=none; d=google.com; s=arc-20160816; b=Bj70xccxrMnRIOhB2q4DnLHGQKDp4BPxLYGl/H6NCBNIRkBt9aPp4WNkyYJgyCPpCj PI2Ndd35GQTypM1l+PrIIbY06a0WcWT05Q5bOx/NxPSCyuJcliJwTR8kSM+YoJA3SpgZ Wie8kmTjnQtknzSOWYxCQe6qDDhMzrzxAU2VeKlsYEzyKu6/qVkMMem2auV1Y5RIftjc nq5r+24sWrp9tLTyeRmcgYvDPCyiuAtcDj7ZSW+zayOA+zxxqjzjsbZvjDuotxbcBFQs XiScMG4sghzlZKjJ27NN5fABgOPOGdDoxP99T0DskP3nF1/mXHH8Qf8xeQQu1StU1AqW w36A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=u1DnwXx6vDVJzczELXRk7bXEAeaayXoj3LRrWAFNnMA=; b=D+V+oTzDgeUc/kmx9SUeUQF9Gie3wZqBDyqwroFaIh1acOdZZiPVXolZXwKM43YYh2 XQmbTXf+XtVB/Cr0bfRyORd6AuHkt3RBgIrrKTx8fO+6IqlD13T2zBqUCyk8oNAvqXlD RXt0jlIXNLrnjh3hsc4cZvgGCJAoMN0RJcrPbTbJ2D6ASKwJ8eI1beRGAAg2qNhXYuNT kxdwuQXR+TtU03rzve+U5RXZCy5qAJX2wBwaWULN+OjDQwllSyKqHGBc4vB9WEuEV9Pg UO2QncAJ74EqLpp74C+1+47U2LrgGIDUn9qwqTM8tH9LRFIV15bMrIn2xisWecG4y4xG MIxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=YUjWfEFY; 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 sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id g10si9515758pln.761.2017.08.27.22.38.17; Sun, 27 Aug 2017 22:38:18 -0700 (PDT) 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 header.s=20161025 header.b=YUjWfEFY; 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 sp=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 BB9E678093; Mon, 28 Aug 2017 05:38:13 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by mail.openembedded.org (Postfix) with ESMTP id ED34360290 for ; Mon, 28 Aug 2017 05:38:11 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id r133so5574799pgr.2 for ; Sun, 27 Aug 2017 22:38:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=wmC31c525cZuPhsxx+nUjCho6hUKVvjVynSjZ8Yv9Sw=; b=YUjWfEFY+LLGTMAEYlxxyz5MiUlSdwz9zWiX4NxDS9Dqjz+ziz1xHehzDS2y0KMHKP vLuidOGDC5uA1OyqAZAZBmVrwuMD1IW7xlKHgnOZYXQTgV/4c8oHqfbOZ2JTEtckO4/O dNbYqmRmjPuWmDJkCTddeQfMf1hnVyagmgOQAWRacG4rui85xb4/TDVZO5M0xupyOQvC xWmehbkbA7+ExoKNxFlCnFynXdstEtIQF4NY1irO0DQ5TpZPODhy77QFlX4sTCSVOx3W 7pviCbytBUXCc+mDRO5teLb1Mtyh+8qBmti3eCHaaN3w6DOfcgXYQMhDT4f4gL4ez2Kv Kdcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wmC31c525cZuPhsxx+nUjCho6hUKVvjVynSjZ8Yv9Sw=; b=aPMYGTkBb2ktkf5wLPwIKlL2K5WPfSP0yx41h2zCREPyg+h4nuSCQWFPImLeQtuQPR l1iV4xGXQ1jvZFAjmcvu9iAzrif/AjYUY8l2+QsHdm7THLBNmgulSRxGQqLA2c6xVLPk XPMqml/dApNHBgH5wqx35qRQCMb2kbETxlsivpQRq2pnh5b2vYSNsbh5C0AtV2yzLNgB fULbrKxUi8I56LxKzle38OITkXuZA98gYGNBqOlS5sjOoqYG3TaMOIhz8DBrILjmk/E+ YCn9z4MtP4WCQ+QsMxkOs128VnUQHFAJPPVYUGvB3scqkQYT3CLdlzDNJgw4OAal5RHF XX6g== X-Gm-Message-State: AHYfb5iaJJztJuIqPqX6tp6r0UrUA+HqWif0bIFOngeh5/OTQVUQ2r3a NKU//AOtdrmNfjKL X-Received: by 10.99.109.139 with SMTP id i133mr2241597pgc.440.1503898693073; Sun, 27 Aug 2017 22:38:13 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::79ab]) by smtp.gmail.com with ESMTPSA id c80sm22113515pfj.26.2017.08.27.22.38.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Aug 2017 22:38:11 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 27 Aug 2017 22:38:03 -0700 Message-Id: <20170828053804.37296-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [oe] [meta-networking][PATCH 1/2] openhpi: Fix ptest compile failures due to narrowing warnings with clang 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../openhpi/files/fix-narrowing-warning.patch | 20 ++++++++++++++++++++ .../recipes-daemons/openhpi/openhpi_3.6.1.bb | 1 + 2 files changed, 21 insertions(+) create mode 100644 meta-networking/recipes-daemons/openhpi/files/fix-narrowing-warning.patch -- 2.14.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-daemons/openhpi/files/fix-narrowing-warning.patch b/meta-networking/recipes-daemons/openhpi/files/fix-narrowing-warning.patch new file mode 100644 index 000000000..4c545708f --- /dev/null +++ b/meta-networking/recipes-daemons/openhpi/files/fix-narrowing-warning.patch @@ -0,0 +1,20 @@ +Fix + +sensor_factors_000.cpp:66:5: error: non-constant-expression cannot be narrowed from type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing] +((dRExp << 4) & 0xf0) | (dBExp & 0x0f ), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Signed-off-by: Khem Raj + +Index: openhpi-3.6.1/plugins/ipmidirect/t/sensor_factors_000.cpp +=================================================================== +--- openhpi-3.6.1.orig/plugins/ipmidirect/t/sensor_factors_000.cpp ++++ openhpi-3.6.1/plugins/ipmidirect/t/sensor_factors_000.cpp +@@ -63,7 +63,7 @@ static cIpmiSdr sdr = + dB & 0xff, + ((dB >> 2) & 0xc0) | (dAccuracy & 0x3f), + ((dAccuracy >> 2) & 0xf0) | ((dAccuracyExp << 2) & 0x0c), +- ((dRExp << 4) & 0xf0) | (dBExp & 0x0f ), ++ (unsigned char)(((dRExp << 4) & 0xf0) | (dBExp & 0x0f )), + 0, + 0, + } diff --git a/meta-networking/recipes-daemons/openhpi/openhpi_3.6.1.bb b/meta-networking/recipes-daemons/openhpi/openhpi_3.6.1.bb index 64b2cc38c..6375c2ee0 100644 --- a/meta-networking/recipes-daemons/openhpi/openhpi_3.6.1.bb +++ b/meta-networking/recipes-daemons/openhpi/openhpi_3.6.1.bb @@ -38,6 +38,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz \ file://0001-Fix-build-failures-with-gcc7.patch \ file://c++11.patch \ file://clang-c++11.patch \ + file://fix-narrowing-warning.patch \ \ file://openhpi.init \ file://openhpid.service \