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 4F05045500; Wed, 26 Jun 2024 13:56:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09C2F432C6; Wed, 26 Jun 2024 13:55:11 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 487CF42E95 for ; Wed, 26 Jun 2024 13:43:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719402203; x=1750938203; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zWlpXxkBKMPmUmxis4sCcqfIhnVk+FxW9vZmFO2NFKU=; b=PyJcnvE8UIn5vr+warxzY4B4+E8rhq8dPJsv2WtwDYUk2olWUEcbF/cD wDb+QZDOVCo2tCrtkhyL4AUUD8dbfhxXPkDiMYoT6czLhTJxJIcqp9snk d1UDS8/Iwt7RG1RGS2Snrm8j0jnY8Xw4sRL0VPyBzwXIPhcfCn2BMI/3+ 7NosNFxe3YvB2+mwKFLSPkuPxLOkKvpkMOY/qqKHaFBaWES8HqP9+n7TQ oFtO9ORwN5zeyaqECViVWdiOV1TXnHhDI2v4fXiPxKUuhqhGeEXWlDg+S 0+XGxbxmb0v7pdnU5z1JHKAjyMpp5SP+8RmqQncvAE7eHuJWJs92iqi8w g==; X-CSE-ConnectionGUID: qPbHycVtReikg5hf+onOFQ== X-CSE-MsgGUID: CyxY6BGcQ+ieYH/GP6cKQQ== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979312" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979312" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 04:43:22 -0700 X-CSE-ConnectionGUID: +iMF1ex6Tha5VpZTRdOrIQ== X-CSE-MsgGUID: DpTJVF82Rqa9tG/3dhS7+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43873495" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:43:22 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Yochai Hagvi , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 014/103] net/ice/base: change data buffer in i2c write to be const Date: Wed, 26 Jun 2024 12:41:02 +0100 Message-ID: <639bf276566544f68b20421e50f0597c9349a5e4.1719401847.git.anatoly.burakov@intel.com> 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