From: Joe Perches Date: Thu, 16 Apr 2015 19:44:42 +0000 (-0700) Subject: checkpatch: add a test for const with __read_mostly uses X-Git-Tag: omap-for-v4.2/o2_dc~105^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c17893c7407fbe988f5901596c3e5e75c0dc0f67;p=pandora-kernel.git checkpatch: add a test for const with __read_mostly uses const objects shouldn't be __read_mostly. They are read-only. Marking these objects as __read_mostly causes section conflicts with LTO linking. So add a test to try to avoid this issue. Signed-off-by: Joe Perches Cc: Andy Whitcroft Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed