Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2024126pxa; Mon, 3 Aug 2020 05:40:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzIxYxR050W4ophFkAwmXHsvxuZADX+CZOrLzq8OvJmpayTlcEE0UnU2SRPIg1O0HxRBDG X-Received: by 2002:a17:906:6546:: with SMTP id u6mr3030435ejn.159.1596458417521; Mon, 03 Aug 2020 05:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596458417; cv=none; d=google.com; s=arc-20160816; b=xeJFmpFsEJD17JDtTqRwLb3JVTzNrpPtLOKJnQbV6BrSO0GXSY2vDAljghY3ki//Vv thwIh9fqmyY++7BSi7APSofjDsmsVuk1NKmjEHUs+ieGIufMkAd0uw/tMqIDpxkUZVyo pKNRwyE0nhYfT6U/F7PV8hFCorIdTvzf+ZjJEWaMoyJjRvKPKjEK+gQ8t4qSRKI1m36b FWNckU7JLwztyyP18338e5YZxJj9qGokN2lPc5o/yVjVuQPtvIEgKNfN0/EtUd/XgshA tJJIs1CdL6y4GMP3oK8mHON9ZbcJqmzwGvOFvM5MSCSN2FiHQD/AgVAmo8mUo3MHTc5v dmdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Nr/wFrf4hNoLOS76YK1lq0y5e4fRymoNZ5Se+9wCxjc=; b=SPHe4CQK29eIlbCWOYfvLF1igycABVHCfIO5rcAzKgJgmNl8uW/YEZogSJ6MzTXm6E 2SgQW/ciJVgnceQ8RFTMdYwWf9xYtxVqkKCc3MI+NNedDvtCOOjEtfJS83/wZ+Mif71A UYf/XolJW8gnT8SSXitrRsHo5bfAa1Yp8pGUm3FTvDS8QLT99z2Ul/yLFs7nkOKo37Oj 8ff1Ej0ADyTpZDiGr3x76byx7risD71FgUAb9/LQ7jyzDflDM3wpuW736exzTfsLDzGp MtLwglasUXaydQczDis+OMx8qyX4r7sGStxUlvU5JP1tpLJ3NDObO56DKR1k/MhnwC7c LsAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uHVePIwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce7si10280403edb.85.2020.08.03.05.39.55; Mon, 03 Aug 2020 05:40:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uHVePIwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728145AbgHCMd0 (ORCPT + 99 others); Mon, 3 Aug 2020 08:33:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:33192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729414AbgHCMdT (ORCPT ); Mon, 3 Aug 2020 08:33:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C5A2B204EC; Mon, 3 Aug 2020 12:33:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596457998; bh=j4QwB29Ee9qxu9nA3B0US/rFh4yAG4wKdres+4bmP5I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uHVePIwjQXMV8Nf0MTM0ZtIqhocyVhuhUT9O7UxtO9t66zuUVBbWVrCt/41Bu10Uq o6A2IBQgIoj7w5712v9WsBrTDa+2RtmS0cBrzj5ZVGLtknc6mc6IdBNZttbYbMSuc/ f6+iGsKXVLPiRII9yI6KcoXIfns2pQxON3t3oerI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tanner Love , Willem de Bruijn , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 28/56] selftests/net: rxtimestamp: fix clang issues for target arch PowerPC Date: Mon, 3 Aug 2020 14:19:43 +0200 Message-Id: <20200803121851.709960504@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200803121850.306734207@linuxfoundation.org> References: <20200803121850.306734207@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tanner Love [ Upstream commit 955cbe91bcf782c09afe369c95a20f0a4b6dcc3c ] The signedness of char is implementation-dependent. Some systems (including PowerPC and ARM) use unsigned char. Clang 9 threw: warning: result of comparison of constant -1 with expression of type \ 'char' is always true [-Wtautological-constant-out-of-range-compare] &arg_index)) != -1) { Tested: make -C tools/testing/selftests TARGETS="net" run_tests Fixes: 16e781224198 ("selftests/net: Add a test to validate behavior of rx timestamps") Signed-off-by: Tanner Love Acked-by: Willem de Bruijn Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/networking/timestamping/rxtimestamp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/testing/selftests/networking/timestamping/rxtimestamp.c b/tools/testing/selftests/networking/timestamping/rxtimestamp.c index 7a573fb4c1c4e..c6428f1ac22fb 100644 --- a/tools/testing/selftests/networking/timestamping/rxtimestamp.c +++ b/tools/testing/selftests/networking/timestamping/rxtimestamp.c @@ -328,8 +328,7 @@ int main(int argc, char **argv) bool all_tests = true; int arg_index = 0; int failures = 0; - int s, t; - char opt; + int s, t, opt; while ((opt = getopt_long(argc, argv, "", long_options, &arg_index)) != -1) { -- 2.25.1