[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230718190022.66268d21@kernel.org>
Date: Tue, 18 Jul 2023 19:00:22 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Matt Johnston <matt@...econstruct.com.au>
Cc: linux-i3c@...ts.infradead.org, netdev@...r.kernel.org,
devicetree@...r.kernel.org, "David S. Miller" <davem@...emloft.net>, Paolo
Abeni <pabeni@...hat.com>, Jeremy Kerr <jk@...econstruct.com.au>, Alexandre
Belloni <alexandre.belloni@...tlin.com>, Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>, Conor Dooley
<conor+dt@...nel.org>
Subject: Re: [PATCH net-next v2 3/3] mctp i3c: MCTP I3C driver
On Mon, 17 Jul 2023 12:06:38 +0800 Matt Johnston wrote:
> +/* 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);
> + memcpy(addr, ((u8 *)&pid) + 2, PID_SIZE);
> +}
put_unaligned_be48() ? That or you need a local variable or something,
because otherwise sparse is not happy (build test with C=1).
Powered by blists - more mailing lists