Arnd Bergmann
6ec0a86c64
ata: hpt366: fix constant cast warning
...
gcc-5.x warns about a preexisting problem in the hpt36x pata driver:
drivers/ata/pata_hpt366.c: In function 'hpt36x_init_one':
drivers/ata/pata_hpt366.c:376:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
Other ata drivers have the same problem, as ata_pci_bmdma_init_one
takes a non-const pointer, and they solve it by using a cast to
turn that pointer into a normal non-const pointer.
I also tried to change the ata core code to make host->private_data
a const pointer, but that quickly got out of hand, as some other
drivers expect it to be writable, so I ended up using the same
hack as the others here.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2015-05-21 17:37:51 -04:00
..
2015-04-08 10:55:05 -04:00
2015-01-28 18:45:23 -05:00
2015-01-28 18:45:23 -05:00
2015-01-28 18:45:23 -05:00
2015-01-28 18:45:23 -05:00
2015-04-20 13:36:38 -04:00
2015-01-28 18:45:23 -05:00
2015-01-28 18:45:23 -05:00
2015-05-18 16:43:23 -04:00
2015-04-08 10:55:05 -04:00
2015-05-10 11:52:44 -04:00
2014-05-09 22:37:49 -04:00
2014-08-28 08:53:40 -04:00
2015-04-14 13:07:17 -04:00
2015-02-03 07:12:54 -05:00
2015-05-10 11:52:44 -04:00
2014-04-01 12:48:54 -07:00
2015-05-05 09:30:18 -04:00
2015-05-05 09:30:19 -04:00
2014-01-31 07:05:44 -05:00
2015-03-27 11:59:22 -04:00
2015-04-08 10:55:05 -04:00
2015-03-27 11:59:22 -04:00
2015-05-05 09:30:18 -04:00
2010-10-21 20:21:03 -04:00
2014-03-14 11:23:47 -04:00
2015-03-27 11:59:22 -04:00
2015-04-14 13:07:17 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2014-10-20 16:20:17 +02:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2014-10-20 16:20:17 +02:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2015-02-03 07:04:44 -05:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2014-02-13 16:40:56 -05:00
2015-04-08 10:55:05 -04:00
2014-02-13 16:40:56 -05:00
2015-05-21 17:37:51 -04:00
2013-01-03 15:57:03 -08:00
2014-10-20 16:20:17 +02:00
2013-10-07 15:17:32 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2014-09-01 08:38:06 -04:00
2014-03-11 08:30:53 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2015-01-28 18:45:23 -05:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2014-02-13 16:40:56 -05:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2014-05-09 22:37:49 -04:00
2015-01-28 18:45:23 -05:00
2014-10-20 16:20:17 +02:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2015-05-02 22:04:43 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-07 17:10:14 -04:00
2015-04-08 10:55:05 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2015-03-30 13:14:40 -04:00
2015-03-02 12:08:43 -05:00
2014-10-20 16:20:17 +02:00
2015-04-08 10:55:05 -04:00
2015-04-08 10:55:05 -04:00
2015-04-08 10:55:05 -04:00
2015-04-08 10:55:05 -04:00
2008-01-23 05:24:15 -05:00
2015-04-08 10:55:05 -04:00
2015-01-19 09:04:37 -05:00
2015-04-08 10:55:05 -04:00
2015-04-08 10:55:05 -04:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2015-04-08 10:55:05 -04:00
2014-02-13 16:40:56 -05:00
2015-04-08 10:55:05 -04:00
2015-04-08 10:55:05 -04:00