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 E60FCA0A0C for ; Thu, 20 May 2021 13:06:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2D7141100; Thu, 20 May 2021 13:06:54 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id A98B040143 for ; Thu, 20 May 2021 13:06:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621508810; 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; bh=MlPbZoQS+9zbZIscY1CxVHb0DTkF8triij1l7s3AYLs=; b=fNyaUmyA5nkeeheJLAxFWbaYoY3AXlvTIlQ9wvRawAIwlfe3XGDla0S1jinVjUp8sMuZtC MqcFtoIyDSeX5Di7H9wev1XRJpqfTeYvY32dGNRSxDcyl6Xq6ob4yhLIXTnzdX5Au2RTue db+jIkBxz9T2OAV9wqFDIIi6iTwcEok= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-251-mYU4_9abOveqwHaZ7Qj2dg-1; Thu, 20 May 2021 07:06:47 -0400 X-MC-Unique: mYU4_9abOveqwHaZ7Qj2dg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 65FEA8145F1; Thu, 20 May 2021 11:06:30 +0000 (UTC) Received: from rh.redhat.com (ovpn-113-32.ams2.redhat.com [10.36.113.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2CF7210027A5; Thu, 20 May 2021 11:06:28 +0000 (UTC) From: Kevin Traynor To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Kevin Traynor , stable@dpdk.org, Ali Alnubani Date: Thu, 20 May 2021 12:06:12 +0100 Message-Id: <20210520110613.387358-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-stable] [PATCH] test/prefetch: fix build with GCC 11 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 Sender: "stable" GCC 11 complains that 'a' is uninitialized. ../dpdk/app/test/test_prefetch.c: In function 'test_prefetch': ../dpdk/app/test/test_prefetch.c:25:9: error: 'a' may be used uninitialized [-Werror=maybe-uninitialized] 25 | rte_prefetch0(&a); | ^~~~~~~~~~~~~~~~~ Fix by initializing 'a'. Bugzilla ID: 714 Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org Reported-by: Ali Alnubani Signed-off-by: Kevin Traynor --- app/test/test_prefetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_prefetch.c b/app/test/test_prefetch.c index 5489885b51..7b4a8e4144 100644 --- a/app/test/test_prefetch.c +++ b/app/test/test_prefetch.c @@ -21,5 +21,5 @@ static int test_prefetch(void) { - int a; + int a = 0; rte_prefetch0(&a); -- 2.31.1