Message ID | 1480945754-26402-1-git-send-email-wei.liu2@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 05/12/16 13:49, Wei Liu wrote: > 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>
diff --git a/xen/common/gcov/gcov_base.c b/xen/common/gcov/gcov_base.c index e5065db..34a0183 100644 --- a/xen/common/gcov/gcov_base.c +++ b/xen/common/gcov/gcov_base.c @@ -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.
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> --- Cc: Andrew Cooper <andrew.cooper3@citrix.com> Cc: George Dunlap <George.Dunlap@eu.citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Jan Beulich <jbeulich@suse.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: Stefano Stabellini <sstabellini@kernel.org> Cc: Tim Deegan <tim@xen.org> Cc: Wei Liu <wei.liu2@citrix.com> Cc: Julien Grall <julien.grall@arm.com> --- xen/common/gcov/gcov_base.c | 2 ++ 1 file changed, 2 insertions(+)