diff options
author | Anton Blanchard <anton@samba.org> | 2015-05-26 00:53:25 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-06-11 09:33:05 +0200 |
commit | b91c1e3e7a6f22a6b898e345b745b6a43273c973 (patch) | |
tree | e52bbbaaac74d9cf7388344b62394c15acdf3e49 /lib | |
parent | vfio: powerpc/spapr: Support Dynamic DMA windows (diff) | |
download | linux-b91c1e3e7a6f22a6b898e345b745b6a43273c973.tar.xz linux-b91c1e3e7a6f22a6b898e345b745b6a43273c973.zip |
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 <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions