Re: [PATCH] ata: make ata_port_operations const

From: Tejun Heo
Date: Mon Aug 07 2017 - 12:29:33 EST


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.

Thanks.

--
tejun