From: Leon Romanovsky Date: Sun, 28 Nov 2021 12:14:46 +0000 (+0200) Subject: devlink: Remove misleading internal_flags from health reporter dump X-Git-Tag: v6.1-rc5~2306^2~312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9538f8270db24d272659e15841854c7ea11119e;p=platform%2Fkernel%2Flinux-starfive.git devlink: Remove misleading internal_flags from health reporter dump DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET command doesn't have .doit callback and has no use in internal_flags at all. Remove this misleading assignment. Fixes: e44ef4e4516c ("devlink: Hang reporter's dump method on a dumpit cb") Signed-off-by: Leon Romanovsky Signed-off-by: David S. Miller --- diff --git a/net/core/devlink.c b/net/core/devlink.c index d144a62..fd21022 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -8845,8 +8845,6 @@ static const struct genl_small_ops devlink_nl_ops[] = { GENL_DONT_VALIDATE_DUMP_STRICT, .dumpit = devlink_nl_cmd_health_reporter_dump_get_dumpit, .flags = GENL_ADMIN_PERM, - .internal_flags = DEVLINK_NL_FLAG_NEED_DEVLINK_OR_PORT | - DEVLINK_NL_FLAG_NO_LOCK, }, { .cmd = DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR,