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 234B94404F; Wed, 12 Jun 2024 17:11:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 112F142D0C; Wed, 12 Jun 2024 17:04:33 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 18B44427C2 for ; Wed, 12 Jun 2024 17:04:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204666; x=1749740666; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=B1w9AAgsmcBbGlfZMxdaf4by50GlqDykUk/DmkvpDUs=; b=Nw7FEqxppEJiOBUE0ST8W+P7SfkScNVj+f5D8Fie62j5SrCGkTK4+W3I 41MpPOekMsONt4J89bRHDGCMqF/+Be4GDskWPazuszVVxkvG4AqAF8+OE 00dJ0CLjwIRFwZck6dqnmBrnY09Ujq60z/jU9NqYxks8hKrtzzYcl9owu 5qxFe//TMLMGHnNi4fZxNdFttuI870NWcHiR0Ge9QiZ/CpDNEZBNmDHE/ M3TGyKBt07r7KQCbXt/fPKZ33i6O6RoCsyvePb9jlnQEZY1LOkmLB1ybs 9A/iu1bhqYE2diuEhhYwUIIJQfNT9w/NoFn1giIexjPgRc4SLIzy6ad1u A==; X-CSE-ConnectionGUID: UDTOnnQfQRu8RyFmLFqWmw== X-CSE-MsgGUID: Wkopi92ERYK7DlEIg960Yg== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459412" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459412" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:04:25 -0700 X-CSE-ConnectionGUID: cXt0DpnPQ6SMLGI/16nUkA== X-CSE-MsgGUID: jL9azxoeRqiXqp0s40vgVA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925159" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:04:24 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Yochai Hagvi Subject: [PATCH v2 042/148] net/ice/base: change data buffer in i2c write to be const Date: Wed, 12 Jun 2024 16:00:36 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@intel.com> 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: Ian Stokes 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 6266b67f24..6c487e02dc 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -5752,7 +5752,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 567c6481e9..14620d05b4 100644 --- a/drivers/net/ice/base/ice_common.h +++ b/drivers/net/ice/base/ice_common.h @@ -298,7 +298,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