From: Will Deacon Date: Mon, 29 Nov 2010 17:06:53 +0000 (+0000) Subject: ARM: hw_breakpoint: fix warnings generated by sparse X-Git-Tag: v2.6.38-rc1~471^2^2~6^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a55c18e2023096c8684fae5fa1cfa96a03172ff;p=pandora-kernel.git ARM: hw_breakpoint: fix warnings generated by sparse sparse doesn't like per-cpu accesses such as: static DEFINE_PER_CPU(struct perf_event *, foo[MAXLEN]); struct perf_event **bar = __get_cpu_var(foo); and shouts quite loudly about it: | warning: incorrect type in assignment (different modifiers) | expected struct perf_event **slots | got struct perf_event *[noderef] * This patch adds casts to these sorts of assignments in hw_breakpoint.c in order to silence the warnings. Reported-by: Russell King Signed-off-by: Will Deacon --- Reading git-diff-tree failed