Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7318164imm; Tue, 28 Aug 2018 09:54:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY2ZyiRMbiPThCZHIT/3iqZWBa5Ij7cFYcntfZytdb0RKmi9ACHK+aLR9LdBeAkcpCc3jVL X-Received: by 2002:a17:902:7145:: with SMTP id u5-v6mr2199888plm.259.1535475250592; Tue, 28 Aug 2018 09:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535475250; cv=none; d=google.com; s=arc-20160816; b=rm6pmgD4jdSeHzdAzLogHFjFeH//RudbbYVknAHE5G7Wa50ghFxjNn98od0HnpoYHq 46dM1U19VB5iMoW1EodTi1u0WlH5MFrdHS/WPa7Q7ZJ36VITdabnXQvGArnVml1zOtjL ZXSyKAiooJXe1bolppTWMq9TgVTzdK6jDzfp4REm/D6uz+9GmLRdeCNoFtgCm9gdE90Z lNdzc2Ddrod9Y0fTeOlnjdj2gE8cGDdsUmjZure1TQIUUDqjFBO+FN7ePNJhcRPSV9Fx onefTUM2S6v0ZoEQ0eQkPqO37OBPiFcDBLvhva48jEia3HHXXf4cxflukGZFyKr6vGn0 coNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:cc:to:subject:from :arc-authentication-results; bh=muTIKfosOiwXwInnjcbsu7hs525ezmAedY4w1JuyUNM=; b=vUS3JNUsEwC/YOrBsaqSwIlmEjFgIudzXO0IlFbEm+4mTTocv2CQYBP3c10ZPfZ4TU 2T70aMv7utdN6w2/pU9n1I78wtrQkktxm5iPkpUQ1p9yCaA9Bsw5y4lQ+i6up1bxdtsL RDAMQ2aDqMXikMXFK411GRyI7MWGQ2vjg95N279XE/FPAZmEwKmLNvBAQ83eHFLo1W4S /E4PMUsWvn9XwgX99u9Q40Dik8ugy3ZToC+QCWUvDB0TDi5fl4u3zxjqX1yKIKfZ2DzI gd6xRSnK+WiP2gir6tN9SlTz/miyjPcchD6q3Pd0bR0I0PUtIpUSVjn8u1oZYO9AL42M 0JZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t89-v6si1347148pfe.59.2018.08.28.09.53.55; Tue, 28 Aug 2018 09:54:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727309AbeH1Uob (ORCPT + 99 others); Tue, 28 Aug 2018 16:44:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:42190 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726128AbeH1Uob (ORCPT ); Tue, 28 Aug 2018 16:44:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 477BEAF49; Tue, 28 Aug 2018 16:51:59 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id B13DCA0C37; Tue, 28 Aug 2018 18:51:58 +0200 (CEST) From: Michal Kubecek Subject: [PATCH net-next] genetlink: constify genl_err_attr() argument To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <20180828165158.B13DCA0C37@unicorn.suse.cz> Date: Tue, 28 Aug 2018 18:51:58 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- include/net/genetlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.18.0