From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95954C5B56A for ; Tue, 11 Aug 2026 17:49:31 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3AEC427CE; Tue, 11 Aug 2026 19:48:44 +0200 (CEST) Received: from agw.arknetworks.am (agw.arknetworks.am [79.141.165.80]) by mails.dpdk.org (Postfix) with ESMTP id 2A217427A1; Tue, 11 Aug 2026 19:48:38 +0200 (CEST) Received: from localhost.localdomain (unknown [78.109.70.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by agw.arknetworks.am (Postfix) with ESMTPSA id 5E338E0F03; Tue, 11 Aug 2026 21:48:37 +0400 (+04) DKIM-Filter: OpenDKIM Filter v2.11.0 agw.arknetworks.am 5E338E0F03 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arknetworks.am; s=default; t=1786470518; bh=BfI/OyPq6t34weq+h4XAIadS+r5B1d38calcKBnl1jo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fw07nXLvnqfH5IWYOxEz5CLuR9PuWEl9WwFs0L+nGgPhUjhFQ6dy89YbmQtvusddb BWw9gVwIxNvbZdlVD0PMqEGIPAikIgZDQj+qYSh+13oTncomFRHcDK8ImymUZKHtbV K6l6RjHOTQ4xjdu0kkG5ltouqNb1FWXIvD/J27pem2zgNbbuNJ8qTMp2CVuLd7ew9+ uLJLXOUaSgJUqlmBxoJ2jVDAPFsdvisANURCUqYzqxDJra0xv9zFh8Eh95lfgVPmNj RZHB2Au/rsGFx5nHvtwhjGoFH59OC6+XtSrbpCAaHr2l5bq/xgeOMzaPfKUBSLJQoU bZD8VvxthU9Pw== From: Ivan Malov To: dev@dpdk.org Cc: Andy Moreton , Viacheslav Galaktionov , Roman Zhukov , Pieter Jansen van Vuuren , Stephen Hemminger , Andrew Rybchenko , stable@dpdk.org Subject: [PATCH 10/14] common/sfc_efx/base: fix annotation in netport stat describe Date: Tue, 11 Aug 2026 21:48:17 +0400 Message-ID: <20260811174821.8930-11-ivan.malov@arknetworks.am> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260811174821.8930-1-ivan.malov@arknetworks.am> References: <20260811174821.8930-1-ivan.malov@arknetworks.am> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Andy Moreton Code analysis reported a NULL dereference of the lut parameter. Fix the annotation to show it is not optional (must be non-NULL). Fixes: f2f77453cb9f ("common/sfc_efx/base: fill in software LUT for MAC statistics") Cc: stable@dpdk.org Signed-off-by: Andy Moreton Reviewed-by: Ivan Malov Reviewed-by: Viacheslav Galaktionov --- drivers/common/sfc_efx/base/efx_np.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/sfc_efx/base/efx_np.c b/drivers/common/sfc_efx/base/efx_np.c index 6cf5aeac11..86e5d11506 100644 --- a/drivers/common/sfc_efx/base/efx_np.c +++ b/drivers/common/sfc_efx/base/efx_np.c @@ -734,7 +734,7 @@ static void efx_np_stat_describe( __in uint8_t *hw_entry_buf, __in unsigned int lut_nentries, - __out_ecount_opt(lut_nentries) efx_np_stat_t *lut) + __out_ecount(lut_nentries) efx_np_stat_t *lut) { const efx_np_stat_t *map; efx_mac_stat_t sw_id; -- 2.47.3