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 4D7EA454EF; Tue, 25 Jun 2024 13:19:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BECF442ED7; Tue, 25 Jun 2024 13:16:36 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 904AB42E02 for ; Tue, 25 Jun 2024 13:15:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314155; x=1750850155; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zWlpXxkBKMPmUmxis4sCcqfIhnVk+FxW9vZmFO2NFKU=; b=j7LM4X6IVs7kkDH87QVKRwtKNXWQv+fPYHlA9hQQgpgktz7069tpyido jqZS7I/E5UAJXVwnWRLghg2r3soBsxXCpmcVmWV6umRCK3FNfWff0mhyt NgL3gUlXxsV0Q2OLXDSOCnxskgs5+c80j56HW//9kj4B8OamxFPekmrQk F7LwWs7ZofDHmwfMbgyX0n1lt1hzEH6ETUn9NllrWX01o2bjdMB4and3l uFnUQHsCgBzYnzFOIw8a2Mrbwc6QUJTMyGyL64qPn27cOYgEv4dk4GL2x weGaiAVJeYx6OboQEgGYPAfGOs22CI4FQ1o11Y4TcZUx550+AkWwhcO59 A==; X-CSE-ConnectionGUID: zPiSyAr6SOWZXkK8HJeOLA== X-CSE-MsgGUID: G6LgrAKTR5aRZr/3YkDyuw== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080159" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080159" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:15:55 -0700 X-CSE-ConnectionGUID: 2jggFCfERyyq62YXimhuPw== X-CSE-MsgGUID: gU0LF01WTBCQ1PTDSc7VCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719124" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:15:54 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Yochai Hagvi , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 034/129] net/ice/base: change data buffer in i2c write to be const Date: Tue, 25 Jun 2024 12:12:39 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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: Yochai Hagvi Data should not be changed by generic i2c write, hence it should be const. Signed-off-by: Yochai Hagvi Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_common.c | 2 +- drivers/net/ice/base/ice_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index a768c42b2b..ff98919e40 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -5740,7 +5740,7 @@ ice_aq_read_i2c(struct ice_hw *hw, struct ice_aqc_link_topo_addr topo_addr, */ int ice_aq_write_i2c(struct ice_hw *hw, struct ice_aqc_link_topo_addr topo_addr, - u16 bus_addr, __le16 addr, u8 params, u8 *data, + u16 bus_addr, __le16 addr, u8 params, const u8 *data, struct ice_sq_cd *cd) { struct ice_aq_desc desc = { 0 }; diff --git a/drivers/net/ice/base/ice_common.h b/drivers/net/ice/base/ice_common.h index 9ffa054994..a57bb4523d 100644 --- a/drivers/net/ice/base/ice_common.h +++ b/drivers/net/ice/base/ice_common.h @@ -297,7 +297,7 @@ ice_aq_read_i2c(struct ice_hw *hw, struct ice_aqc_link_topo_addr topo_addr, struct ice_sq_cd *cd); int ice_aq_write_i2c(struct ice_hw *hw, struct ice_aqc_link_topo_addr topo_addr, - u16 bus_addr, __le16 addr, u8 params, u8 *data, + u16 bus_addr, __le16 addr, u8 params, const u8 *data, struct ice_sq_cd *cd); bool ice_fw_supports_report_dflt_cfg(struct ice_hw *hw); /* AQ API version for FW auto drop reports */ -- 2.43.0