riscv: turn mm_segment_t into a struct

This matches what other heavily used architectures do, and will allow us
to easily use <asm-generic/uaccess.h> for the nommu case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
Christoph Hellwig 2019-04-15 11:14:33 +02:00 • committed by Palmer Dabbelt
commit 5cfade5fdc
No known key found for this signature in database
GPG key ID: EF4CA1502CCBAB41
2 changed files with 10 additions and 6 deletions