From: Behan Webster Date: Wed, 29 Oct 2014 22:42:23 +0000 (-0700) Subject: staging, rtl8192e, LLVMLinux: Make static local in inline function const X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~581 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16fc54ee26912d3f2450bc4832b19c943dbdff17;p=pandora-kernel.git 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 Suggested-by: Arnd Bergmann Cc: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed