From: Christoph Hellwig Date: Wed, 11 Aug 2021 01:33:04 +0000 (-0700) Subject: iomap: mark the iomap argument to iomap_inline_data const X-Git-Tag: accepted/tizen/unified/20230118.172025~6546^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4495c33e4d302b8d3a9eb483c06b2687d27dab9d;p=platform%2Fkernel%2Flinux-rpi.git iomap: mark the iomap argument to iomap_inline_data const Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 8030483..5602471 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -99,7 +99,7 @@ static inline sector_t iomap_sector(const struct iomap *iomap, loff_t pos) /* * Returns the inline data pointer for logical offset @pos. */ -static inline void *iomap_inline_data(struct iomap *iomap, loff_t pos) +static inline void *iomap_inline_data(const struct iomap *iomap, loff_t pos) { return iomap->inline_data + pos - iomap->offset; }