]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - lib/nlattr.c
netlink: remove NLA_EXACT_LEN_WARN
authorJohannes Berg <johannes.berg@intel.com>
Thu, 30 Apr 2020 20:13:10 +0000 (22:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 00:51:42 +0000 (17:51 -0700)
commitc7721c05a6217491810f406ec28df80a9bcf3546
treed831690b3f4248af4aff149d662e26f42b249a68
parentda4063bdfcfa70ec57a6c25f772ac6378b1584ad
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>
include/net/netlink.h
lib/nlattr.c
net/wireless/nl80211.c