public inbox for linux-i3c@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] i3c: master: Fix build error
@ 2023-11-17 11:09 Jarkko Nikula
  2023-11-17 11:22 ` Miquel Raynal
  2023-11-17 14:56 ` Alexandre Belloni
  0 siblings, 2 replies; 3+ messages in thread
From: Jarkko Nikula @ 2023-11-17 11:09 UTC (permalink / raw)
  To: linux-i3c; +Cc: Alexandre Belloni, Joshua Yeong, Miquel Raynal, Jarkko Nikula

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 <jarkko.nikula@linux.intel.com>
---
 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;
-- 
2.42.0


-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] i3c: master: Fix build error
  2023-11-17 11:09 [PATCH] i3c: master: Fix build error Jarkko Nikula
@ 2023-11-17 11:22 ` Miquel Raynal
  2023-11-17 14:56 ` Alexandre Belloni
  1 sibling, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2023-11-17 11:22 UTC (permalink / raw)
  To: Jarkko Nikula; +Cc: linux-i3c, Alexandre Belloni, Joshua Yeong

Hi Jarkko,

jarkko.nikula@linux.intel.com wrote on Fri, 17 Nov 2023 13:09:24 +0200:

> 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 <jarkko.nikula@linux.intel.com>

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>

> ---
>  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;


Thanks,
Miquèl

-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] i3c: master: Fix build error
  2023-11-17 11:09 [PATCH] i3c: master: Fix build error Jarkko Nikula
  2023-11-17 11:22 ` Miquel Raynal
@ 2023-11-17 14:56 ` Alexandre Belloni
  1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Belloni @ 2023-11-17 14:56 UTC (permalink / raw)
  To: linux-i3c, Jarkko Nikula; +Cc: Joshua Yeong, Miquel Raynal


On Fri, 17 Nov 2023 13:09:24 +0200, Jarkko Nikula wrote:
> 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;
>       |                     ^~
> 
> [...]

Applied, thanks!

[1/1] i3c: master: Fix build error
      commit: b4da37db3e2cfc1c60875b0c10cfc556d5342a3a

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-17 14:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17 11:09 [PATCH] i3c: master: Fix build error Jarkko Nikula
2023-11-17 11:22 ` Miquel Raynal
2023-11-17 14:56 ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox