Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754618AbdGJRAS (ORCPT ); Mon, 10 Jul 2017 13:00:18 -0400 Received: from smtprelay0172.hostedemail.com ([216.40.44.172]:43272 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754009AbdGJRAR (ORCPT ); Mon, 10 Jul 2017 13:00:17 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:960:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3872:3873:3874:4321:5007:7903:10004:10400:10848:11658:11914:12296:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21627:30054:30070:30083:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: soda12_1eeb37ea4553 X-Filterd-Recvd-Size: 1520 Message-ID: <1499706011.5468.15.camel@perches.com> Subject: Re: [PATCH] net: chelsio: cxgb3: constify attribute_group structures. From: Joe Perches To: Arvind Yadav , santosh@chelsio.com, davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 10 Jul 2017 10:00:11 -0700 In-Reply-To: <0e68326e48e123c70191169a0c0da820237425ec.1499682619.git.arvind.yadav.cs@gmail.com> References: <0e68326e48e123c70191169a0c0da820237425ec.1499682619.git.arvind.yadav.cs@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 624 Lines: 14 On Mon, 2017-07-10 at 16:04 +0530, Arvind Yadav wrote: > attribute_groups are not supposed to change at runtime. All functions > working with attribute_groups provided by work > with const attribute_group. So mark the non-const structs as const. I think it's good you are doing all of these. Instead of individually sending these patches, could you please send a patch series for all of these attribute_group patches with a cover letter at the same time? That could make it easier for a trivial maintainer to apply all of these at once and not get some applied and others ignored or dropped on the floor.