Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jacob Keller and committed by
David S. Miller
b0efcae5 a5c3a7c0

+6 -6
+1 -1
drivers/net/ethernet/mellanox/mlx4/crdump.c
··· 182 182 crdump_enable_crspace_access(dev, cr_space); 183 183 184 184 /* Get the available snapshot ID for the dumps */ 185 - id = devlink_region_shapshot_id_get(devlink); 185 + id = devlink_region_snapshot_id_get(devlink); 186 186 187 187 /* Try to capture dumps */ 188 188 mlx4_crdump_collect_crspace(dev, cr_space, id);
+1 -1
drivers/net/netdevsim/dev.c
··· 53 53 54 54 get_random_bytes(dummy_data, NSIM_DEV_DUMMY_REGION_SIZE); 55 55 56 - id = devlink_region_shapshot_id_get(priv_to_devlink(nsim_dev)); 56 + id = devlink_region_snapshot_id_get(priv_to_devlink(nsim_dev)); 57 57 err = devlink_region_snapshot_create(nsim_dev->dummy_region, 58 58 dummy_data, id, kfree); 59 59 if (err) {
+1 -1
include/net/devlink.h
··· 938 938 u32 region_max_snapshots, 939 939 u64 region_size); 940 940 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); 942 942 int devlink_region_snapshot_create(struct devlink_region *region, 943 943 u8 *data, u32 snapshot_id, 944 944 devlink_snapshot_data_dest_t *data_destructor);
+3 -3
net/core/devlink.c
··· 7563 7563 EXPORT_SYMBOL_GPL(devlink_region_destroy); 7564 7564 7565 7565 /** 7566 - * devlink_region_shapshot_id_get - get snapshot ID 7566 + * devlink_region_snapshot_id_get - get snapshot ID 7567 7567 * 7568 7568 * This callback should be called when adding a new snapshot, 7569 7569 * Driver should use the same id for multiple snapshots taken ··· 7571 7571 * 7572 7572 * @devlink: devlink 7573 7573 */ 7574 - u32 devlink_region_shapshot_id_get(struct devlink *devlink) 7574 + u32 devlink_region_snapshot_id_get(struct devlink *devlink) 7575 7575 { 7576 7576 u32 id; 7577 7577 ··· 7581 7581 7582 7582 return id; 7583 7583 } 7584 - EXPORT_SYMBOL_GPL(devlink_region_shapshot_id_get); 7584 + EXPORT_SYMBOL_GPL(devlink_region_snapshot_id_get); 7585 7585 7586 7586 /** 7587 7587 * devlink_region_snapshot_create - create a new snapshot