From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9CC71A0032 for ; Fri, 24 Jun 2022 18:10:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9856240A89; Fri, 24 Jun 2022 18:10:34 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 8447240A89 for ; Fri, 24 Jun 2022 18:10:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656087033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HAj7M5Hu7yaBEgbvph9H683/SDlPeLpjgc+ggcKGGWY=; b=ewKZUmhaUoe6ANvuhHA8/wcOopibxBnzoUjtoAARmGDimoCBJJiOgaooMpjEgYvxpz/RQQ XSq4ireGB2TqK7PjlX171nBvGeYtE0QnMcH2F87GsUqsyKktOaBG6EAi/KA9AS/0hgcItJ tFBJqxBGSN+wkrBsMO3Zq5cj0eEfatw= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-344-HOp_O-EDMcukPNZgTZqALw-1; Fri, 24 Jun 2022 12:10:29 -0400 X-MC-Unique: HOp_O-EDMcukPNZgTZqALw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 862ED1C004F3; Fri, 24 Jun 2022 16:10:29 +0000 (UTC) Received: from rh.redhat.com (unknown [10.39.194.217]) by smtp.corp.redhat.com (Postfix) with ESMTP id B516940334F; Fri, 24 Jun 2022 16:10:28 +0000 (UTC) From: Kevin Traynor To: Ferruh Yigit Cc: Devendra Singh Rawat , dpdk stable Subject: patch 'net/qede: fix build with GCC 13' has been queued to stable release 21.11.2 Date: Fri, 24 Jun 2022 17:10:07 +0100 Message-Id: <20220624161016.1881349-5-ktraynor@redhat.com> In-Reply-To: <20220624161016.1881349-1-ktraynor@redhat.com> References: <20220624161016.1881349-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ktraynor@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 21.11.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 06/27/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/f294a3dbb08eaf03c52073394861328b3f8f7837 Thanks. Kevin --- >From f294a3dbb08eaf03c52073394861328b3f8f7837 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Thu, 16 Jun 2022 18:02:09 +0100 Subject: [PATCH] net/qede: fix build with GCC 13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 721ef3f54578e33905f75c7196439981dc264289 ] Reproduced with "gcc (GCC) 13.0.0 20220616 (experimental)" Build error: In file included from ../drivers/net/qede/qede_debug.c:9: ../drivers/net/qede/qede_debug.c: In function ‘qed_grc_dump_addr_range’: ../drivers/net/qede/base/ecore.h:95:17: warning: overflow in conversion from ‘int’ to ‘u8’ {aka ‘unsigned char’} changes value from ‘(int)vf_id << 8 | 128’ to ‘128’ [-Woverflow] 95 | ((_value & _name##_MASK) << _name##_SHIFT) | ^ ../drivers/net/qede/qede_debug.c:1907:31: note: in expansion of macro ‘FIELD_VALUE’ 1907 | fid = FIELD_VALUE(PXP_PRETEND_CONCRETE_FID_VFVALID, 1) | ^~~~~~~~~~~ To prevent overflow converting 'fib' to uint16_t, while updating it also updated 'vf_id' to 16 bit too. Fixes: ec55c118792b ("net/qede: add infrastructure for debug data collection") Signed-off-by: Ferruh Yigit Acked-by: Devendra Singh Rawat --- drivers/net/qede/qede_debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/qede/qede_debug.c b/drivers/net/qede/qede_debug.c index 9383a6d677..18f2d988fb 100644 --- a/drivers/net/qede/qede_debug.c +++ b/drivers/net/qede/qede_debug.c @@ -1810,5 +1810,6 @@ static u32 qed_grc_dump_addr_range(struct ecore_hwfn *p_hwfn, { struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; - u8 port_id = 0, pf_id = 0, vf_id = 0, fid = 0; + u8 port_id = 0, pf_id = 0; + u16 vf_id = 0, fid = 0; bool read_using_dmae = false; u32 thresh; -- 2.34.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-06-24 16:54:05.712295593 +0100 +++ 0005-net-qede-fix-build-with-GCC-13.patch 2022-06-24 16:54:05.530165019 +0100 @@ -1 +1 @@ -From 721ef3f54578e33905f75c7196439981dc264289 Mon Sep 17 00:00:00 2001 +From f294a3dbb08eaf03c52073394861328b3f8f7837 Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit 721ef3f54578e33905f75c7196439981dc264289 ] + @@ -29 +30,0 @@ -Cc: stable@dpdk.org