From: Cyril Hrubis <chrubis@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3 1/2] KVM test infrastructure
Date: Thu, 21 Apr 2022 15:07:34 +0200 [thread overview]
Message-ID: <YmFXFpjUoFfOEPo8@yuki> (raw)
In-Reply-To: <20220421123351.17645-2-mdoucha@suse.cz>
Hi!
Pushed with two minor whitespace fixes, thanks.
Indentation for include directives should be done with spaces after the
hash + removed whitespace before the #define for ARRAY_SIZE().
Full diff:
diff --git a/testcases/kernel/kvm/include/kvm_guest.h b/testcases/kernel/kvm/include/kvm_guest.h
index 8b19f2811..ec13c5845 100644
--- a/testcases/kernel/kvm/include/kvm_guest.h
+++ b/testcases/kernel/kvm/include/kvm_guest.h
@@ -17,7 +17,7 @@
#define TST_TEST_TCONF(message) \
void main(void) { tst_brk(TCONF, message); }
-# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
/* Round x up to the next multiple of a.
* a must be a power of 2.
diff --git a/testcases/kernel/kvm/include/kvm_test.h b/testcases/kernel/kvm/include/kvm_test.h
index 55989eaa5..4d67adc95 100644
--- a/testcases/kernel/kvm/include/kvm_test.h
+++ b/testcases/kernel/kvm/include/kvm_test.h
@@ -9,15 +9,11 @@
#define KVM_TEST_H_
#ifdef COMPILE_PAYLOAD
-
- #include "kvm_guest.h"
- #include "kvm_common.h"
-
+# include "kvm_guest.h"
+# include "kvm_common.h"
#else
-
- #include "tst_test.h"
- #include "kvm_host.h"
-
+# include "tst_test.h"
+# include "kvm_host.h"
#endif /* COMPILE_PAYLOAD */
#endif /* KVM_TEST_H_ */
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-04-21 13:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 12:33 [LTP] [PATCH v3 0/2] KVM testing Martin Doucha
2022-04-21 12:33 ` [LTP] [PATCH v3 1/2] KVM test infrastructure Martin Doucha
2022-04-21 13:07 ` Cyril Hrubis [this message]
2022-04-21 12:33 ` [LTP] [PATCH v3 2/2] Add test for CVE 2021-38198 Martin Doucha
2022-04-21 13:07 ` Cyril Hrubis
2024-05-06 19:17 ` Petr Vorel
2024-05-06 20:02 ` Petr Vorel
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=YmFXFpjUoFfOEPo8@yuki \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
--cc=mdoucha@suse.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox