summaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick/gf2k.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-05-19 16:34:05 +0200
committerTejun Heo <tj@kernel.org>2015-05-21 23:37:51 +0200
commit6ec0a86c645be3fce7ade42f165a6a417c3503b1 (patch)
tree54d0cc6c85073fa617ca02edd2335f440e1e6866 /drivers/input/joystick/gf2k.c
parentata: ahci_xgene: potential NULL dereference in probe (diff)
downloadlinux-6ec0a86c645be3fce7ade42f165a6a417c3503b1.tar.xz
linux-6ec0a86c645be3fce7ade42f165a6a417c3503b1.zip
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>
Diffstat (limited to 'drivers/input/joystick/gf2k.c')
0 files changed, 0 insertions, 0 deletions