mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mm: zsmalloc: constify struct zs_pool name
Constify `struct zs_pool' ->name. [[email protected]: constify zpool_create_pool()'s `type' arg also] Signed-off-by: Sergey Senozhatsky <[email protected]> Acked-by: Dan Streetman <[email protected]> Cc: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
69e18f4dbe
commit
6f3526d6db
5 changed files with 13 additions and 11 deletions
|
|
@ -72,7 +72,7 @@ int zpool_unregister_driver(struct zpool_driver *driver)
|
|||
EXPORT_SYMBOL(zpool_unregister_driver);
|
||||
|
||||
/* this assumes @type is null-terminated. */
|
||||
static struct zpool_driver *zpool_get_driver(char *type)
|
||||
static struct zpool_driver *zpool_get_driver(const char *type)
|
||||
{
|
||||
struct zpool_driver *driver;
|
||||
|
||||
|
|
@ -150,7 +150,7 @@ EXPORT_SYMBOL(zpool_has_pool);
|
|||
*
|
||||
* Returns: New zpool on success, NULL on failure.
|
||||
*/
|
||||
struct zpool *zpool_create_pool(char *type, char *name, gfp_t gfp,
|
||||
struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp,
|
||||
const struct zpool_ops *ops)
|
||||
{
|
||||
struct zpool_driver *driver;
|
||||
|
|
|
|||
Loading…
Reference in a new issue