summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorWanlong Gao <wanlong.gao@gmail.com>2011-06-01 22:37:43 +0800
committerChris Zankel <chris@zankel.net>2012-12-18 21:10:20 -0800
commit09378d7c21a806d5ddb75ebcae242d98cea30e44 (patch)
tree7dd7d8581e04fc285fcea0bba8bbffd2b7d8ba5b /arch/xtensa
parent752451f01c4567b506bf4343082682dbb8fb30dd (diff)
downloadtalos-op-linux-09378d7c21a806d5ddb75ebcae242d98cea30e44.tar.gz
talos-op-linux-09378d7c21a806d5ddb75ebcae242d98cea30e44.zip
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>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/kernel/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/time.c b/arch/xtensa/kernel/time.c
index ac62f9cf1e10..19b32a0eaebc 100644
--- a/arch/xtensa/kernel/time.c
+++ b/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 */
#endif
-static cycle_t ccount_read(void)
+static cycle_t ccount_read(struct clocksource *cs)
{
return (cycle_t)get_ccount();
}
OpenPOWER on IntegriCloud