Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752570AbbB0LqL (ORCPT ); Fri, 27 Feb 2015 06:46:11 -0500 Received: from m12-14.163.com ([220.181.12.14]:45775 "EHLO m12-14.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbbB0LqK (ORCPT ); Fri, 27 Feb 2015 06:46:10 -0500 X-Coremail-DSSMTP: 180.110.162.116 From: weiyj_lk@163.com To: Daniel Lezcano , Thomas Gleixner Cc: Wei Yongjun , linux-kernel@vger.kernel.org Subject: [PATCH -next] clocksource: Fix sparse non static symbol warning Date: Fri, 27 Feb 2015 19:45:00 +0800 Message-Id: <1425037500-23580-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 1.9.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-CM-TRANSID: DsCowECpPUu8WPBUMjXaBw--.435S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7WryUGw4DArWxGw45Cw4rKrg_yoWfCFg_Cr ZFyFn7XFn3KFn5K3yDu3W3u3yaqFnavr15tF42qF9xXay0yr1jkr1UZr1xZFy8uw47JFyD Aa9rJryxArs7KjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUneT5JUUUUU== X-Originating-IP: [180.110.162.116] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/1tbivx6t1lD+Yxm7rgAAsb Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1098 Lines: 31 From: Wei Yongjun Fixes the following sparse warnings: drivers/clocksource/timer-digicolor.c:66:24: warning: symbol 'dc_timer' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/clocksource/timer-digicolor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-digicolor.c b/drivers/clocksource/timer-digicolor.c index 7f8388c..3ccea18 100644 --- a/drivers/clocksource/timer-digicolor.c +++ b/drivers/clocksource/timer-digicolor.c @@ -63,7 +63,7 @@ struct digicolor_timer { int timer_id; /* one of TIMER_* */ }; -struct digicolor_timer *dc_timer(struct clock_event_device *ce) +static struct digicolor_timer *dc_timer(struct clock_event_device *ce) { return container_of(ce, struct digicolor_timer, ce); } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/