[LTP] [PATCH v3 1/2] KVM test infrastructure
Cyril Hrubis
chrubis@suse.cz
Thu Apr 21 15:07:34 CEST 2022
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
More information about the ltp
mailing list