From 462a8bc6468912b79629f20f18798558342ce315 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 23 Jun 2011 17:53:48 +0200 Subject: arm: Add const attribute to some arm_boot_info pointers Parameter 'info' is const, so add the missing attribute. v2: Add 'const' to the local variable info in do_cpu_reset() and to the boot_info field in CPUARMState (suggested by Peter Maydell). Cc: Andrzej Zaborowski Cc: Peter Maydell Signed-off-by: Stefan Weil Signed-off-by: Andrzej Zaborowski --- hw/arm-misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/arm-misc.h') diff --git a/hw/arm-misc.h b/hw/arm-misc.h index 010acb4cf9..9aeeaea759 100644 --- a/hw/arm-misc.h +++ b/hw/arm-misc.h @@ -31,7 +31,7 @@ struct arm_boot_info { target_phys_addr_t smp_priv_base; int nb_cpus; int board_id; - int (*atag_board)(struct arm_boot_info *info, void *p); + int (*atag_board)(const struct arm_boot_info *info, void *p); /* Used internally by arm_boot.c */ int is_linux; target_phys_addr_t initrd_size; -- cgit v1.2.3