From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH 2/7] netlink: make validation_data const Date: Wed, 19 Sep 2018 09:21:07 -0700 Message-ID: <3efeae51-8963-cb73-2fdd-457d2313b4c7@gmail.com> References: <20180919120900.28708-1-johannes@sipsolutions.net> <20180919120900.28708-3-johannes@sipsolutions.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Johannes Berg To: Johannes Berg , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Return-path: Received: from mail-pg1-f195.google.com ([209.85.215.195]:33780 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731391AbeISV7s (ORCPT ); Wed, 19 Sep 2018 17:59:48 -0400 In-Reply-To: <20180919120900.28708-3-johannes@sipsolutions.net> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 9/19/18 5:08 AM, Johannes Berg wrote: > From: Johannes Berg > > The validation data is only used within the policy that > should usually already be const, and isn't changed in any > code that uses it. Therefore, make the validation_data > pointer const. > > While at it, remove the duplicate variable in the bitfield > validation that I'd otherwise have to change to const. > > Signed-off-by: Johannes Berg > --- > include/net/netlink.h | 2 +- > lib/nlattr.c | 5 ++--- > 2 files changed, 3 insertions(+), 4 deletions(-) > Reviewed-by: David Ahern