mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
ff69a4c855
struct machine_desc records are defined everywhere as a 'const' structure, but unfortuantely it loses its const-ness through the use of linker magic - the symbols which surround the section are not declared const so it becomes possible not to use 'const' for pointers to these const structures. Let's fix this oversight - all pointers to these structures should be marked const too. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
20 lines
515 B
C
20 lines
515 B
C
#ifdef CONFIG_ATAGS_PROC
|
|
extern void save_atags(struct tag *tags);
|
|
#else
|
|
static inline void save_atags(struct tag *tags) { }
|
|
#endif
|
|
|
|
void convert_to_tag_list(struct tag *tags);
|
|
|
|
#ifdef CONFIG_ATAGS
|
|
const struct machine_desc *setup_machine_tags(phys_addr_t __atags_pointer,
|
|
unsigned int machine_nr);
|
|
#else
|
|
static inline const struct machine_desc *
|
|
setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr)
|
|
{
|
|
early_print("no ATAGS support: can't continue\n");
|
|
while (true);
|
|
unreachable();
|
|
}
|
|
#endif
|