From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751899AbdHGQeT (ORCPT ); Mon, 7 Aug 2017 12:34:19 -0400 Received: from smtprelay0050.hostedemail.com ([216.40.44.50]:47903 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751426AbdHGQeP (ORCPT ); Mon, 7 Aug 2017 12:34:15 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:2918:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3871:3872:3874:4321:5007:6119:7974:8603:10004:10400:10848:11232:11658:11914:12296:12663:12740:12760:12895:13069:13311:13357:13439:14180:14659:14721:21080:21325:21433:21434:21627:30054:30090: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: shame46_5f2507c03e31e X-Filterd-Recvd-Size: 1719 Message-ID: <1502123652.2219.24.camel@perches.com> Subject: Re: [PATCH] ata: make ata_port_operations const From: Joe Perches To: Tejun Heo , Bhumika Goyal Cc: Julia Lawall , b.zolnierkie@samsung.com, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 07 Aug 2017 09:34:12 -0700 In-Reply-To: <20170807162920.GA537256@devbig577.frc2.facebook.com> References: <1502101922-13313-1-git-send-email-bhumirks@gmail.com> <20170807150727.GD4050379@devbig577.frc2.facebook.com> <20170807162920.GA537256@devbig577.frc2.facebook.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 On Mon, 2017-08-07 at 09:29 -0700, Tejun Heo wrote: > Hello, > > On Mon, Aug 07, 2017 at 08:54:21PM +0530, Bhumika Goyal wrote: > > I compiled the .o files and checked the size before and after > > compilation. After making the structure const, bytes should move from > > data to text segment of the memory and this is what happened. So, this > > is how I tested it. > > Ah, I see, so the port_operations is never used directly. I'm not > sure whether it'd be a good idea to selectively pick these and makr > them const. Let's just leave them be. Why? Things that are never accessed as other than const should be const no? Why leave unnecessary exposure for muckery?