[PATCH 0/3] powerpc/sparse: constify addresses in get_user macros

Daniel Axtens dja at axtens.net
Mon Jan 30 17:41:52 AEDT 2017


Looking through the sparse warnings, I noticed that we were getting
warnings about dropping const qualifiers in get_user calls. This took
a while to figure out: it turns out that if you pass a const pointer
in, sparse will complain when we drop the const qualifier deep inside
the __get_user_ macros. This simple series fixes that, squashing over
60 warnings.

Daniel Axtens (3):
  powerpc/sparse: constify the address pointer in __get_user_check
  powerpc/sparse: constify the address pointer in __get_user_nocheck
  powerpc/sparse: constify the address pointer in __get_user_nosleep

 arch/powerpc/include/asm/uaccess.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.9.3



More information about the Linuxppc-dev mailing list