kernel_optimize_test/drivers/ide
Daniel Walker dcd9637961 [PATCH] idetape gcc 4.1 warning fix
In both the read and write cases it will return an error if
copy_{from/to}_user faults.  However, I let the driver try to read/write as
much as it can just as it normally would , then finally it returns an error
if there was one.  This was the most straight forward way to handle the
error , since there isn't a clear way to clean up the buffers on error .

I moved retval in idetape_chrdev_write() down into the actual code blocks
since it's really once used there, and it conflicted with my ret variable.

Fixes the following warning,

drivers/ide/ide-tape.c: In function ‘idetape_copy_stage_from_user’:
drivers/ide/ide-tape.c:2662: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result
drivers/ide/ide-tape.c: In function ‘idetape_copy_stage_to_user’:
drivers/ide/ide-tape.c:2689: warning: ignoring return value of ‘copy_to_user’, declared with attribute warn_unused_result

Signed-off-by: Daniel Walker <dwalker@mvista.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-25 10:01:05 -07:00
..
arm
cris
h8300
legacy [PATCH] m68k: completely initialize hw_regs_t in ide_setup_ports 2006-06-23 07:43:00 -07:00
mips [PATCH] handle errors returned by platform_get_irq*() 2006-03-20 13:42:57 -08:00
pci Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev 2006-06-23 15:58:44 -07:00
ppc [PATCH] powerpc: Fix ide-pmac sysfs entry 2006-05-21 12:59:16 -07:00
ide-cd.c [PATCH] More BUG_ON conversion 2006-06-23 07:43:08 -07:00
ide-cd.h
ide-disk.c [PATCH] LED: Add IDE disk activity LED trigger 2006-03-31 12:18:57 -08:00
ide-dma.c [PATCH] More BUG_ON conversion 2006-06-23 07:43:08 -07:00
ide-floppy.c [PATCH] More BUG_ON conversion 2006-06-23 07:43:08 -07:00
ide-generic.c
ide-io.c [PATCH] Get rid of struct request request_pm_state member 2006-06-23 17:10:39 +02:00
ide-iops.c [PATCH] More BUG_ON conversion 2006-06-23 07:43:08 -07:00
ide-lib.c [PATCH] More BUG_ON conversion 2006-06-23 07:43:08 -07:00
ide-pnp.c
ide-probe.c [SPARC]: Kill __irq_itoa(). 2006-06-20 01:21:29 -07:00
ide-proc.c
ide-tape.c [PATCH] idetape gcc 4.1 warning fix 2006-06-25 10:01:05 -07:00
ide-taskfile.c [PATCH] More BUG_ON conversion 2006-06-23 07:43:08 -07:00
ide-timing.h
ide.c [PATCH] Get rid of struct request request_pm_state member 2006-06-23 17:10:39 +02:00
Kconfig
Makefile
setup-pci.c [SPARC]: Kill __irq_itoa(). 2006-06-20 01:21:29 -07:00