mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 14:43:58 +08:00
9018113649
Andrew Morton wrote: People keep on doing printk("%llu", some_u64); testing it only on x86_64 and this generates a warning storm on powerpc, sparc64, etc. Because they use `long', not `long long'. Quite a few 64-bit architectures are using `long' for their s64/u64 types. We should convert them all to `long long'. Update types.h so we use unsigned long long for u64 and fix all warnings in sparc64 code. Tested with an allnoconfig, defconfig and allmodconfig builds. This patch introduces additional warnings in several drivers. These will be dealt with in separate patches. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
31 lines
690 B
C
31 lines
690 B
C
/* timer.h: System timer definitions for sun5.
|
|
*
|
|
* Copyright (C) 1997, 2008 David S. Miller (davem@davemloft.net)
|
|
*/
|
|
|
|
#ifndef _SPARC64_TIMER_H
|
|
#define _SPARC64_TIMER_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/init.h>
|
|
|
|
struct sparc64_tick_ops {
|
|
unsigned long long (*get_tick)(void);
|
|
int (*add_compare)(unsigned long);
|
|
unsigned long softint_mask;
|
|
void (*disable_irq)(void);
|
|
|
|
void (*init_tick)(void);
|
|
unsigned long (*add_tick)(unsigned long);
|
|
|
|
char *name;
|
|
};
|
|
|
|
extern struct sparc64_tick_ops *tick_ops;
|
|
|
|
extern unsigned long sparc64_get_clock_tick(unsigned int cpu);
|
|
extern void __devinit setup_sparc64_timer(void);
|
|
extern void __init time_init(void);
|
|
|
|
#endif /* _SPARC64_TIMER_H */
|