mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Dan Streetman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5b999aadba
commit
786727799a
5 changed files with 9 additions and 8 deletions
|
|
@ -22,7 +22,7 @@ struct zpool {
|
|||
|
||||
struct zpool_driver *driver;
|
||||
void *pool;
|
||||
struct zpool_ops *ops;
|
||||
const struct zpool_ops *ops;
|
||||
|
||||
struct list_head list;
|
||||
};
|
||||
|
|
@ -115,7 +115,7 @@ static void zpool_put_driver(struct zpool_driver *driver)
|
|||
* Returns: New zpool on success, NULL on failure.
|
||||
*/
|
||||
struct zpool *zpool_create_pool(char *type, char *name, gfp_t gfp,
|
||||
struct zpool_ops *ops)
|
||||
const struct zpool_ops *ops)
|
||||
{
|
||||
struct zpool_driver *driver;
|
||||
struct zpool *zpool;
|
||||
|
|
|
|||
Loading…
Reference in a new issue