public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [time:fortglx/3.7/time 11/13] include/linux/timekeeper_internal.h:101:1: sparse: missing identifier
@ 2012-09-22  0:41 Fengguang Wu
  2012-09-22  0:47 ` [time:fortglx/3.7/time 11/13] include/linux/timekeeper_internal.h:101:1: sparse: missing identif John Stultz
  0 siblings, 1 reply; 2+ messages in thread
From: Fengguang Wu @ 2012-09-22  0:41 UTC (permalink / raw)
  To: kernel-janitors

Hi John,

FYI, there are new sparse warnings show up in

tree:   git://git.linaro.org/people/jstultz/linux.git fortglx/3.7/time
head:   f9bb3ff13c4701ee6242ec4b4ef0cbc71d5ff299
commit: 672364f56055976aae7e68b59cf578173a3dbddc [11/13] time: Introduce new GENERIC_TIME_VSYSCALL

All sparse warnings:

+ include/linux/timekeeper_internal.h:101:1: sparse: missing identifier in declaration
+ include/linux/timekeeper_internal.h:101:1: sparse: Expected ; at the end of type declaration
+ include/linux/timekeeper_internal.h:101:1: sparse: got {
  kernel/time.c:167:17: sparse: undefined identifier 'update_vsyscall_tz'
  In file included from kernel/time.c:33:0:
  include/linux/timekeeper_internal.h:101:1: error: expected identifier or '(' before '{' token
  In file included from kernel/time.c:33:0:
  include/linux/timekeeper_internal.h:100:20: warning: 'update_vsyscall' declared 'static' but never defined [-Wunused-function]
--
+ include/linux/timekeeper_internal.h:101:1: sparse: missing identifier in declaration
+ include/linux/timekeeper_internal.h:101:1: sparse: Expected ; at the end of type declaration
+ include/linux/timekeeper_internal.h:101:1: sparse: got {
  arch/x86/include/asm/stat.h:26:1: sparse: Expected ; at the end of type declaration
  arch/x86/include/asm/stat.h:26:1: sparse: got }
+ include/linux/timekeeper_internal.h:100:35: sparse: marked inline, but without a definition
  In file included from kernel/time/timekeeping.c:11:0:
  include/linux/timekeeper_internal.h:101:1: error: expected identifier or '(' before '{' token
  In file included from kernel/time/timekeeping.c:11:0:
  include/linux/timekeeper_internal.h:100:20: warning: 'update_vsyscall' used but never defined [enabled by default]
? kernel/time.c:167:17: sparse: undefined identifier 'update_vsyscall_tz'
? arch/x86/include/asm/stat.h:26:1: sparse: Expected ; at the end of type declaration
? arch/x86/include/asm/stat.h:26:1: sparse: got }

vim +101 include/linux/timekeeper_internal.h
    85	
    86	extern void update_vsyscall_old(struct timespec *ts, struct timespec *wtm,
    87					struct clocksource *c, u32 mult);
    88	extern void update_vsyscall_tz(void);
    89	
    90	static inline void update_vsyscall(struct timekeeper *tk)
    91	{
    92		struct timespec xt;
    93	
    94		xt = tk_xtime(tk);
    95		update_vsyscall_old(&xt, &tk->wall_to_monotonic, tk->clock, tk->mult);
    96	}
    97	
    98	#else
    99	
   100	static inline void update_vsyscall(struct timekeeper *tk);
 > 101	{
   102	}
   103	static inline void update_vsyscall_tz(void)
   104	{
   105	}
   106	#endif
   107	
   108	#endif /* _LINUX_TIMEKEEPER_INTERNAL_H */

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu, Yuanhan Liu                              Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [time:fortglx/3.7/time 11/13] include/linux/timekeeper_internal.h:101:1: sparse: missing identif
  2012-09-22  0:41 [time:fortglx/3.7/time 11/13] include/linux/timekeeper_internal.h:101:1: sparse: missing identifier Fengguang Wu
@ 2012-09-22  0:47 ` John Stultz
  0 siblings, 0 replies; 2+ messages in thread
From: John Stultz @ 2012-09-22  0:47 UTC (permalink / raw)
  To: kernel-janitors

On 09/21/2012 05:41 PM, Fengguang Wu wrote:
> Hi John,
>
> FYI, there are new sparse warnings show up in
>
> tree:   git://git.linaro.org/people/jstultz/linux.git fortglx/3.7/time
> head:   f9bb3ff13c4701ee6242ec4b4ef0cbc71d5ff299
> commit: 672364f56055976aae7e68b59cf578173a3dbddc [11/13] time: Introduce new GENERIC_TIME_VSYSCALL
>
> All sparse warnings:
>
[snip]
>      98	#else
>      99	
>     100	static inline void update_vsyscall(struct timekeeper *tk);
>   > 101	{
>     102	}
>     103	static inline void update_vsyscall_tz(void)
>     104	{
>     105	}
>     106	#endif
>     107	
>     108	#endif /* _LINUX_TIMEKEEPER_INTERNAL_H */
>
I just caught this myself and have re-pushed out a fix to that tree.

Thanks again for the automated testing!
-john


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-22  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-22  0:41 [time:fortglx/3.7/time 11/13] include/linux/timekeeper_internal.h:101:1: sparse: missing identifier Fengguang Wu
2012-09-22  0:47 ` [time:fortglx/3.7/time 11/13] include/linux/timekeeper_internal.h:101:1: sparse: missing identif John Stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox