netlink: fix spelling mistake in dump size assert
Commit 2c7bc10d0f
("netlink: add macro for checking dump ctx size")
misspelled the name of the assert as asset, missing an R.
Reported-by: Ido Schimmel <idosch@idosch.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/20230123222224.732338-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Родитель
c554520f2c
Коммит
ec8f7d495b
|
@ -263,7 +263,7 @@ struct netlink_callback {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#define NL_ASSET_DUMP_CTX_FITS(type_name) \
|
#define NL_ASSERT_DUMP_CTX_FITS(type_name) \
|
||||||
BUILD_BUG_ON(sizeof(type_name) > \
|
BUILD_BUG_ON(sizeof(type_name) > \
|
||||||
sizeof_field(struct netlink_callback, ctx))
|
sizeof_field(struct netlink_callback, ctx))
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@ int devlink_nl_instance_iter_dump(struct sk_buff *msg,
|
||||||
static inline struct devlink_nl_dump_state *
|
static inline struct devlink_nl_dump_state *
|
||||||
devlink_dump_state(struct netlink_callback *cb)
|
devlink_dump_state(struct netlink_callback *cb)
|
||||||
{
|
{
|
||||||
NL_ASSET_DUMP_CTX_FITS(struct devlink_nl_dump_state);
|
NL_ASSERT_DUMP_CTX_FITS(struct devlink_nl_dump_state);
|
||||||
|
|
||||||
return (struct devlink_nl_dump_state *)cb->ctx;
|
return (struct devlink_nl_dump_state *)cb->ctx;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3866,7 +3866,7 @@ static int __init ctnetlink_init(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
NL_ASSET_DUMP_CTX_FITS(struct ctnetlink_list_dump_ctx);
|
NL_ASSERT_DUMP_CTX_FITS(struct ctnetlink_list_dump_ctx);
|
||||||
|
|
||||||
ret = nfnetlink_subsys_register(&ctnl_subsys);
|
ret = nfnetlink_subsys_register(&ctnl_subsys);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче