diff options
author | 2020-09-28 17:58:41 -0700 | |
---|---|---|
committer | 2020-09-28 18:52:50 -0700 | |
commit | 78b70155dc73280be2c7084a3be591161cdc6d0c (patch) | |
tree | da5530e176fdd3836145fe29631edb1a9a5fc6c4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | genetlink: add missing kdoc for validation flags (diff) | |
download | wireguard-linux-78b70155dc73280be2c7084a3be591161cdc6d0c.tar.xz wireguard-linux-78b70155dc73280be2c7084a3be591161cdc6d0c.zip |
ethtool: mark netlink family as __ro_after_init
Like all genl families ethtool_genl_family needs to not
be a straight up constant, because it's modified/initialized
by genl_register_family(). After init, however, it's only
passed to genlmsg_put() & co. therefore we can mark it
as __ro_after_init.
Since genl_family structure contains function pointers
mark this as a fix.
Fixes: 2b4a8990b7df ("ethtool: introduce ethtool netlink interface")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions