parisc: Cleanup mmap implementation regarding color alignment
authorJohn David Anglin <dave@parisc-linux.org>
Sun, 26 Feb 2023 18:03:33 +0000 (18:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Sep 2023 07:16:19 +0000 (09:16 +0200)
commite8ac4be717015978636ada1e985e6cc15b8a65c8
tree8ce04b5a6e105bb2b73b69d82122880dd61b8a8d
parentb3d099df68de4f62ade6f8bf59e80899ac463d3b
parisc: Cleanup mmap implementation regarding color alignment

commit 567b35159e76997e95b643b9a8a5d9d2198f2522 upstream.

This change simplifies the randomization of file mapping regions. It
reworks the code to remove duplication. The flow is now similar to
that for mips. Finally, we consistently use the do_color_align variable
to determine when color alignment is needed.

Tested on rp3440.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/sys_parisc.c