[CRIU] [PATCH 1/5] pie: relocs -- Fix compilation on ARM
Cyrill Gorcunov
gorcunov at openvz.org
Tue Jun 9 06:18:23 PDT 2015
| parasite-syscall.c: In function ‘parasite_infect_seized’:
| parasite-syscall.c:1222:5: error: ‘elf_relocs’ undeclared (first use in this function)
Reported-by: Andrey Vagin <avagin at openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
pie/pie-relocs.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pie/pie-relocs.h b/pie/pie-relocs.h
index 96f2bc9f2044..c533def6bf5d 100644
--- a/pie/pie-relocs.h
+++ b/pie/pie-relocs.h
@@ -11,7 +11,9 @@
extern __maybe_unused void elf_relocs_apply(void *mem, void *vbase, size_t size, elf_reloc_t *elf_relocs, size_t nr_relocs);
#else
#define PIE_SIZE(__blob_name) (round_up(sizeof(__blob_name), PAGE_SIZE))
-static always_inline void elf_relocs_apply(void *mem, void *vbase, size_t size, elf_reloc_t *elf_relocs, size_t nr_relocs) { }
+#define elf_relocs
+#define nr_relocs
+#define elf_relocs_apply(mem, vbase, size, elf_relocs, nr_relocs)
#endif
#endif /* __PIE_RELOCS_H__ */
--
2.4.2
More information about the CRIU
mailing list