[CRIU] [PATCH] parasite.c: use .space not .skip for inline asm

Kir Kolyshkin kir at openvz.org
Mon Feb 13 18:00:24 EST 2012


In the beginning it was the Word, and the Word was .space.
Later, .skip was introduced as a synonym for .space,
initially only for 680x0 platform.

But the sole reason for this patch is that I use clang/llvm
to check the code and unfortunately it does not understand .skip,
printing long ugly warnings I'd like to avoid.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 parasite.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/parasite.c b/parasite.c
index ff49605..55064c5 100644
--- a/parasite.c
+++ b/parasite.c
@@ -454,12 +454,12 @@ static void __parasite_head __used parasite_head(void)
 		     ".long 0									\n\t"
 		     "parasite_args:								\n\t"
 		     ".long 0									\n\t"
-		     ".skip "__stringify(PARASITE_ARG_SIZE)",0					\n\t"
-		     ".skip "__stringify(PARASITE_STACK_SIZE)", 0				\n\t"
+		     ".space "__stringify(PARASITE_ARG_SIZE)",0					\n\t"
+		     ".space "__stringify(PARASITE_STACK_SIZE)", 0				\n\t"
 		     "parasite_stack:								\n\t"
 		     ".long 0									\n\t"
 		     "parasite_brk:								\n\t"
-		     ".skip "__stringify(PARASITE_BRK_SIZE)", 0					\n\t"
+		     ".space "__stringify(PARASITE_BRK_SIZE)", 0				\n\t"
 		     ".long 0									\n\t");
 }
 
-- 
1.7.7.6



More information about the CRIU mailing list