From patchwork Fri Nov 17 11:09:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jarkko Nikula X-Patchwork-Id: 13458818 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9CE3FC197A0 for ; Fri, 17 Nov 2023 11:09:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=W1PBfK8S/BAUw9JVSNCpXd3xEnEBJTThVcSwfuepxWA=; b=sb1+jFBfuuqwkC iLwzp2TZ8KneBXxjjOQEz7edRWByD4Z2Q4JEI2O+AtUVssHg3NreiDPTs4gtH33NGEdiAbTGYXHZu QN2+ug4w5KTk0VD6Phblnf3U37yTmxg8NAHhtVCs+fJv1Y7o+QG3VjQL75m5DGe6COl1nbQYjTsBe sS7VOsE2aGr2KMqWY/kiaHyWVhSZRV16GdpFIK9nWNWOiqmz36F/73BBeMj9804BBUamqTNzeusX8 ZpwEQxsgFlzOLYhlzizW2X7Ex5fNZY+OMaYA8NmYQ2cjhpeS563e74TUm9w7EVXMtC6MFW2DkMmah RN63GTNesbuN8YNLsNYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r3wjA-006HbJ-39; Fri, 17 Nov 2023 11:09:36 +0000 Received: from mgamail.intel.com ([198.175.65.10]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r3wj8-006HaF-0I for linux-i3c@lists.infradead.org; Fri, 17 Nov 2023 11:09:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700219375; x=1731755375; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Rur5CuCPTfZR7PJxxfZpzIEcWzGrbl0Yrknq8TS7jFc=; b=D7q+GBgvcBQrbwQdw7nuM+v6OF+cuLtXnO8FZEF89DHVhedop6kCA6pk u8jYS8hDH4QYCMikexGbbFohSvpt5pMMNU3Jme0E+ao4S3X3RrbYG+49K jsIiLLrrl2kK7fU1YnWEX8fAY8k3yiufr0+uflDpcZ1S8uDmDBEw4ntd0 8ab34zsueTE5LidgQ9LE6Ph0Za8oIskaPhLIsLsKsaR2RxoiEMtRqMIvH sQIq0EbndNOaMBQJRNqbC224URoRIw2RWI6u2eRqOkQs6RhOcdhd2e+dq jibOCO9daPPCyNk2ZOF/cp/yohlGUbVPMvIWDWImdNcnrcYTga5fBxgyl A==; X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="4422899" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="4422899" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 03:09:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="883098908" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="883098908" Received: from unknown (HELO mylly.fi.intel.com.) ([10.237.72.75]) by fmsmga002.fm.intel.com with ESMTP; 17 Nov 2023 03:09:28 -0800 From: Jarkko Nikula To: linux-i3c@lists.infradead.org Cc: Alexandre Belloni , Joshua Yeong , Miquel Raynal , Jarkko Nikula Subject: [PATCH] i3c: master: Fix build error Date: Fri, 17 Nov 2023 13:09:24 +0200 Message-ID: <20231117110924.634280-1-jarkko.nikula@linux.intel.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231117_030934_186746_679DFD9D X-CRM114-Status: GOOD ( 11.59 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org Fix build error caused by commit 2aac0bf4ebc8 ("i3c: Add fallback method for GETMXDS CCC") which incorrectly access the "struct i3c_ccc_cmd_dest dest" as pointer. drivers/i3c/master.c: In function ‘i3c_master_getmxds_locked’: drivers/i3c/master.c:1140:21: error: invalid type argument of ‘->’ (have ‘struct i3c_ccc_cmd_dest’) 1140 | dest->payload.len -= 3; | ^~ Fixes: 2aac0bf4ebc8 ("i3c: Add fallback method for GETMXDS CCC") Signed-off-by: Jarkko Nikula Reviewed-by: Miquel Raynal --- drivers/i3c/master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index 718b643cb54d..8b729ebae2a6 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -1135,7 +1135,7 @@ static int i3c_master_getmxds_locked(struct i3c_master_controller *master, * Retry when the device does not support max read turnaround * while expecting shorter length from this CCC command. */ - dest->payload.len -= 3; + dest.payload.len -= 3; ret = i3c_master_send_ccc_cmd_locked(master, &cmd); if (ret) goto out;