Russell King
c48cd65989
ARM: OMAP: use consistent error checking
...
Consistently check errors using the usual method used in the kernel
for much of its history. For instance:
int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t)
{
int div;
div = gpmc_calc_divider(t->sync_clk);
if (div < 0)
return div;
static int gpmc_set_async_mode(int cs, struct gpmc_timings *t)
{
...
return gpmc_cs_set_timings(cs, t);
.....
ret = gpmc_set_async_mode(gpmc_onenand_data->cs, &t);
if (IS_ERR_VALUE(ret))
return ret;
So, gpmc_cs_set_timings() thinks any negative return value is an error,
but where we check that in higher levels, only a limited range are
errors...
There is only _one_ use of IS_ERR_VALUE() in arch/arm which is really
appropriate, and that is in arch/arm/include/asm/syscall.h:
static inline long syscall_get_error(struct task_struct *task,
struct pt_regs *regs)
{
unsigned long error = regs->ARM_r0;
return IS_ERR_VALUE(error) ? error : 0;
}
because this function really does have to differentiate between error
return values and addresses which look like negative numbers (eg, from
mmap()).
So, here's a patch to remove them from OMAP, except for the above.
Acked-by: Tony Lindgren <tony@atomide.com >
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk >
2013-05-02 19:54:22 +01:00
..
2012-11-02 12:00:36 -07:00
2012-11-08 12:33:07 -07:00
2012-10-17 12:08:40 -07:00
2012-03-05 11:08:36 -08:00
2012-09-20 15:02:23 -07:00
2012-11-30 08:40:31 -08:00
2012-12-14 11:10:59 -08:00
2012-11-08 12:33:08 -07:00
2012-12-12 12:14:06 -08:00
2012-11-08 12:33:08 -07:00
2012-12-14 11:10:59 -08:00
2012-11-08 12:33:08 -07:00
2012-12-14 11:10:59 -08:00
2012-11-29 22:30:11 -08:00
2012-12-14 11:10:59 -08:00
2012-10-18 16:23:46 -07:00
2012-10-15 14:42:15 +05:30
2012-12-12 12:14:06 -08:00
2012-12-14 11:48:06 -08:00
2012-12-12 11:45:16 -08:00
2012-11-08 12:33:08 -07:00
2012-12-18 16:51:10 -08:00
2013-05-02 19:54:22 +01:00
2012-12-14 11:10:59 -08:00
2012-11-08 12:33:08 -07:00
2012-11-08 12:33:08 -07:00
2012-12-14 11:10:59 -08:00
2012-11-08 12:33:08 -07:00
2013-01-21 10:39:53 -08:00
2012-12-12 11:45:16 -08:00
2012-12-12 12:14:06 -08:00
2012-12-19 08:14:08 -08:00
2012-11-13 09:52:29 +02:00
2012-12-15 13:03:48 -08:00
2012-09-20 15:02:27 -07:00
2012-11-08 12:33:08 -07:00
2012-10-17 11:36:46 -07:00
2012-10-18 16:23:46 -07:00
2012-10-24 15:05:45 -07:00
2012-11-08 12:33:08 -07:00
2012-10-17 11:36:46 -07:00
2013-01-02 12:07:16 -07:00
2012-11-12 19:18:49 -07:00
2013-01-18 16:48:15 -07:00
2013-01-18 16:48:16 -07:00
2013-01-18 16:48:16 -07:00
2012-11-12 19:18:51 -07:00
2012-11-12 19:18:51 -07:00
2012-11-30 08:40:31 -08:00
2012-11-12 19:18:51 -07:00
2012-11-12 19:18:51 -07:00
2012-11-30 08:40:31 -08:00
2012-11-30 08:40:31 -08:00
2012-11-12 19:18:51 -07:00
2012-11-12 19:18:51 -07:00
2012-11-12 19:18:51 -07:00
2012-11-12 19:10:18 -07:00
2012-11-12 19:18:51 -07:00
2012-11-12 19:18:50 -07:00
2012-11-12 19:18:50 -07:00
2012-11-12 19:18:50 -07:00
2012-11-12 19:18:50 -07:00
2012-11-12 19:18:50 -07:00
2012-11-12 19:18:51 -07:00
2012-11-12 19:18:50 -07:00
2012-11-12 19:18:51 -07:00
2013-05-02 19:54:22 +01:00
2012-12-15 01:35:46 -07:00
2012-12-15 01:35:54 -07:00
2012-10-18 16:23:46 -07:00
2012-07-05 17:25:38 -07:00
2012-10-18 16:23:46 -07:00
2012-06-18 12:08:06 -06:00
2012-10-29 22:02:13 -06:00
2012-10-18 16:23:46 -07:00
2012-10-18 16:23:46 -07:00
2012-11-12 19:18:49 -07:00
2012-11-08 12:33:08 -07:00
2012-11-08 12:33:08 -07:00
2012-11-08 12:33:08 -07:00
2012-11-08 12:33:08 -07:00
2012-11-30 08:40:31 -08:00
2012-06-18 12:08:06 -06:00
2012-02-24 10:34:35 -08:00
2012-11-12 13:42:46 -08:00
2012-11-12 19:18:49 -07:00
2012-09-22 10:53:08 -06:00
2012-11-12 19:18:49 -07:00
2012-09-22 10:52:59 -06:00
2012-11-08 15:09:26 -07:00
2012-10-21 01:01:11 -06:00
2012-11-08 15:09:26 -07:00
2012-12-12 11:45:16 -08:00
2012-10-15 12:00:44 +05:30
2012-12-16 11:19:48 -08:00
2012-12-12 11:51:39 -08:00
2012-11-08 12:33:07 -07:00
2012-12-17 10:50:41 -08:00
2012-12-15 01:41:24 -07:00
2012-12-15 01:41:24 -07:00
2012-09-20 15:02:29 -07:00
2012-09-20 15:02:30 -07:00
2012-09-20 15:02:32 -07:00
2012-09-20 15:02:33 -07:00
2013-01-21 10:39:52 -08:00
2012-12-15 13:03:48 -08:00
2012-11-30 08:41:50 -08:00
2012-10-15 14:03:51 -07:00
2012-12-30 09:59:21 -08:00
2012-12-15 01:35:46 -07:00
2013-01-21 10:34:08 -08:00
2012-10-18 16:22:08 -07:00
2012-12-17 10:50:41 -08:00
2012-11-07 13:26:51 -08:00
2012-09-12 18:06:31 -07:00
2012-12-17 10:50:40 -08:00
2012-10-18 16:22:08 -07:00
2012-11-09 00:59:16 +05:30
2012-10-15 14:42:15 +05:30
2013-05-02 19:54:22 +01:00
2012-10-15 14:42:03 +05:30
2012-11-09 18:07:22 +05:30
2012-09-20 15:02:49 -07:00
2012-10-15 14:42:15 +05:30
2012-09-20 15:03:55 -07:00
2013-05-02 19:54:22 +01:00
2012-11-09 18:07:11 +05:30
2012-11-08 15:09:26 -07:00
2012-10-18 16:05:55 -07:00
2012-11-02 12:00:36 -07:00
2012-03-28 20:59:45 -07:00
2012-10-18 16:05:55 -07:00
2012-12-20 08:43:25 -08:00
2012-10-31 15:37:13 -07:00
2012-11-30 08:40:31 -08:00
2012-09-20 15:02:22 -07:00
2012-11-30 08:41:50 -08:00
2012-07-09 19:14:39 +05:30
2012-09-23 17:15:44 -06:00
2012-12-14 10:14:16 -06:00
2012-09-20 15:03:59 -07:00
2012-09-20 15:04:00 -07:00
2012-09-20 15:04:01 -07:00
2012-09-20 15:04:03 -07:00
2013-01-03 15:57:04 -08:00
2012-12-17 10:50:40 -08:00
2012-09-20 22:58:17 -07:00
2012-11-30 08:41:50 -08:00
2012-10-15 12:09:43 -07:00
2012-11-08 15:09:26 -07:00
2012-12-14 11:11:34 -08:00
2012-12-14 11:11:34 -08:00
2012-12-14 11:11:34 -08:00
2012-11-08 12:33:08 -07:00
2012-11-08 12:33:08 -07:00
2012-12-12 11:51:39 -08:00
2012-09-20 15:04:04 -07:00
2012-07-09 19:14:39 +05:30
2012-09-12 18:06:31 -07:00
2012-09-12 18:06:31 -07:00
2012-09-12 18:06:31 -07:00
2012-09-12 18:06:31 -07:00
2013-05-02 19:54:22 +01:00
2012-10-18 16:05:55 -07:00
2012-10-24 13:34:31 -07:00
2012-11-30 08:41:50 -08:00
2012-10-24 13:34:31 -07:00
2012-11-30 21:47:21 -08:00
2012-12-18 16:51:10 -08:00
2013-01-07 12:38:07 -08:00
2013-01-18 16:48:16 -07:00
2012-11-30 21:47:21 -08:00
2012-12-18 16:51:10 -08:00
2012-10-18 16:05:55 -07:00
2012-10-18 16:05:55 -07:00
2013-05-02 19:54:22 +01:00
2012-12-12 16:10:00 -08:00
2012-11-13 13:25:38 -08:00
2012-12-12 16:10:00 -08:00
2012-12-17 10:50:41 -08:00
2012-11-05 14:26:43 -08:00
2012-09-22 00:16:04 -07:00
2012-12-20 14:15:26 -08:00
2012-12-12 11:45:16 -08:00
2012-10-31 15:37:13 -07:00
2012-10-18 16:22:08 -07:00
2012-10-18 16:22:24 -07:00
2012-10-18 16:22:24 -07:00
2012-11-14 17:06:20 -08:00
2012-10-01 18:19:05 -07:00
2012-09-20 15:02:37 -07:00
2012-10-18 16:23:46 -07:00
2012-11-05 15:31:49 -08:00
2012-09-12 18:06:31 -07:00
2012-09-12 18:06:31 -07:00
2012-10-17 12:08:40 -07:00
2012-11-30 08:41:50 -08:00
2012-11-30 08:41:50 -08:00
2012-12-12 16:10:00 -08:00
2013-02-24 10:52:18 +00:00
2012-12-12 16:10:00 -08:00
2012-12-13 10:58:20 -08:00
2012-12-17 10:50:41 -08:00
2012-03-07 17:29:34 -08:00
2013-02-24 10:55:24 +00:00
2012-10-18 16:23:46 -07:00
2012-10-18 16:23:46 -07:00
2012-09-12 18:06:31 -07:00
2012-06-18 12:08:06 -06:00
2012-11-08 15:09:26 -07:00
2012-11-08 15:09:26 -07:00
2012-11-08 15:09:26 -07:00
2013-01-02 12:07:16 -07:00
2012-11-12 19:18:49 -07:00
2013-01-03 11:04:21 -08:00
2012-11-21 16:15:16 -07:00
2013-01-03 11:04:21 -08:00
2012-11-21 16:15:16 -07:00
2012-11-30 08:40:31 -08:00
2012-06-18 12:08:06 -06:00
2013-01-02 12:07:16 -07:00
2013-01-02 12:07:16 -07:00
2012-11-30 08:40:31 -08:00
2012-11-12 19:18:49 -07:00
2012-06-18 12:08:06 -06:00
2012-11-12 19:18:49 -07:00
2012-11-21 16:15:17 -07:00
2012-05-07 23:55:22 -06:00
2012-11-08 15:09:26 -07:00
2012-11-12 19:10:20 -07:00
2012-10-17 10:18:37 -07:00
2012-10-17 10:18:37 -07:00
2012-10-18 16:23:20 -07:00
2012-10-17 10:18:37 -07:00
2012-10-17 10:18:37 -07:00
2012-11-30 08:40:31 -08:00
2012-11-30 08:40:31 -08:00
2012-11-08 12:33:07 -07:00
2012-12-14 14:50:09 -08:00
2012-10-31 15:37:14 -07:00
2012-09-12 18:06:31 -07:00
2012-11-30 08:40:31 -08:00
2012-09-20 15:02:35 -07:00
2012-05-31 16:03:44 -07:00
2012-11-14 12:10:37 -08:00
2012-11-13 13:25:38 -08:00
2012-10-21 01:01:11 -06:00
2012-10-21 01:01:11 -06:00
2012-10-21 01:01:11 -06:00
2012-10-31 10:14:14 -07:00
2012-10-31 10:14:13 -07:00
2012-11-08 12:33:07 -07:00
2013-05-02 19:54:22 +01:00
2012-12-12 16:10:00 -08:00
2012-10-09 07:07:14 +09:00
2012-12-14 11:48:06 -08:00
2012-10-24 15:05:45 -07:00
2012-11-09 18:07:23 +05:30
2012-10-24 14:26:55 -07:00
2012-11-05 15:08:22 -08:00
2012-11-05 15:08:22 -08:00
2012-11-30 09:12:33 -08:00
2012-11-05 15:08:23 -08:00
2012-09-12 02:57:10 -06:00
2012-11-05 15:31:12 -08:00
2012-11-05 15:08:22 -08:00
2012-06-18 00:47:26 -06:00
2012-11-13 13:25:38 -08:00
2012-11-05 15:08:22 -08:00
2012-11-05 15:08:22 -08:00
2012-11-06 17:06:37 -08:00
2012-11-05 15:08:22 -08:00
2012-11-08 15:09:26 -07:00
2012-10-18 16:05:55 -07:00