Jeff Mahoney
1d965fe0eb
reiserfs: fix warnings with gcc 4.4
...
Several code paths in reiserfs have a construct like:
if (is_direntry_le_ih(ih = B_N_PITEM_HEAD(src, item_num))) ...
which, in addition to being ugly, end up causing compiler warnings with
gcc 4.4.0. Previous compilers didn't issue a warning.
fs/reiserfs/do_balan.c:1273: warning: operation on `aux_ih' may be undefined
fs/reiserfs/lbalance.c:393: warning: operation on `ih' may be undefined
fs/reiserfs/lbalance.c:421: warning: operation on `ih' may be undefined
fs/reiserfs/lbalance.c:777: warning: operation on `ih' may be undefined
I believe this is due to the ih being passed to macros which evaluate the
argument more than once. This is old code and we haven't seen any
problems with it, but this patch eliminates the warnings.
It converts the multiple evaluation macros to static inlines and does a
preassignment for the cases that were causing the warnings because that
code is just ugly.
Reported-by: Chris Mason <mason@oracle.com >
Signed-off-by: Jeff Mahoney <jeffm@suse.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2009-06-18 13:03:46 -07:00
..
2009-06-14 13:42:43 -07:00
2009-06-01 02:53:35 -07:00
2009-06-18 13:03:44 -07:00
2009-06-08 00:45:50 -07:00
2009-06-17 19:41:52 +02:00
2009-06-05 10:36:24 -07:00
2009-06-16 19:14:16 -03:00
2009-06-02 13:53:35 +03:00
2009-06-11 16:00:49 +02:00
2009-06-11 21:36:00 -04:00
2009-06-15 11:18:26 +01:00
2009-06-18 13:03:42 -07:00
2009-05-02 16:35:08 -07:00
2009-06-15 21:44:50 -07:00
2009-06-11 03:30:20 -07:00
2009-04-28 12:21:17 +02:00
2009-06-17 00:36:36 -04:00
2009-05-15 14:14:56 -04:00
2008-04-19 19:10:33 -07:00
2009-06-01 06:21:13 +00:00
2009-05-02 15:36:10 -07:00
2009-06-15 16:47:21 +10:00
2008-12-30 09:05:13 +10:30
2009-04-23 10:06:35 +01:00
2009-06-16 08:23:52 +02:00
2009-06-10 11:55:06 +02:00
2009-06-16 19:47:48 -07:00
2009-06-15 15:49:34 +02:00
2009-06-13 22:42:59 +02:00
2009-06-11 21:36:09 -04:00
2009-06-04 17:45:43 +01:00
2009-05-13 16:52:42 +02:00
2009-05-02 11:45:15 +02:00
2009-04-30 19:24:24 +02:00
2009-06-12 21:46:57 +09:30
2008-10-14 12:12:02 -07:00
2009-06-09 22:30:26 +09:30
2009-06-16 19:47:31 -07:00
2009-06-11 21:36:10 -04:00
2009-05-29 08:40:01 -07:00
2009-06-11 08:50:57 -07:00
2009-06-11 21:36:06 -04:00
2008-04-30 08:29:53 -07:00
2009-05-22 23:22:54 +02:00
2009-06-15 21:30:25 -07:00
2009-05-07 10:14:26 -05:00
2009-05-12 14:41:47 -07:00
2009-06-11 14:57:53 -04:00
2009-06-17 09:33:49 -07:00
2009-06-15 21:30:26 -07:00
2009-05-11 09:52:18 +02:00
2008-02-07 08:42:25 -08:00
2009-02-15 22:43:33 -08:00
2009-05-05 12:26:24 -07:00
2009-06-09 05:25:36 -07:00
2009-06-16 19:48:01 -07:00
2009-06-14 14:23:42 +02:00
2009-06-16 19:47:28 -07:00
2009-06-15 21:30:25 -07:00
2009-04-27 02:53:51 -07:00
2009-06-16 19:50:13 -07:00
2009-06-18 13:03:42 -07:00
2009-06-11 14:57:54 -04:00
2009-06-11 14:57:54 -04:00
2009-06-01 23:26:02 -04:00
2009-06-09 11:24:11 +02:00
2009-04-30 11:41:35 +02:00
2006-10-02 07:57:12 -07:00
2009-06-15 21:30:25 -07:00
2009-06-16 19:50:13 -07:00
2007-02-05 10:00:38 +01:00
2009-05-20 15:48:35 +02:00
2009-06-16 19:47:41 -07:00
2009-05-13 16:52:42 +02:00
2009-06-16 19:47:36 -07:00
2009-06-13 10:39:28 +01:00
2009-05-28 20:52:40 -04:00
2009-06-11 10:00:03 -07:00
2009-06-03 14:05:10 -04:00
2009-06-09 05:25:30 -07:00
2009-06-15 03:02:23 -07:00
2009-05-21 15:13:39 -07:00
2009-04-27 03:23:54 -07:00
2009-05-19 16:02:02 -07:00
2009-05-18 22:19:19 -07:00
2009-05-22 09:43:41 +10:00
2009-06-02 00:45:24 -07:00
2009-06-16 19:47:28 -07:00
2009-06-16 19:47:57 -07:00
2007-04-29 23:42:45 -04:00
2009-05-23 09:53:18 -07:00
2009-06-15 15:50:49 +02:00
2009-06-10 23:07:15 +02:00
2009-04-21 13:41:48 -07:00
2009-04-21 13:41:48 -07:00
2009-06-01 03:07:33 -07:00
2009-06-11 19:27:07 +03:00
2009-06-15 03:02:23 -07:00
2009-06-18 13:03:40 -07:00
2009-06-16 12:57:37 -07:00
2009-06-14 13:50:36 -07:00
2009-06-15 15:49:23 +02:00
2009-06-11 17:03:28 +01:00
2009-06-10 11:48:53 +03:00
2009-06-10 11:48:27 +03:00
2009-06-10 11:48:39 +03:00
2009-06-12 22:27:11 +09:30
2009-06-12 22:27:03 +09:30
2009-06-16 19:47:57 -07:00
2009-06-16 19:47:57 -07:00
2009-06-13 12:28:57 +02:00
2009-04-28 07:37:28 +02:00
2009-06-11 21:36:10 -04:00
2009-06-16 19:47:48 -07:00
2009-06-11 02:47:10 -07:00
2009-06-16 19:47:38 -07:00
2009-06-16 08:40:20 +02:00
2009-04-29 17:32:35 -07:00
2009-06-15 21:30:25 -07:00
2009-05-25 00:55:30 -07:00
2009-06-11 19:05:32 +02:00
2009-05-25 00:55:45 -07:00
2009-06-16 19:50:13 -07:00
2009-06-16 19:47:44 -07:00
2009-05-02 15:36:10 -07:00
2009-04-29 11:33:34 +02:00
2005-04-16 15:20:36 -07:00
2009-06-16 19:47:42 -07:00
2009-06-16 19:47:48 -07:00
2009-01-05 08:40:13 +10:30
2009-06-12 21:46:58 +09:30
2009-06-11 21:36:02 -04:00
2008-02-13 16:21:18 -08:00
2009-04-30 09:01:34 +02:00
2009-06-11 21:36:01 -04:00
2009-06-15 03:02:23 -07:00
2009-06-09 00:17:27 -07:00
2009-05-13 15:44:39 -04:00
2009-06-09 05:25:33 -07:00
2009-06-15 21:44:43 -07:00
2009-01-06 15:59:00 -08:00
2009-06-16 19:47:35 -07:00
2009-06-03 14:05:12 -04:00
2009-04-27 02:53:47 -07:00
2009-05-02 15:36:10 -07:00
2009-04-27 02:53:45 -07:00
2009-06-12 11:00:54 +03:00
2009-06-17 08:30:15 +03:00
2009-06-16 19:47:42 -07:00
2009-06-02 09:53:22 -07:00
2008-02-14 21:13:33 -08:00
2009-06-15 21:44:48 -07:00
2009-04-22 15:59:41 -07:00
2009-06-15 21:44:44 -07:00
2009-04-21 19:40:00 -07:00
2009-06-11 17:04:18 +01:00
2009-06-12 14:28:52 +02:00
2009-05-26 21:16:25 -07:00
2009-05-11 14:13:10 +02:00
2009-04-24 08:54:21 +02:00
2009-06-15 21:30:24 -07:00
2009-06-12 21:32:31 +02:00
2009-06-05 14:37:41 +00:00
2009-06-16 19:47:48 -07:00
2006-10-03 23:01:26 +02:00
2009-06-11 21:36:01 -04:00
2009-06-11 21:36:12 -04:00
2009-06-11 21:36:04 -04:00
2009-06-16 19:47:30 -07:00
2008-04-19 19:10:33 -07:00
2009-06-11 08:51:08 -07:00
2009-06-11 21:35:58 -04:00
2009-06-18 13:03:46 -07:00
2009-05-17 11:45:45 -07:00
2009-06-10 13:28:37 -04:00
2009-06-15 15:49:37 +02:00
2009-06-16 19:47:44 -07:00
2009-05-09 10:49:41 -04:00
2006-07-13 13:21:35 -07:00
2009-06-16 19:50:13 -07:00
2009-06-03 09:14:45 -04:00
2009-06-04 12:07:48 +10:00
2008-04-25 00:25:08 +02:00
2009-06-11 08:51:06 -07:00
2009-05-08 23:22:26 +09:00
2009-06-11 08:50:58 -07:00
2009-05-03 17:57:17 +09:00
2009-04-30 19:24:24 +02:00
2009-06-16 13:09:51 -07:00
2009-06-13 08:58:43 +02:00
2009-06-15 15:50:49 +02:00
2009-06-12 18:53:33 +03:00
2009-04-21 19:40:00 -07:00
2009-06-12 18:53:33 +03:00
2009-06-16 19:47:48 -07:00
2009-04-28 01:53:11 -07:00
2009-04-27 02:45:02 -07:00
2009-06-09 05:25:30 -07:00
2009-06-10 11:48:14 +02:00
2009-05-12 11:11:48 +02:00
2008-05-26 16:15:32 +02:00
2009-06-12 23:04:12 +02:00
2006-12-07 02:14:08 +01:00
2009-06-12 21:32:33 +02:00
2009-06-16 19:47:44 -07:00
2009-06-16 19:47:52 -07:00
2008-07-21 21:55:02 -07:00
2009-01-31 00:08:18 +05:30
2009-06-13 12:00:26 +02:00
2009-05-02 11:45:15 +02:00
2009-05-13 16:52:42 +02:00
2009-06-16 19:47:27 -07:00
2009-06-09 15:17:32 -04:00
2009-06-04 18:07:40 -07:00
2009-06-15 21:30:28 -07:00
2009-06-11 08:50:59 -07:00
2009-06-11 08:51:01 -07:00
2009-06-12 18:01:45 +02:00
2009-06-16 13:06:10 -07:00
2009-06-16 19:47:47 -07:00
2009-06-16 19:07:42 -03:00
2009-06-09 14:41:40 +02:00
2009-06-12 22:16:38 +09:30
2009-05-01 15:34:02 -07:00
2009-06-12 22:16:37 +09:30
2009-06-12 22:16:39 +09:30
2009-06-12 22:16:36 +09:30
2009-06-16 19:47:52 -07:00
2009-06-16 19:47:46 -07:00
2009-05-11 12:59:37 +02:00
2009-05-28 18:02:32 -07:00
2009-04-02 19:04:50 -07:00
2009-06-11 21:36:03 -04:00