Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1586463

Re: [PATCH] qlogic: netxen: constify bin_attribute structures

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] qlogic: netxen: constify bin_attribute structures
Date 2017-02-22 21:50 +0100
Message-ID <tdM1k-7iJ-15@gated-at.bofh.it> (permalink)
References <tdnFE-6qe-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Bhumika Goyal <bhumirks@gmail.com>
Date: Wed, 22 Feb 2017 00:17:48 +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 <bhumirks@gmail.com>

Also applied, thanks.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] qlogic: netxen: constify bin_attribute structures Bhumika Goyal <bhumirks@gmail.com> - 2017-02-21 19:50 +0100
  Re: [PATCH] qlogic: netxen: constify bin_attribute structures David Miller <davem@davemloft.net> - 2017-02-22 21:50 +0100

csiph-web