[PATCH net-next v2 3/3] mctp i3c: MCTP I3C driver
Simon Horman
simon.horman at corigine.com
Thu Jul 20 10:35:38 PDT 2023
On Mon, Jul 17, 2023 at 12:06:38PM +0800, Matt Johnston wrote:
...
Hi Matt,
> +/* Returns the 48 bit Provisioned Id from an i3c_device_info.pid */
> +static void pid_to_addr(u64 pid, u8 addr[PID_SIZE])
> +{
> + pid = cpu_to_be64(pid);
This assigns a be64 value to a u64 variable,
which is incorrect from a Sparse annotation perspective.
> + memcpy(addr, ((u8 *)&pid) + 2, PID_SIZE);
> +}
...
More information about the linux-i3c
mailing list