Skip to content

powerpc/sparse: constify addresses in get_user macros

Daniel Axtens linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3powerpc/sparse: constify the address pointer in __get_user_checkarch/powerpc/include/asm/uaccess.h+1 -11 reply
2/3powerpc/sparse: constify the address pointer in __get_user_nocheckarch/powerpc/include/asm/uaccess.h+1 -10 replies
3/3powerpc/sparse: constify the address pointer in __get_user_nosleeparch/powerpc/include/asm/uaccess.h+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.9.3