Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2025250pxa; Mon, 3 Aug 2020 05:42:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRkKiqHBbnyp3a5mHasQWVpke/hiMb+ZFbC4Iqs+PRKYlLdEBfHLvk+0N7t6n4/Y9QbJsG X-Received: by 2002:a17:906:3a51:: with SMTP id a17mr16424431ejf.433.1596458535080; Mon, 03 Aug 2020 05:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596458535; cv=none; d=google.com; s=arc-20160816; b=CSeXYDo38sceT4//65LpYJXA5fLjm4pwuGcgzxWYNxWVDrC1Dsm1yXN1bUnd/5GgO2 XSIQ+rtnUso0flNeXO/UKKG5bOGnYTrjKHbbHZ2ShyKA83vKfVb0E40QMGwRyFvdlbpt Jl2pSyZYF4+vfq4CKU4yDd9p19E3fPOzFOK82TjXnTOhyCyFRgmGPOPu5NQA7X1m1f6m y+Fl1b164ZJx7yv8GU0baIntlFZcR+TFOLCIJYhEOvQaxHUdAnMUyRxyc2QQCZe24JVL d7fFUW1aIXSfkClARFfrjEpoLXah0/yBEfk3HLWJmiqrYb7aKOvhhomXlj32FQsyhXkq IcJQ== 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=VnB7AZJUyzH/GGZrKWOeEXpxwUhztwT8rGH9uucdSIU=; b=nOpKAFripbof5a0X50shDk3XqH9km+8y6rtWorJncCX8vHvqD8UotA7j1aQ+lbs/Ua SWitMnlnTjZdbB7pMoV3p8mqIethUadY341oIaAFlvSmV1CpBPNPvZUte1/hCL1eaPAj nFqGsE71HG7USJ6LC2kHovhAt0bhsgG1QjfsfM1/tPCiRrl18Or6hdNDZtU1lU5/abPO K5SXRST1uKGg3I1ntabSRlniI+RACwEvMQBs2sfQnT+wEtP4EMswsdkBs34QblHKeFC/ lnWXhXfQZvEYM9bN2FzAdLym5s+sVeChrKLtgnAN5EfCTKh4uWEVp7NQn8g8ThaosztY ok6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mAY0TMwE; 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 g19si10684894ejf.537.2020.08.03.05.41.52; Mon, 03 Aug 2020 05:42:15 -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=mAY0TMwE; 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 S1729436AbgHCMd2 (ORCPT + 99 others); Mon, 3 Aug 2020 08:33:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:33270 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729419AbgHCMdW (ORCPT ); Mon, 3 Aug 2020 08:33:22 -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 BE90C2076B; Mon, 3 Aug 2020 12:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596458001; bh=OtnXhp2U8pIrjCX+A+q845AQgjyLC0mf+i8t9s0aHRk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mAY0TMwEkYW6w4SE1TZ8C7lLGqgebhzQjfvS6TKOrJPfUPEyXS58Mt/JWNL7ZY5RB rLy4B1GUpGSN/9wnWgL6J27ObyvMSChUj2iltPI7GPnvXWDiXJHuKf6v0EEH0IdEZ/ FgQprrz7AtNr2xvKiUjHc3gINpPD4VkX3cTtHV9g= 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 29/56] selftests/net: psock_fanout: fix clang issues for target arch PowerPC Date: Mon, 3 Aug 2020 14:19:44 +0200 Message-Id: <20200803121851.757460525@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 64f9ede2274980076423583683d44480909b7a40 ] Clang 9 threw: warning: format specifies type 'unsigned short' but the argument has \ type 'int' [-Wformat] typeflags, PORT_BASE, PORT_BASE + port_off); Tested: make -C tools/testing/selftests TARGETS="net" run_tests Fixes: 77f65ebdca50 ("packet: packet fanout rollover during socket overload") Signed-off-by: Tanner Love Acked-by: Willem de Bruijn Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/net/psock_fanout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/psock_fanout.c b/tools/testing/selftests/net/psock_fanout.c index bd9b9632c72b0..f496ba3b1cd37 100644 --- a/tools/testing/selftests/net/psock_fanout.c +++ b/tools/testing/selftests/net/psock_fanout.c @@ -364,7 +364,8 @@ static int test_datapath(uint16_t typeflags, int port_off, int fds[2], fds_udp[2][2], ret; fprintf(stderr, "\ntest: datapath 0x%hx ports %hu,%hu\n", - typeflags, PORT_BASE, PORT_BASE + port_off); + typeflags, (uint16_t)PORT_BASE, + (uint16_t)(PORT_BASE + port_off)); fds[0] = sock_fanout_open(typeflags, 0); fds[1] = sock_fanout_open(typeflags, 0); -- 2.25.1