Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1719100 > unrolled thread
| Started by | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| First post | 2017-08-24 12:00 +0200 |
| Last post | 2017-08-24 19:30 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH 0/3] constify ata_port_info Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-24 12:00 +0200
Re: [PATCH 0/3] constify ata_port_info Tejun Heo <tj@kernel.org> - 2017-08-24 16:30 +0200
Re: [PATCH 0/3] constify ata_port_info Tejun Heo <tj@kernel.org> - 2017-08-24 19:30 +0200
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| Date | 2017-08-24 12:00 +0200 |
| Subject | [PATCH 0/3] constify ata_port_info |
| Message-ID | <uhX5D-4KB-5@gated-at.bofh.it> |
ata_port_info are not supposed to change at runtime. All functions working with ata_port_info provided by <linux/libata.h> work with const ata_port_info. So mark the non-const structs as const. Arvind Yadav (3): [PATCH 1/3] ata: ftide010: constify ata_port_info [PATCH 2/3] ata: pdc2027x: constify ata_port_info [PATCH 3/3] ata: constify ata_port_info drivers/ata/pata_ftide010.c | 2 +- drivers/ata/pata_pdc2027x.c | 2 +- drivers/ata/pdc_adma.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 1.9.1
[toc] | [next] | [standalone]
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Date | 2017-08-24 16:30 +0200 |
| Message-ID | <ui1iW-7Ir-7@gated-at.bofh.it> |
| In reply to | #1719100 |
On Thu, Aug 24, 2017 at 03:19:58PM +0530, Arvind Yadav wrote: > ata_port_info are not supposed to change at runtime. All functions > working with ata_port_info provided by <linux/libata.h> work with > const ata_port_info. So mark the non-const structs as const. Applied 1-3 to libata/for-4.14. Thanks. -- tejun
[toc] | [prev] | [next] | [standalone]
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Date | 2017-08-24 19:30 +0200 |
| Message-ID | <ui478-14g-9@gated-at.bofh.it> |
| In reply to | #1719286 |
On Thu, Aug 24, 2017 at 07:23:46AM -0700, Tejun Heo wrote: > On Thu, Aug 24, 2017 at 03:19:58PM +0530, Arvind Yadav wrote: > > ata_port_info are not supposed to change at runtime. All functions > > working with ata_port_info provided by <linux/libata.h> work with > > const ata_port_info. So mark the non-const structs as const. > > Applied 1-3 to libata/for-4.14. Caused build warnings. Reverted. Please test before submitting patches. Thanks. -- tejun
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web