xtensa:fix the incompatible pointer type warning in time.c
PATCH 1/1 xtensa:fix the incompatible pointer type warning in time.c
Fix the definition of the function ccount_read to be compatible to the member read of the structure clocksource.
Signed-off-by Wanlong Gao <[email protected]>
--- arch/xtensa/kernel/time.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/xtensa/kernel/time.c +1 -1
@@ -31,7 +31,7 @@ unsigned long ccount_per_jiffy; /* per 1/HZ */unsigned long nsec_per_ccount;/* nsec per ccount increment */ #endif -static cycle_t ccount_read (void ) +static cycle_t ccount_read (struct clocksource *cs) {return (cycle_t )get_ccount (); }
Signature · 1 line
1.7.4.1