diff options
author | Cédric Le Goater <clg@fr.ibm.com> | 2015-02-24 12:14:18 +0100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-26 18:19:40 +1100 |
commit | 71412289a28b23dc459dae472a0264ca660cd7df (patch) | |
tree | 51a7ca62ac19c738040c895fd7631e048dce7642 /include | |
parent | 61f1609249bca3234fd3f463ebc55c6eeef8f494 (diff) | |
download | skiboot-71412289a28b23dc459dae472a0264ca660cd7df.zip skiboot-71412289a28b23dc459dae472a0264ca660cd7df.tar.gz skiboot-71412289a28b23dc459dae472a0264ca660cd7df.tar.bz2 |
sparse: fix fonction declarations
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/cpu.h | 4 | ||||
-rw-r--r-- | include/lpc.h | 2 | ||||
-rw-r--r-- | include/skiboot.h | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/cpu.h b/include/cpu.h index 1d7c7c5..54e1b37 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -214,7 +214,7 @@ static inline void cpu_give_self_os(void) __this_cpu->state = cpu_state_os; } -extern unsigned long cpu_stack_bottom(unsigned int pir); -extern unsigned long cpu_stack_top(unsigned int pir); +extern unsigned long __attrconst cpu_stack_bottom(unsigned int pir); +extern unsigned long __attrconst cpu_stack_top(unsigned int pir); #endif /* __CPU_H */ diff --git a/include/lpc.h b/include/lpc.h index 632727f..5611c54 100644 --- a/include/lpc.h +++ b/include/lpc.h @@ -28,7 +28,7 @@ extern void lpc_init(void); extern bool lpc_present(void); /* Handle the interrupt from LPC source */ -extern void lpc_interrupt(uint32_t chip_id); +extern void __attrconst lpc_interrupt(uint32_t chip_id); /* Default bus accessors */ extern int64_t lpc_write(enum OpalLPCAddressType addr_type, uint32_t addr, diff --git a/include/skiboot.h b/include/skiboot.h index d20a9a2..146ff80 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -117,7 +117,7 @@ enum proc_gen { extern enum proc_gen proc_gen; /* Convert a 4-bit number to a hex char */ -extern char tohex(uint8_t nibble); +extern char __attrconst tohex(uint8_t nibble); /* Bit position of the most significant 1-bit (LSB=0, MSB=63) */ static inline int ilog2(unsigned long val) @@ -180,8 +180,8 @@ extern unsigned long get_symbol(unsigned long addr, /* Fast reboot support */ extern void fast_reset(void); -extern void __secondary_cpu_entry(void); -extern void load_and_boot_kernel(bool is_reboot); +extern void __noreturn __secondary_cpu_entry(void); +extern void __noreturn load_and_boot_kernel(bool is_reboot); extern void cleanup_tlb(void); extern void init_shared_sprs(void); extern void init_replicated_sprs(void); |