[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <10be346c204016547fee0323cbf2ab4688dd2859.camel@linux.intel.com>
Date: Tue, 17 Dec 2019 16:35:58 +0200
From: Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>
To: "Ben Dooks (Codethink)" <ben.dooks@...ethink.co.uk>
Cc: David Howells <dhowells@...hat.com>, keyrings@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] KEYS: trusted: fix type warnings in ntohl/nthos
On Tue, 2019-12-17 at 11:09 +0000, Ben Dooks (Codethink) wrote:
> The ntohl takes a __be32 and ntohs takes __be16, so cast to
> those types before passing it to the byte swapping functions.
Thanks!
> Note, would be32_to_cpu and be16_to_cpu be better here?
Yes, I think that should work too.
/Jarkko
Powered by blists - more mailing lists