diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-09-08 15:05:03 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-08 15:35:28 -0700 |
commit | 786727799a85aeabc20cab5ecfb72771bcbd6b85 (patch) | |
tree | 706c7ffbadf27ddfe5a633bd3032c35428a1e8ec /include | |
parent | 5b999aadbae65696a148f55250d94b6f3d74071e (diff) | |
download | linux-786727799a85aeabc20cab5ecfb72771bcbd6b85.tar.gz linux-786727799a85aeabc20cab5ecfb72771bcbd6b85.tar.bz2 linux-786727799a85aeabc20cab5ecfb72771bcbd6b85.zip |
mm: zpool: constify the zpool_ops
The structure zpool_ops is not modified so make the pointer to it a
pointer to const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/zpool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/zpool.h b/include/linux/zpool.h index d30eff3d84d5..c924a28d9805 100644 --- a/include/linux/zpool.h +++ b/include/linux/zpool.h @@ -37,7 +37,7 @@ enum zpool_mapmode { }; struct zpool *zpool_create_pool(char *type, char *name, - gfp_t gfp, struct zpool_ops *ops); + gfp_t gfp, const struct zpool_ops *ops); char *zpool_get_type(struct zpool *pool); @@ -81,7 +81,7 @@ struct zpool_driver { atomic_t refcount; struct list_head list; - void *(*create)(char *name, gfp_t gfp, struct zpool_ops *ops, + void *(*create)(char *name, gfp_t gfp, const struct zpool_ops *ops, struct zpool *zpool); void (*destroy)(void *pool); |