commit | c7721c05a6217491810f406ec28df80a9bcf3546 | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes.berg@intel.com> | Thu Apr 30 22:13:10 2020 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 30 17:51:42 2020 -0700 |
tree | d831690b3f4248af4aff149d662e26f42b249a68 | |
parent | da4063bdfcfa70ec57a6c25f772ac6378b1584ad [diff] |
netlink: remove NLA_EXACT_LEN_WARN Use a validation type instead, so we can later expose the NLA_* values to userspace for policy descriptions. Some transformations were done with this spatch: @@ identifier p; expression X, L, A; @@ struct nla_policy p[X] = { [A] = -{ .type = NLA_EXACT_LEN_WARN, .len = L }, +NLA_POLICY_EXACT_LEN_WARN(L), ... }; Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>