From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CBB047143E; Tue, 21 Jul 2026 19:42:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784662934; cv=none; b=mq5U5WQfassqYsbFkUb7DlZCZ2kceYi3WQCrlsN+C9HSZq60NnRlh8qglYWZErrmroODJWjlqbGoEUPvUf8xxGaQyVmuWi3yJAbNX6Z/MpLTze5g9kL4fXXA6sPYiNcz+zPXrWTTa+Ql5y+amrOg87E7QuTpPwO4EZyBKRR6dbY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784662934; c=relaxed/simple; bh=ek6PdVdLrgq1cFS6ymrSGDLConMLcEjQWWDZqk9TnKM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HXYdLE6u8i9ADuFw6bfeHMFu4zVE13M2yxH5QD2co6CHXBraQjUYBMlk64RtKyhs7uxbkevWjLTDkBzJ6D9usXtOdsBeVhW/Elhpmqakp359MJxhx9YFsz+zyciFO/wOMYI+9Ek3z4X3TSGyH4eqnVChvKbip4I/pqlpcCu9NYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=19lp8pA3; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="19lp8pA3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA86A1F000E9; Tue, 21 Jul 2026 19:42:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784662933; bh=WHGOpLAxmNuLQv1y/E7N8Kw6DlnejoFEOatPI/C3xJc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=19lp8pA3X+GgczDLIVCr29PbtQ3ZXYJE9IsnBKzRMcii2Uz8BQpa8LKzJ9Ll8ZDll 6RhxlvBed8MKvo9GQkyY1qze3jPdEJUfnLWYTYxY25Pbhz+VwHQIc7xoXIUgG3oDoA 7r/CsWECEbyiDlXIQdg5HToULdpDB+QsMBoLem44= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mohamed Khalfella , Aleksandr Loktionov , Paul Menzel , Alexander Nowlin , Tony Nguyen , Sasha Levin Subject: [PATCH 6.12 0631/1276] i40e: Fix i40e_debug() to use struct i40e_hw argument Date: Tue, 21 Jul 2026 17:17:54 +0200 Message-ID: <20260721152500.230258962@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152446.065700225@linuxfoundation.org> References: <20260721152446.065700225@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mohamed Khalfella [ Upstream commit 798f94603eb0737033861efd320a9159f382a7c5 ] i40e_debug() macro takes struct i40e_hw *h as first argument. But the macro body uses hw instead of h. This has been working so far because hw happens to be the name of the variable in the context where the macro is expanded. Fix the macro to use the passed argument. Fixes: 5dfd37c37a44 ("i40e: Split i40e_osdep.h") Signed-off-by: Mohamed Khalfella Reviewed-by: Aleksandr Loktionov Reviewed-by: Paul Menzel Tested-by: Alexander Nowlin Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/i40e/i40e_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_debug.h b/drivers/net/ethernet/intel/i40e/i40e_debug.h index e9871dfb32bd44..01fd70db908666 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_debug.h +++ b/drivers/net/ethernet/intel/i40e/i40e_debug.h @@ -42,7 +42,7 @@ struct device *i40e_hw_to_dev(struct i40e_hw *hw); #define i40e_debug(h, m, s, ...) \ do { \ if (((m) & (h)->debug_mask)) \ - dev_info(i40e_hw_to_dev(hw), s, ##__VA_ARGS__); \ + dev_info(i40e_hw_to_dev(h), s, ##__VA_ARGS__); \ } while (0) #endif /* _I40E_DEBUG_H_ */ -- 2.53.0