From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 0099A2571DD for ; Fri, 8 May 2026 03:12:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778209952; cv=none; b=VzZuRyR9viCUCk4HDkeXCIZuHNQXAMrBClD/lqKvpQf9amW7+zSif5eCSAd2777jTvfYKksrhX/6r6ISCJb2qA+qdTo+ihaO/poTMGMs5FyYt98TuXe32KptXdi/dgYUTl+/e04HAug/66sBrzXZ0MBjPCC0xTwc1wQHRDlXwNQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778209952; c=relaxed/simple; bh=1fz/pNUwDSH6iIhkeVb5RNFaw1xF4u6b6e7E26vW+kc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e8+dNFY9L6hiqP5Xe7rFIEU85vKeERs/XBdK+U5ZqdF6B9NjUHLE0HBhHTb6yxG+W4AJRa8ftWpnGYcLVKi/aV8L+sEB6Vv4Pe1y9psqaB+bORMuuZFot4TBwBV44H9hToTMMmWJsO4pcJjB5Zug9taP9am7XZyR7i/Yd2lzhIA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ZXvwHq9X; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZXvwHq9X" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778209951; x=1809745951; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1fz/pNUwDSH6iIhkeVb5RNFaw1xF4u6b6e7E26vW+kc=; b=ZXvwHq9Xn9530n6HqDX40dy29EuOWNRR5l3Cwe6A3cqXfwWqocma9UJl uZ4OOQELfc4N9MB6I8XP0DqkuMJtkb44LmYiM7Jf7wjuYkm3hvAjwNrWE XtdXL7ZCTzy4N49qRq/XD9jmuDDjQIAfbNQ1HdsHwojvQrGn3eonqg9d+ 4sOwJhyscu35rm4mp7VClj7mJhMOgpSQBh4Ixlxaa9IIrqiAcZTmczL9J toDHBmhxBtt0ARZkxuFPv4ke1c8/YONtW11/MPlTWAImeLI3h41jRJhVs HgYLcqfaFcWYxi07+yiuiVoNMJe6bcV0JJPy3rnaUljfdP4Wxvkk5nvkA g==; X-CSE-ConnectionGUID: eM49mOO8QpGHbq95KlhojA== X-CSE-MsgGUID: gj/qHyCKRe2zIWYkIMV/0Q== X-IronPort-AV: E=McAfee;i="6800,10657,11779"; a="79027485" X-IronPort-AV: E=Sophos;i="6.23,222,1770624000"; d="scan'208";a="79027485" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2026 20:12:31 -0700 X-CSE-ConnectionGUID: w6ebjILARD2ObegaZgr2cg== X-CSE-MsgGUID: y8qMGA66S7OEbHkF54q1mg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,222,1770624000"; d="scan'208";a="241623175" Received: from amlin-019-225.igk.intel.com ([10.102.19.225]) by fmviesa005.fm.intel.com with ESMTP; 07 May 2026 20:12:29 -0700 From: Aleksandr Loktionov To: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com, aleksandr.loktionov@intel.com Cc: netdev@vger.kernel.org, Jacob Keller Subject: [PATCH iwl-next 1/8] ixgbe: rename numa_node to node in struct ixgbe_q_vector Date: Fri, 8 May 2026 05:12:19 +0200 Message-ID: <20260508031226.3601800-2-aleksandr.loktionov@intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260508031226.3601800-1-aleksandr.loktionov@intel.com> References: <20260508031226.3601800-1-aleksandr.loktionov@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jacob Keller The 'numa_node' field in struct ixgbe_q_vector shadows the 'numa_node' accessor for struct device, which triggers a sparse warning about shadowing a built-in object. The stored value here is a plain NUMA node number, not a device attribute, so rename it to 'node' to avoid the shadow and keep the naming consistent with other Intel drivers. Update all three usage sites in ixgbe_lib.c and ixgbe_main.c. Signed-off-by: Jacob Keller Signed-off-by: Aleksandr Loktionov --- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h index 9b82175..cf2df18 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h @@ -515,7 +515,7 @@ struct ixgbe_q_vector { struct rcu_head rcu; /* to avoid race with update stats on free */ cpumask_t affinity_mask; - int numa_node; + int node; char name[IFNAMSIZ + 9]; /* for dynamic allocation of rings associated with this q_vector */ diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c index 1db4bd5..5a4f05d 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c @@ -864,7 +864,7 @@ static int ixgbe_alloc_q_vector(struct ixgbe_adapter *adapter, /* setup affinity mask and node */ if (cpu != -1) cpumask_set_cpu(cpu, &q_vector->affinity_mask); - q_vector->numa_node = node; + q_vector->node = node; #ifdef CONFIG_IXGBE_DCA /* initialize CPU for DCA */ diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index 2646ee6..65426a1 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -7074,7 +7074,7 @@ int ixgbe_setup_tx_resources(struct ixgbe_ring *tx_ring) size = sizeof(struct ixgbe_tx_buffer) * tx_ring->count; if (tx_ring->q_vector) - ring_node = tx_ring->q_vector->numa_node; + ring_node = tx_ring->q_vector->node; tx_ring->tx_buffer_info = vmalloc_node(size, ring_node); if (!tx_ring->tx_buffer_info) @@ -7175,7 +7175,7 @@ int ixgbe_setup_rx_resources(struct ixgbe_adapter *adapter, size = sizeof(struct ixgbe_rx_buffer) * rx_ring->count; if (rx_ring->q_vector) - ring_node = rx_ring->q_vector->numa_node; + ring_node = rx_ring->q_vector->node; rx_ring->rx_buffer_info = vmalloc_node(size, ring_node); if (!rx_ring->rx_buffer_info) -- 2.52.0