From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934200AbdBVUkG (ORCPT ); Wed, 22 Feb 2017 15:40:06 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:42988 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933528AbdBVUj5 (ORCPT ); Wed, 22 Feb 2017 15:39:57 -0500 Date: Wed, 22 Feb 2017 15:39:55 -0500 (EST) Message-Id: <20170222.153955.343248329052736951.davem@davemloft.net> To: bhumirks@gmail.com Cc: julia.lawall@lip6.fr, harish.patil@cavium.com, manish.chopra@cavium.com, Dept-GELinuxNICDev@cavium.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] qlogic: qlcnic_sysfs: constify bin_attribute structures From: David Miller In-Reply-To: <1487702477-14025-1-git-send-email-bhumirks@gmail.com> References: <1487702477-14025-1-git-send-email-bhumirks@gmail.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 22 Feb 2017 11:41:02 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bhumika Goyal Date: Wed, 22 Feb 2017 00:11:17 +0530 > Declare bin_attribute structures as const as they are only passed as an > arguments to the functions device_remove_bin_file and > device_create_bin_file. These function arguments are of type const, so > bin_attribute structures having this property can be made const too. > Done using Coccinelle: ... > Signed-off-by: Bhumika Goyal Applied.