highmem: Make __kunmap_{local,atomic}() take const void pointer
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Wed, 6 Jul 2022 11:15:19 +0000 (13:15 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:40 +0000 (17:45 +0200)
commit39ade048a32ea653b94dcfbf816b0b13a6be8a33
tree3f6c7688ede853fc018a122564a0430d2a221df4
parentac5e666951507ceb1da2ed85c4f5c7bb88bec06e
highmem: Make __kunmap_{local,atomic}() take const void pointer

__kunmap_ {local,atomic}() currently take pointers to void. However, this
is semantically incorrect, since these functions do not change the memory
their arguments point to.

Therefore, make this semantics explicit by modifying the
__kunmap_{local,atomic}() prototypes to take pointers to const void.

As a side effect, compilers may produce more efficient code.

Acked-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Helge Deller <deller@gmx.de> # parisc
Suggested-by: David Sterba <dsterba@suse.cz>
Suggested-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
arch/parisc/include/asm/cacheflush.h
arch/parisc/kernel/cache.c
include/linux/highmem-internal.h
mm/highmem.c