From: Michal Kubecek Date: Tue, 28 Aug 2018 16:51:58 +0000 (+0200) Subject: genetlink: constify genl_err_attr() argument X-Git-Tag: for-linus-20181026~43^2~509 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6fce10f70461c14079d5d44aa2b25c693f4d9221;p=linux-block.git 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 Signed-off-by: David S. Miller --- 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;