From patchwork Sun Feb 8 21:03:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 44509 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f197.google.com (mail-we0-f197.google.com [74.125.82.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 668992153F for ; Sun, 8 Feb 2015 21:04:29 +0000 (UTC) Received: by mail-we0-f197.google.com with SMTP id l61sf16271860wev.0 for ; Sun, 08 Feb 2015 13:04:28 -0800 (PST) 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:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=ePvpM3wXZ0GUQL1roNEWRWfX09e/F5WbEiPKhT87JUM=; b=TGxRinPnfG21s80Rdnk/W1Zr5eH8PA69Fi1aEvsbiw2uPzbQDmoM6l2pihtWUt5wmr 8sHRI2lo0BYxc7GdmD5MVyaTHIdJgoExaq3WOJ0YsDKwgDW7/Hqh7M0IjQXNq8iCFwRn KvuVKJrR2S4CBLQ+0TkdIdj/4VONCzHKhB50Q9bpeyF/SWoWwH/wsfYxQ0AYyH3bJshc z+g100V04DEPCMo8w+2BxT5XbqCPSXffnoFSLbA5t4KdrHzTo94wT15q/kBA58syitMr 4S2oBHqKj+O2UHDydEXZ6ze3U8f+kFqepThyWLZVWgD/eoO/9BrFRHKbSlfza04YCeHU Ik2Q== X-Gm-Message-State: ALoCoQnI10R+7shSwz81khpEJiCXfM0IWZiILLMR7ogxierp8XejF5vgd5VQTITyPb0IyWSbn5MU X-Received: by 10.112.119.141 with SMTP id ku13mr16413lbb.7.1423429468614; Sun, 08 Feb 2015 13:04:28 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.170 with SMTP id d10ls423147lad.37.gmail; Sun, 08 Feb 2015 13:04:28 -0800 (PST) X-Received: by 10.112.126.98 with SMTP id mx2mr13344710lbb.84.1423429468427; Sun, 08 Feb 2015 13:04:28 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id w1si7469788lag.6.2015.02.08.13.04.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Feb 2015 13:04:28 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by labgd6 with SMTP id gd6so975269lab.7 for ; Sun, 08 Feb 2015 13:04:28 -0800 (PST) X-Received: by 10.112.40.201 with SMTP id z9mr13214077lbk.117.1423429468304; Sun, 08 Feb 2015 13:04:28 -0800 (PST) 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.112.35.133 with SMTP id h5csp3015725lbj; Sun, 8 Feb 2015 13:04:27 -0800 (PST) X-Received: by 10.140.108.228 with SMTP id j91mr31980986qgf.68.1423429466893; Sun, 08 Feb 2015 13:04:26 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 33si11627199qgi.19.2015.02.08.13.04.24 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 08 Feb 2015 13:04:26 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YKZ1h-0006sT-2c; Sun, 08 Feb 2015 21:04:21 +0000 Received: from mail-pd0-f174.google.com ([209.85.192.174]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YKZ1b-0006q2-Jj for lng-odp@lists.linaro.org; Sun, 08 Feb 2015 21:04:15 +0000 Received: by pdbfl12 with SMTP id fl12so1802519pdb.2 for ; Sun, 08 Feb 2015 13:04:10 -0800 (PST) X-Received: by 10.70.134.9 with SMTP id pg9mr23259025pdb.28.1423429450153; Sun, 08 Feb 2015 13:04:10 -0800 (PST) Received: from localhost.localdomain ([113.28.134.59]) by mx.google.com with ESMTPSA id pm2sm14157943pbb.81.2015.02.08.13.04.08 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 08 Feb 2015 13:04:09 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 9 Feb 2015 00:03:38 +0300 Message-Id: <1423429418-29150-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: cpumask: fix signed and unsigned compare X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) 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 odp_cpumask.c: In function 'odp_cpumask_to_str': odp_cpumask.c:87:10: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (len < (3 + nibbles)) ^ Signed-off-by: Maxim Uvarov Reviewed-by: Ola Liljedahl --- platform/linux-generic/odp_cpumask.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_cpumask.c b/platform/linux-generic/odp_cpumask.c index 24b9d75..7abf593 100644 --- a/platform/linux-generic/odp_cpumask.c +++ b/platform/linux-generic/odp_cpumask.c @@ -65,7 +65,7 @@ ssize_t odp_cpumask_to_str(const odp_cpumask_t *mask, char *str, ssize_t len) { char *p = str; int cpu = odp_cpumask_last(mask); - unsigned int nibbles; + int nibbles; int value; /* Handle bad string length, need at least 4 chars for "0x0" and