]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Fix up tracepoint build fallout from static key introduction.
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Fri, 27 Apr 2012 01:42:38 +0000 (11:12 +0930)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 27 Apr 2012 01:42:38 +0000 (11:12 +0930)
commitf8577eee7a8dd5f0ff446e1ce4aa965e26c5e9b0
tree5db0f90f95770951cafacd6c029f9d1c5d201b4d
parentb46e14c9d7c1547a88e603103154d9631056e5e9
sh: Fix up tracepoint build fallout from static key introduction.

With the introduction of static keys, anything using tracepoints blows up
in the following manner:

include/trace/events/oom.h:8:13: error: initializer element is not constant
include/trace/events/oom.h:8:13: error: (near initialization for '__tracepoint_oom_score_adj_update')
include/trace/events/oom.h:8:13: error: initializer element is not constant
include/trace/events/oom.h:8:13: error: (near initialization for '__tracepoint_oom_score_adj_update.key')

This is a result of the STATIC_KEY_INIT_xxx defs wrapping ATOMIC_INIT()
which on sh includes an atomic_t typecast. Given that we don't really
need the typecast for anything anymore, the simplest solution is simply
to kill off the cast.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/atomic.h