mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[S390] Fix a lot of sparse warnings.
Most noteable part of this commit is the new local header file entry.h which contains all the function declarations of functions that get only called from asm code or are arch internal. That way we can avoid extern declarations in C files. This is more or less the same that was done for sparc64. Signed-off-by: Martin Schwidefsky <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
This commit is contained in:
parent
5a62b19219
commit
a806170e29
26 changed files with 198 additions and 64 deletions
|
|
@ -397,6 +397,10 @@ struct cio_iplinfo {
|
|||
|
||||
extern int cio_get_iplinfo(struct cio_iplinfo *iplinfo);
|
||||
|
||||
/* Function from drivers/s390/cio/chsc.c */
|
||||
int chsc_sstpc(void *page, unsigned int op, u16 ctrl);
|
||||
int chsc_sstpi(void *page, void *result, size_t size);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -83,5 +83,6 @@ static inline cycles_t get_cycles(void)
|
|||
|
||||
int get_sync_clock(unsigned long long *clock);
|
||||
void init_cpu_timer(void);
|
||||
unsigned long long monotonic_clock(void);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@ static inline void __tlb_flush_local(void)
|
|||
/*
|
||||
* Flush all tlb entries on all cpus.
|
||||
*/
|
||||
void smp_ptlb_all(void);
|
||||
|
||||
static inline void __tlb_flush_global(void)
|
||||
{
|
||||
extern void smp_ptlb_all(void);
|
||||
register unsigned long reg2 asm("2");
|
||||
register unsigned long reg3 asm("3");
|
||||
register unsigned long reg4 asm("4");
|
||||
|
|
|
|||
Loading…
Reference in a new issue