From: Anton Blanchard Date: Mon, 25 May 2015 22:53:25 +0000 (+1000) Subject: powerpc: Fix duplicate const clang warning in user access code X-Git-Tag: omap-for-v4.2/fixes-rc1^2~139^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b91c1e3e7a6f22a6b898e345b745b6a43273c973;p=pandora-kernel.git powerpc: Fix duplicate const clang warning in user access code We see a large number of duplicate const errors in the user access code when building with llvm/clang: include/linux/pagemap.h:576:8: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] ret = __get_user(c, uaddr); The problem is we are doing const __typeof__(*(ptr)), which will hit the warning if ptr is marked const. Removing const does not seem to have any effect on GCC code generation. Signed-off-by: Anton Blanchard Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed