diff options
| author | David S. Miller <[email protected]> | 2012-10-28 20:26:37 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2012-10-28 20:26:37 +0000 |
| commit | f7e8d9f830b118cfe757140d910834afd1710001 (patch) | |
| tree | c79b3f072d7811a12a543ffb291f5fb52c274521 /fs/proc/array.c | |
| parent | sparc: Wire up sys_kcmp. (diff) | |
| download | kernel-f7e8d9f830b118cfe757140d910834afd1710001.tar.gz kernel-f7e8d9f830b118cfe757140d910834afd1710001.zip | |
qlogicpti: Fix build warning.
The build warns:
drivers/scsi/qlogicpti.c: In function 'qpti_sbus_probe':
drivers/scsi/qlogicpti.c:1316:45: warning: passing argument 1 of 'scsi_host_alloc' discards 'const' qualifier from pointer target type [enabled by default]
include/scsi/scsi_host.h:778:26: note: expected 'struct scsi_host_template *' but argument is of type 'const struct scsi_host_template *'
The problem is that of_device_id->data is a const void pointer.
This is pretty silly in this specific instance, because for all
matched device IDs we set match->data to the same value,
&qpti_template.
So just use that directly instead of the unnecessary and improperly
typed abstraction.
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
