From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 383BB1DBC for ; Mon, 30 Apr 2018 16:43:31 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id o4-v6so8286144wrm.0 for ; Mon, 30 Apr 2018 07:43:31 -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:in-reply-to:references; bh=wSc3ww9D49i1D0+trJLtAA+NTAeDbXJP1YLJc5tYaQU=; b=fs05TQxBfp31ulnFH9aJKhgN1jpK2dPbJXpOq7tWlP4JHwpXg+5WjAQ9vLFeBNCK8U mU+J8XyVg/X+pLXsiTrqnlEy1pdm/bVmwnk6R0aY4YMCrqAZu3NFmni1jghuz430vtdf kf778l2fspT7xWuNu543GXPkRYHvQjHeHI6CrvG3bQbtd+0FYhW3qghM1igPm6cMWlFT AgAUeiXRIY7ofDkk5Hy4SrSW5ITAWu8hrmg2E7ECFHWRjLoqKToh53sjANbjpVCbBAVB 1zJKSS3B6zFcDDeTdjI1nVTcDsiaD4nf01Zm3GMAAIe4necPp23GCoyqFAQyBXEXhiNh w2sw== 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:in-reply-to :references; bh=wSc3ww9D49i1D0+trJLtAA+NTAeDbXJP1YLJc5tYaQU=; b=Zmqaw2Fas4UVbcu8vUklHIzDETdyAhFOEvw6OGkg7x5k8yeOizvtN0F6xLxMU6wgQC hE8JBGuPxuhE9vyzju9EFGPnKg+eNsqeIzV/Pvqvzyv7aXWrlSakOdA2nVKf18TZF+d4 TtfaxraG30J+RlgKPyQ6HjMY00Pp503RNzaUzSLP7LS0uX1kbJEw2dMW/VGOaYWu9kEt jkRD7yflORWUtdgN0XXeU2+9TEi7rbyowKJJZF+fxDEhaTy9pFK8CgC1c9Bv6Kma/7nh 3uaE+4DvKS/v+bdV+NeYEKb0H6UYPVe55JpvMXWLUpULGf+njclf1950S2ENQ7W80mcn Rdug== X-Gm-Message-State: ALQs6tBq1o9BXluxpxhHqYGokiARwMkp5VBSsU0RQpk7877DpaHNMcch eOGAPkCec7EwBqxYTXQZTYW1eJEcV8w= X-Google-Smtp-Source: AB8JxZqAkBQMTdLjib4DalrfmWsWh+tOL8+mEWmXurszAfbC6PCdY5s+1lqyectX/6kKguDwIutw+w== X-Received: by 2002:adf:a0fd:: with SMTP id n58-v6mr8572445wrn.217.1525099410877; Mon, 30 Apr 2018 07:43:30 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id e202sm10745487wma.43.2018.04.30.07.43.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:43:30 -0700 (PDT) From: luca.boccassi@gmail.com To: Andrew Rybchenko Cc: dpdk stable Date: Mon, 30 Apr 2018 15:40:56 +0100 Message-Id: <20180430144223.18657-41-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/sfc/base: fix comparison always true warning' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 14:43:31 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 3bdb36c37cbc0d68e0c172eda35a14589abb239d Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Mon, 9 Apr 2018 12:58:57 +0100 Subject: [PATCH] net/sfc/base: fix comparison always true warning [ upstream commit 06619ede18663fe81bf7ebf49ec751210308d41e ] Loopback type used as bit index has efx_loopback_type_t type which is enum. clang complains that it is always true when it is compared with qword (64 bit) bits number boundary. Fixes: 9ee64bd404fc ("net/sfc/base: import loopback control") Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/efx_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sfc/base/efx_port.c b/drivers/net/sfc/base/efx_port.c index a792a9ef6..fda8260f4 100644 --- a/drivers/net/sfc/base/efx_port.c +++ b/drivers/net/sfc/base/efx_port.c @@ -120,7 +120,7 @@ efx_port_loopback_set( EFSYS_ASSERT(link_mode < EFX_LINK_NMODES); if (EFX_TEST_QWORD_BIT(encp->enc_loopback_types[link_mode], - loopback_type) == 0) { + (int)loopback_type) == 0) { rc = ENOTSUP; goto fail1; } -- 2.14.2