aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBehan Webster <[email protected]>2014-10-29 15:42:23 -0700
committerGreg Kroah-Hartman <[email protected]>2014-10-29 16:33:05 -0700
commit16fc54ee26912d3f2450bc4832b19c943dbdff17 (patch)
treeda444c8340fc914531c0e535791a4db99e4988bd /tools/perf/scripts/python
parentd82f0029e03d8512ac523ac2e4caa5cecb989570 (diff)
staging, rtl8192e, LLVMLinux: Make static local in inline function const
rtllib_association_req is a (large) inline function which defines 2 constant static arrays which aren't labelled as const. As a result clang complains with: non-constant static local variable in inline function may be different in different files [-Wstatic-local-in-inline] static u8 AironetIeOui[] = {0x00, 0x01, 0x66}; ^ The solution is making them "static const". However doing so requires dropping const when being used with struct octet_string. However the value is used in a const fashion thereafter, so no harm done. Signed-off-by: Behan Webster <[email protected]> Suggested-by: Arnd Bergmann <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions