summaryrefslogtreecommitdiffstats
path: root/include/net/genetlink.h
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2018-08-28 18:51:58 +0200
committerDavid S. Miller <davem@davemloft.net>2018-08-29 19:42:52 -0700
commit6fce10f70461c14079d5d44aa2b25c693f4d9221 (patch)
treef6063df4d0b9f5311a8ec07fe01d4101924cbf7b /include/net/genetlink.h
parent21c328dcecfc419544c37bbd2decc1e73b6b367b (diff)
downloadlinux-6fce10f70461c14079d5d44aa2b25c693f4d9221.tar.gz
linux-6fce10f70461c14079d5d44aa2b25c693f4d9221.tar.bz2
linux-6fce10f70461c14079d5d44aa2b25c693f4d9221.zip
genetlink: constify genl_err_attr() argument
genl_err_attr() sets netlink_ext_ack::bad_attr which is a pointer to const struct nlattr so make the attr argument also const. Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/genetlink.h')
-rw-r--r--include/net/genetlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/genetlink.h b/include/net/genetlink.h
index decf6012a401..aa2e5888f18d 100644
--- a/include/net/genetlink.h
+++ b/include/net/genetlink.h
@@ -112,7 +112,7 @@ static inline void genl_info_net_set(struct genl_info *info, struct net *net)
#define GENL_SET_ERR_MSG(info, msg) NL_SET_ERR_MSG((info)->extack, msg)
static inline int genl_err_attr(struct genl_info *info, int err,
- struct nlattr *attr)
+ const struct nlattr *attr)
{
info->extack->bad_attr = attr;