projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66b8165
)
iomap: mark the iomap argument to iomap_inline_data const
author
Christoph Hellwig
<hch@lst.de>
Wed, 11 Aug 2021 01:33:04 +0000
(18:33 -0700)
committer
Darrick J. Wong
<djwong@kernel.org>
Tue, 17 Aug 2021 04:26:33 +0000
(21:26 -0700)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
include/linux/iomap.h
patch
|
blob
|
history
diff --git
a/include/linux/iomap.h
b/include/linux/iomap.h
index
8030483
..
5602471
100644
(file)
--- 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;
}