浏览代码

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 <wanlong.gao@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Wanlong Gao 14 年之前
父节点
当前提交
09378d7c21
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/xtensa/kernel/time.c

+ 1 - 1
arch/xtensa/kernel/time.c

@@ -31,7 +31,7 @@ unsigned long ccount_per_jiffy;		/* per 1/HZ */
 unsigned long nsec_per_ccount;		/* nsec per ccount increment */
 unsigned long nsec_per_ccount;		/* nsec per ccount increment */
 #endif
 #endif
 
 
-static cycle_t ccount_read(void)
+static cycle_t ccount_read(struct clocksource *cs)
 {
 {
 	return (cycle_t)get_ccount();
 	return (cycle_t)get_ccount();
 }
 }