mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51: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>
11 lines
243 B
C
11 lines
243 B
C
#ifndef _ASM_ARM_MEMBLOCK_H
|
|
#define _ASM_ARM_MEMBLOCK_H
|
|
|
|
struct meminfo;
|
|
struct machine_desc;
|
|
|
|
void arm_memblock_init(struct meminfo *, const struct machine_desc *);
|
|
phys_addr_t arm_memblock_steal(phys_addr_t size, phys_addr_t align);
|
|
|
|
#endif
|