gcov: explicitly include xen/init.h
authorWei Liu <wei.liu2@citrix.com>
Mon, 5 Dec 2016 13:49:14 +0000 (13:49 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 5 Dec 2016 13:56:43 +0000 (13:56 +0000)
Travis discovered arm32 gcov code failed to build because __init was not
defined.

Include init.h explicitly to fix the issue.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/gcov/gcov_base.c

index e5065db5abd90ac0891e0c5516ea147013c38589..34a0183521c33603e811703dec9d8549b994971e 100644 (file)
@@ -15,6 +15,8 @@
 
 #include "gcov.h"
 
+#include <xen/init.h>
+
 /*
  * __gcov_init is called by gcc-generated constructor code for each object
  * file compiled with -fprofile-arcs.