Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1705642
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] ata: make ata_port_operations const |
| Date | 2017-08-07 17:30 +0200 |
| Message-ID | <ubS8H-1Uh-49@gated-at.bofh.it> (permalink) |
| References | <ubNC1-714-5@gated-at.bofh.it> <ubRPl-1xo-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Aug 7, 2017 at 8:37 PM, Tejun Heo <tj@kernel.org> wrote: > Hello, > > On Mon, Aug 07, 2017 at 04:02:02PM +0530, Bhumika Goyal wrote: >> Make ata_port_operations structures const as it is only stored in the >> inherits field of an ata_port_operations structure. Therefore make it >> const. >> >> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> > > How did you test the patch? > 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. Thanks, Bhumika > Thanks. > > -- > tejun
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] ata: make ata_port_operations const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-07 12:40 +0200
Re: [PATCH] ata: make ata_port_operations const Tejun Heo <tj@kernel.org> - 2017-08-07 17:10 +0200
Re: [PATCH] ata: make ata_port_operations const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-07 17:30 +0200
Re: [PATCH] ata: make ata_port_operations const Tejun Heo <tj@kernel.org> - 2017-08-07 18:30 +0200
Re: [PATCH] ata: make ata_port_operations const Joe Perches <joe@perches.com> - 2017-08-07 18:40 +0200
Re: [PATCH] ata: make ata_port_operations const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-08 10:20 +0200
csiph-web