devlink: correct misspelling of snapshot
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 9 Jan 2020 19:08:20 +0000 (11:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jan 2020 22:30:24 +0000 (14:30 -0800)
The function to obtain a unique snapshot id was mistakenly typo'd as
devlink_region_shapshot_id_get. Fix this typo by renaming the function
and all of its users.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/crdump.c
drivers/net/netdevsim/dev.c
include/net/devlink.h
net/core/devlink.c

index eaf08f7..64ed725 100644 (file)
@@ -182,7 +182,7 @@ int mlx4_crdump_collect(struct mlx4_dev *dev)
        crdump_enable_crspace_access(dev, cr_space);
 
        /* Get the available snapshot ID for the dumps */
-       id = devlink_region_shapshot_id_get(devlink);
+       id = devlink_region_snapshot_id_get(devlink);
 
        /* Try to capture dumps */
        mlx4_crdump_collect_crspace(dev, cr_space, id);
index 059711e..4b39aba 100644 (file)
@@ -53,7 +53,7 @@ static ssize_t nsim_dev_take_snapshot_write(struct file *file,
 
        get_random_bytes(dummy_data, NSIM_DEV_DUMMY_REGION_SIZE);
 
-       id = devlink_region_shapshot_id_get(priv_to_devlink(nsim_dev));
+       id = devlink_region_snapshot_id_get(priv_to_devlink(nsim_dev));
        err = devlink_region_snapshot_create(nsim_dev->dummy_region,
                                             dummy_data, id, kfree);
        if (err) {
index 47f87b2..38b4acb 100644 (file)
@@ -938,7 +938,7 @@ struct devlink_region *devlink_region_create(struct devlink *devlink,
                                             u32 region_max_snapshots,
                                             u64 region_size);
 void devlink_region_destroy(struct devlink_region *region);
-u32 devlink_region_shapshot_id_get(struct devlink *devlink);
+u32 devlink_region_snapshot_id_get(struct devlink *devlink);
 int devlink_region_snapshot_create(struct devlink_region *region,
                                   u8 *data, u32 snapshot_id,
                                   devlink_snapshot_data_dest_t *data_destructor);
index b8d698a..f76219b 100644 (file)
@@ -7563,7 +7563,7 @@ void devlink_region_destroy(struct devlink_region *region)
 EXPORT_SYMBOL_GPL(devlink_region_destroy);
 
 /**
- *     devlink_region_shapshot_id_get - get snapshot ID
+ *     devlink_region_snapshot_id_get - get snapshot ID
  *
  *     This callback should be called when adding a new snapshot,
  *     Driver should use the same id for multiple snapshots taken
@@ -7571,7 +7571,7 @@ EXPORT_SYMBOL_GPL(devlink_region_destroy);
  *
  *     @devlink: devlink
  */
-u32 devlink_region_shapshot_id_get(struct devlink *devlink)
+u32 devlink_region_snapshot_id_get(struct devlink *devlink)
 {
        u32 id;
 
@@ -7581,7 +7581,7 @@ u32 devlink_region_shapshot_id_get(struct devlink *devlink)
 
        return id;
 }
-EXPORT_SYMBOL_GPL(devlink_region_shapshot_id_get);
+EXPORT_SYMBOL_GPL(devlink_region_snapshot_id_get);
 
 /**
  *     devlink_region_snapshot_create - create a new snapshot