mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
[PATCH] timer: Fix tvec_bases initializer
kernel/timer.c defines a (per-cpu) pointer to tvec_base_t, but initializes it using { &a_tvec_base_t }, which sparse warns about; change this to just &a_tvec_base_t. Signed-off-by: Josh Triplett <josh@freedesktop.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
bc65ac6a0f
commit
51d8c5edd3
@ -84,7 +84,7 @@ typedef struct tvec_t_base_s tvec_base_t;
|
|||||||
|
|
||||||
tvec_base_t boot_tvec_bases;
|
tvec_base_t boot_tvec_bases;
|
||||||
EXPORT_SYMBOL(boot_tvec_bases);
|
EXPORT_SYMBOL(boot_tvec_bases);
|
||||||
static DEFINE_PER_CPU(tvec_base_t *, tvec_bases) = { &boot_tvec_bases };
|
static DEFINE_PER_CPU(tvec_base_t *, tvec_bases) = &boot_tvec_bases;
|
||||||
|
|
||||||
static inline void set_running_timer(tvec_base_t *base,
|
static inline void set_running_timer(tvec_base_t *base,
|
||||||
struct timer_list *timer)
|
struct timer_list *timer)
|
||||||
|
Loading…
Reference in New Issue
Block a user