Message ID | 20210809061244.1196573-5-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [01/30] iomap: fix a trivial comment typo in trace.h | expand |
On Mon, Aug 09, 2021 at 08:12:18AM +0200, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig <hch@lst.de> Looks ok, Reviewed-by: Darrick J. Wong <djwong@kernel.org> --D > --- > include/linux/iomap.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/iomap.h b/include/linux/iomap.h > index 8030483331d17f..560247130357b5 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; > } > -- > 2.30.2 >
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 8030483331d17f..560247130357b5 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; }
Signed-off-by: Christoph Hellwig <hch@lst.de> --- include/linux/iomap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)