devlink: Delete not-used devlink APIs
Devlink core exported generously the functions calls that were used by netdevsim tests or not used at all. Delete such APIs with one exception - devlink_alloc_ns(). That function should be spared from deleting because it is a special form of devlink_alloc() needed for the netdevsim. Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Acked-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b20b54fb00
commit
6db9350a9d
@@ -1663,18 +1663,7 @@ int devlink_param_driverinit_value_get(struct devlink *devlink, u32 param_id,
|
||||
union devlink_param_value *init_val);
|
||||
int devlink_param_driverinit_value_set(struct devlink *devlink, u32 param_id,
|
||||
union devlink_param_value init_val);
|
||||
int
|
||||
devlink_port_param_driverinit_value_get(struct devlink_port *devlink_port,
|
||||
u32 param_id,
|
||||
union devlink_param_value *init_val);
|
||||
int devlink_port_param_driverinit_value_set(struct devlink_port *devlink_port,
|
||||
u32 param_id,
|
||||
union devlink_param_value init_val);
|
||||
void devlink_param_value_changed(struct devlink *devlink, u32 param_id);
|
||||
void devlink_port_param_value_changed(struct devlink_port *devlink_port,
|
||||
u32 param_id);
|
||||
void devlink_param_value_str_fill(union devlink_param_value *dst_val,
|
||||
const char *src);
|
||||
struct devlink_region *
|
||||
devlink_region_create(struct devlink *devlink,
|
||||
const struct devlink_region_ops *ops,
|
||||
@@ -1719,10 +1708,7 @@ int devlink_fmsg_binary_pair_nest_start(struct devlink_fmsg *fmsg,
|
||||
const char *name);
|
||||
int devlink_fmsg_binary_pair_nest_end(struct devlink_fmsg *fmsg);
|
||||
|
||||
int devlink_fmsg_bool_put(struct devlink_fmsg *fmsg, bool value);
|
||||
int devlink_fmsg_u8_put(struct devlink_fmsg *fmsg, u8 value);
|
||||
int devlink_fmsg_u32_put(struct devlink_fmsg *fmsg, u32 value);
|
||||
int devlink_fmsg_u64_put(struct devlink_fmsg *fmsg, u64 value);
|
||||
int devlink_fmsg_string_put(struct devlink_fmsg *fmsg, const char *value);
|
||||
int devlink_fmsg_binary_put(struct devlink_fmsg *fmsg, const void *value,
|
||||
u16 value_len);
|
||||
|
||||
Reference in New Issue
Block a user