From: no-reply@patchew.org
To: mjg59@coreos.com
Cc: famz@redhat.com, qemu-devel@nongnu.org, stefanb@us.ibm.com,
dgilbert@redhat.com
Subject: Re: [Qemu-devel] [PATCH V3] hw/misc: Add simple measurement hardware
Date: Mon, 8 Aug 2016 13:30:48 -0700 (PDT) [thread overview]
Message-ID: <E1bWrCH-0006VL-NY@eggs.gnu.org> (raw)
In-Reply-To: <1470688017-1127-1-git-send-email-mjg59@coreos.com>
Hi,
Your series seems to have some coding style problems. See output below for
more information:
Message-id: 1470688017-1127-1-git-send-email-mjg59@coreos.com
Type: series
Subject: [Qemu-devel] [PATCH V3] hw/misc: Add simple measurement hardware
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
commits="$(git log --format=%H --reverse $BASE..)"
for c in $commits; do
echo "Checking PATCH $n/$total: $(git show --no-patch --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))
done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
* [new tag] patchew/1470688017-1127-1-git-send-email-mjg59@coreos.com -> patchew/1470688017-1127-1-git-send-email-mjg59@coreos.com
Switched to a new branch 'test'
a976f6d hw/misc: Add simple measurement hardware
=== OUTPUT BEGIN ===
Checking PATCH 1/1: hw/misc: Add simple measurement hardware...
WARNING: line over 80 characters
#264: FILE: hw/misc/measurements.c:33:
+#define MEASUREMENT(obj) OBJECT_CHECK(MeasurementState, (obj), TYPE_MEASUREMENTS)
WARNING: line over 80 characters
#309: FILE: hw/misc/measurements.c:78:
+static void measurement_select(void *opaque, hwaddr addr, uint64_t val, unsigned size)
WARNING: braces {} are necessary for all arms of this statement
#313: FILE: hw/misc/measurements.c:82:
+ if (val > PCR_COUNT)
[...]
WARNING: line over 80 characters
#345: FILE: hw/misc/measurements.c:114:
+ if (qcrypto_hash_bytes(QCRYPTO_HASH_ALG_SHA1, tmpbuf, 40, &result, &resultlen, &err) == 0) {
WARNING: line over 80 characters
#356: FILE: hw/misc/measurements.c:125:
+static void measurement_value(void *opaque, hwaddr addr, uint64_t val, unsigned size)
WARNING: line over 80 characters
#367: FILE: hw/misc/measurements.c:136:
+static void log_data(MeasurementState *s, int pcrnum, uint8_t *hash, char *description)
WARNING: braces {} are necessary for all arms of this statement
#373: FILE: hw/misc/measurements.c:142:
+ if (!s->log)
[...]
WARNING: line over 80 characters
#386: FILE: hw/misc/measurements.c:155:
+void measurements_extend_data(int pcrnum, uint8_t *data, size_t len, char *description)
WARNING: line over 80 characters
#456: FILE: hw/misc/measurements.c:225:
+ VMSTATE_BUFFER_UNSAFE(measurements, MeasurementState, 0, PCR_COUNT * DIGEST_SIZE),
WARNING: line over 80 characters
#536: FILE: hw/misc/measurements.h:3:
+void measurements_extend_data(int pcrnum, uint8_t *data, size_t len, char *description);
ERROR: trailing whitespace
#626: FILE: qapi-schema.json:4366:
+# $
WARNING: line over 80 characters
#684: FILE: stubs/measurements.c:11:
+void measurements_extend_data(int pcrnum, uint8_t *data, size_t len, char *description)
total: 1 errors, 11 warnings, 564 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===
Test command exited with code: 1
next prev parent reply other threads:[~2016-08-08 20:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 20:26 [Qemu-devel] [PATCH V3] hw/misc: Add simple measurement hardware Matthew Garrett
2016-08-08 20:30 ` no-reply [this message]
2016-08-12 17:59 ` Dr. David Alan Gilbert
2016-08-16 22:13 ` Matthew Garrett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1bWrCH-0006VL-NY@eggs.gnu.org \
--to=no-reply@patchew.org \
--cc=dgilbert@redhat.com \
--cc=famz@redhat.com \
--cc=mjg59@coreos.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanb@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.