/* Profiling data for this node has been loaded again. Add profiling data from previous instantiation and turn this node into a regular node.  */
static void revive_node(struct gcov_node *node, struct gcov_info *info)
/* Profiling data for this node has been loaded again. Add profiling data from previous instantiation and turn this node into a regular node.  */
static void revive_node(struct gcov_node *node, struct gcov_info *info)
{
	if (gcov_info_is_compatible(node->ghost, info))
		gcov_info_add(info, node->ghost);
	else {
		pr_warning("discarding saved data for '%s' (version changed)\n",
			   info->filename);
	}
	gcov_info_free(node->ghost);
	node->ghost = NULL;
	node->info = info;
}