95ec77c06e
powernv marks it's halt and restart calls as __noreturn. However, ppc_md does not have this annotation. Add the annotation to ppc_md, and then to every halt/restart function that is missing it. Additionally, I have verified that all of these functions do not return. Occasionally I have added a spin loop to be sure. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
21 lines
269 B
C
21 lines
269 B
C
#ifndef _PQ2_H
|
|
#define _PQ2_H
|
|
|
|
void __noreturn pq2_restart(char *cmd);
|
|
|
|
#ifdef CONFIG_PCI
|
|
int pq2ads_pci_init_irq(void);
|
|
void pq2_init_pci(void);
|
|
#else
|
|
static inline int pq2ads_pci_init_irq(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void pq2_init_pci(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif
|