RISC-V: Make our port sparse-clean
authorPalmer Dabbelt <palmer@sifive.com>
Mon, 11 Jun 2018 16:09:49 +0000 (09:09 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 11 Jun 2018 16:09:49 +0000 (09:09 -0700)
commite0e0c87c022b654bcc79224ce73633f0d274e091
tree5ce8e15d02608f83147daae33d5ee41b164c081c
parent41611ed2c82460bce830b7f1f132a9cfff002d86
parent86406d51d3600bfa2b6f86e1e6bfce712bec0d53
RISC-V: Make our port sparse-clean

This patch set contains a handful of fixes that clean up the sparse
results for the RISC-V port.  These patches shouldn't have any
functional difference.  The patches:

* Use NULL instead of 0.
* Clean up __user annotations.
* Split __copy_user into two functions, to make the __user annotations
  valid.

Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
arch/riscv/lib/uaccess.S