Thread (28 messages) 28 messages, 6 authors, 2018-03-10

[PATCH 3/3] tpm_crb: use __le64 annotated variable for response buffer address

From: jgg@ziepe.ca (Jason Gunthorpe)
Date: 2018-03-06 15:39:41
Also in: linux-integrity, lkml

On Tue, Mar 06, 2018 at 10:28:21AM +0200, Jarkko Sakkinen wrote:
On Mon, Mar 05, 2018 at 03:03:20PM +0200, Jarkko Sakkinen wrote:
quoted
On Sun, Mar 04, 2018 at 02:12:05PM +0200, Tomas Winkler wrote:
quoted
This suppresses sparse warning
drivers/char/tpm/tpm_crb.c:558:18: warning: cast to restricted __le64

Signed-off-by: Tomas Winkler <redacted>
 drivers/char/tpm/tpm_crb.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
The guideline is that you should describe what is wrong rather than
copy-paste the sparse message.
Jason, didn't yo give the feedback to some patch 1-2 years ago that
instead of copy-pasting parse error one should write a clear commit
msg or is this OK?
The standard is to give some explaination why the tool complaint is
valid and then if suitable include the tool complaint itself.

Eg bad:

Fix sparse warning on resp

Good:

use __le64 annotated variable for response buffer address

IMHO, the subject line sufficiently describes the patch, and it is
generally OK to clip the tool warning into the body..

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help