Dave Gordon 386ecb1216 drivers/scsi/scsi_debug.c: resolve sg buffer const-ness issue
do_device_access() takes a separate parameter to indicate the direction of
data transfer, which it used to use to select the appropriate function out
of sg_pcopy_{to,from}_buffer().  However these two functions now have

So this patch makes it bypass these wrappers and call the underlying
function sg_copy_buffer() directly; this has the same calling style as
do_device_access() i.e.  a separate direction-of-transfer parameter and no
pointers-to-const, so skipping the wrappers not only eliminates the
warning, it also make the code simpler :)

[akpm@linux-foundation.org: fix very broken build]
Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-06-30 19:44:59 -07:00
..
2015-06-26 11:08:27 -07:00
2015-06-26 11:54:29 -07:00
2015-06-29 09:44:45 -07:00
2015-06-26 15:07:37 -07:00
2015-06-26 14:51:15 -07:00
2015-06-26 11:54:29 -07:00
2015-06-29 11:10:56 -07:00
2015-06-26 15:46:08 -07:00
2015-06-26 11:54:29 -07:00
2015-06-13 08:44:14 -07:00
2015-06-25 18:55:33 -07:00
2015-06-26 14:51:15 -07:00
2015-06-26 14:51:15 -07:00
2015-06-25 17:00:38 -07:00
2015-06-26 11:54:29 -07:00
2015-06-19 01:18:43 +02:00
2015-06-23 13:32:38 -07:00
2015-06-25 17:15:18 -07:00
2015-06-26 11:54:29 -07:00
2015-06-28 12:32:13 -07:00
2015-06-24 17:49:45 -07:00