Skip to content

Commit b0efcae

Browse files
jacob-kellerdavem330
authored andcommitted
devlink: correct misspelling of snapshot
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>
1 parent a5c3a7c commit b0efcae

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎drivers/net/ethernet/mellanox/mlx4/crdump.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ int mlx4_crdump_collect(struct mlx4_dev *dev)
182182
crdump_enable_crspace_access(dev, cr_space);
183183

184184
/* Get the available snapshot ID for the dumps */
185-
id = devlink_region_shapshot_id_get(devlink);
185+
id = devlink_region_snapshot_id_get(devlink);
186186

187187
/* Try to capture dumps */
188188
mlx4_crdump_collect_crspace(dev, cr_space, id);

‎drivers/net/netdevsim/dev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static ssize_t nsim_dev_take_snapshot_write(struct file *file,
5353

5454
get_random_bytes(dummy_data, NSIM_DEV_DUMMY_REGION_SIZE);
5555

56-
id = devlink_region_shapshot_id_get(priv_to_devlink(nsim_dev));
56+
id = devlink_region_snapshot_id_get(priv_to_devlink(nsim_dev));
5757
err = devlink_region_snapshot_create(nsim_dev->dummy_region,
5858
dummy_data, id, kfree);
5959
if (err) {

‎include/net/devlink.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ struct devlink_region *devlink_region_create(struct devlink *devlink,
938938
u32 region_max_snapshots,
939939
u64 region_size);
940940
void devlink_region_destroy(struct devlink_region *region);
941-
u32 devlink_region_shapshot_id_get(struct devlink *devlink);
941+
u32 devlink_region_snapshot_id_get(struct devlink *devlink);
942942
int devlink_region_snapshot_create(struct devlink_region *region,
943943
u8 *data, u32 snapshot_id,
944944
devlink_snapshot_data_dest_t *data_destructor);

‎net/core/devlink.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7563,15 +7563,15 @@ void devlink_region_destroy(struct devlink_region *region)
75637563
EXPORT_SYMBOL_GPL(devlink_region_destroy);
75647564

75657565
/**
7566-
* devlink_region_shapshot_id_get - get snapshot ID
7566+
* devlink_region_snapshot_id_get - get snapshot ID
75677567
*
75687568
* This callback should be called when adding a new snapshot,
75697569
* Driver should use the same id for multiple snapshots taken
75707570
* on multiple regions at the same time/by the same trigger.
75717571
*
75727572
* @devlink: devlink
75737573
*/
7574-
u32 devlink_region_shapshot_id_get(struct devlink *devlink)
7574+
u32 devlink_region_snapshot_id_get(struct devlink *devlink)
75757575
{
75767576
u32 id;
75777577

@@ -7581,7 +7581,7 @@ u32 devlink_region_shapshot_id_get(struct devlink *devlink)
75817581

75827582
return id;
75837583
}
7584-
EXPORT_SYMBOL_GPL(devlink_region_shapshot_id_get);
7584+
EXPORT_SYMBOL_GPL(devlink_region_snapshot_id_get);
75857585

75867586
/**
75877587
* devlink_region_snapshot_create - create a new snapshot

0 commit comments

Comments
 (0)