diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-10-02 14:49:54 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-10-02 19:11:11 -0700 |
commit | 66a9b9287d2447a91cef2fafc648dee32186f708 (patch) | |
tree | 28a1752bbc4ff0644076df23441402bddf2366bf /kernel/taskstats.c | |
parent | 0b588afdd16f9e0b63128dc4bcd002e7f2725fe0 (diff) | |
download | linux-66a9b9287d2447a91cef2fafc648dee32186f708.tar.gz linux-66a9b9287d2447a91cef2fafc648dee32186f708.tar.bz2 linux-66a9b9287d2447a91cef2fafc648dee32186f708.zip |
genetlink: move to smaller ops wherever possible
Bulk of the genetlink users can use smaller ops, move them.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/taskstats.c')
-rw-r--r-- | kernel/taskstats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/taskstats.c b/kernel/taskstats.c index e2ac0e37c4ae..ef4de29fbe8a 100644 --- a/kernel/taskstats.c +++ b/kernel/taskstats.c @@ -644,7 +644,7 @@ err: nlmsg_free(rep_skb); } -static const struct genl_ops taskstats_ops[] = { +static const struct genl_small_ops taskstats_ops[] = { { .cmd = TASKSTATS_CMD_GET, .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP, @@ -687,8 +687,8 @@ static struct genl_family family __ro_after_init = { .version = TASKSTATS_GENL_VERSION, .maxattr = TASKSTATS_CMD_ATTR_MAX, .module = THIS_MODULE, - .ops = taskstats_ops, - .n_ops = ARRAY_SIZE(taskstats_ops), + .small_ops = taskstats_ops, + .n_small_ops = ARRAY_SIZE(taskstats_ops), .pre_doit = taskstats_pre_doit, }; |