zhangyi (F)
01215d3edb
jbd2: fix compile warning when using JBUFFER_TRACE
...
The jh pointer may be used uninitialized in the two cases below and the
compiler complain about it when enabling JBUFFER_TRACE macro, fix them.
In file included from fs/jbd2/transaction.c:19:0:
fs/jbd2/transaction.c: In function ‘jbd2_journal_get_undo_access’:
./include/linux/jbd2.h:1637:38: warning: ‘jh’ is used uninitialized in this function [-Wuninitialized]
#define JBUFFER_TRACE(jh, info) do { printk("%s: %d\n", __func__, jh->b_jcount);} while (0)
^
fs/jbd2/transaction.c:1219:23: note: ‘jh’ was declared here
struct journal_head *jh;
^
In file included from fs/jbd2/transaction.c:19:0:
fs/jbd2/transaction.c: In function ‘jbd2_journal_dirty_metadata’:
./include/linux/jbd2.h:1637:38: warning: ‘jh’ may be used uninitialized in this function [-Wmaybe-uninitialized]
#define JBUFFER_TRACE(jh, info) do { printk("%s: %d\n", __func__, jh->b_jcount);} while (0)
^
fs/jbd2/transaction.c:1332:23: note: ‘jh’ was declared here
struct journal_head *jh;
^
Signed-off-by: zhangyi (F) <yi.zhang@huawei.com >
Signed-off-by: Theodore Ts'o <tytso@mit.edu >
Cc: stable@vger.kernel.org
Reviewed-by: Jan Kara <jack@suse.cz >
2019-02-21 11:24:09 -05:00
..
2018-11-01 19:58:52 -07:00
2018-08-22 10:52:51 -07:00
2018-05-28 12:36:41 +02:00
2019-01-17 15:17:28 +00:00
2019-01-04 13:13:47 -08:00
2018-06-15 18:10:01 -03:00
2019-01-04 13:13:47 -08:00
2019-01-21 07:35:26 +13:00
2018-11-30 16:00:58 +00:00
2019-01-07 22:48:48 +01:00
2019-01-11 07:14:40 -06:00
2018-06-05 16:57:31 -07:00
2018-07-17 06:14:07 -07:00
2018-10-30 12:46:25 -07:00
2019-01-06 08:36:21 -05:00
2018-06-12 20:52:16 -07:00
2018-08-21 23:54:17 -04:00
2018-12-03 15:30:24 -06:00
2018-10-09 23:33:17 -04:00
2018-07-22 14:13:44 +02:00
2018-12-17 18:36:33 -05:00
2018-11-23 09:08:17 -05:00
2018-12-27 17:00:35 -08:00
2019-02-21 11:17:34 -05:00
2018-12-31 09:41:37 -08:00
2019-01-05 09:16:18 -08:00
2018-05-22 14:27:51 -04:00
2018-11-30 15:57:31 +00:00
2018-12-28 12:11:47 -08:00
2018-12-27 17:12:30 -08:00
2018-11-30 14:56:14 -08:00
2019-01-04 13:13:47 -08:00
2018-08-17 16:20:28 -07:00
2018-08-25 12:42:33 -07:00
2019-01-08 17:15:11 -08:00
2018-09-29 22:47:48 -04:00
2019-02-21 11:24:09 -05:00
2018-12-02 09:20:34 +01:00
2018-09-20 09:28:49 -05:00
2018-11-27 11:59:33 +01:00
2019-01-02 16:35:23 -08:00
2018-05-22 14:27:52 -04:00
2019-01-15 11:24:49 -05:00
2018-03-27 13:18:09 -04:00
2019-01-02 16:35:23 -08:00
2018-11-05 14:57:05 -05:00
2018-12-11 10:55:45 +01:00
2018-12-28 12:11:47 -08:00
2019-01-05 09:16:18 -08:00
2018-05-22 14:27:58 -04:00
2018-11-18 13:35:19 -08:00
2019-01-04 13:13:48 -08:00
2018-12-04 11:31:30 +01:00
2019-01-04 13:13:45 -08:00
2019-01-20 14:44:52 -08:00
2018-05-22 14:27:52 -04:00
2018-05-22 14:27:54 -04:00
2018-12-18 18:29:15 +01:00
2018-10-31 08:54:14 -07:00
2018-05-22 14:27:55 -04:00
2018-08-02 09:34:02 -07:00
2019-01-07 08:53:32 +01:00
2018-11-10 08:02:40 -05:00
2018-07-31 11:32:44 -04:00
2018-12-28 12:11:51 -08:00
2018-12-27 17:00:35 -08:00
2018-08-17 16:20:27 -07:00
2018-12-29 10:47:58 -08:00
2018-12-28 16:55:46 -08:00
2018-07-12 10:04:27 -04:00
2018-07-03 16:44:45 -04:00
2018-07-12 10:04:20 -04:00
2019-01-03 18:57:57 -08:00
2018-06-12 16:19:22 -07:00
2018-10-03 16:47:43 +02:00
2018-04-11 10:28:37 -07:00
2018-07-10 23:29:03 -04:00
2019-01-04 13:13:47 -08:00
2019-01-15 07:30:56 -07:00
2019-01-04 13:13:48 -08:00
2018-03-15 17:59:24 +01:00
2018-08-27 14:48:48 +02:00
2018-10-29 14:29:58 -07:00
2018-06-05 19:23:26 +02:00
2018-10-03 16:47:43 +02:00
2018-03-29 15:07:46 -04:00
2018-12-31 09:46:39 -08:00
2018-10-31 08:54:16 -07:00
2018-04-02 20:15:39 +02:00
2018-12-04 09:38:05 -07:00
2018-06-28 10:40:47 -07:00
2019-01-05 09:16:18 -08:00
2019-01-05 13:18:59 -08:00
2018-10-03 16:47:43 +02:00
2018-12-28 12:11:47 -08:00
2018-12-28 20:54:57 -08:00
2018-05-16 07:23:35 +02:00
2018-10-21 10:46:42 -04:00
2018-12-28 12:45:04 -08:00
2018-08-21 18:19:09 -07:00
2019-01-03 18:57:57 -08:00
2019-01-02 10:46:03 -08:00
2018-06-11 08:22:34 -07:00
2018-08-02 08:06:55 +09:00
2018-03-30 11:34:55 -07:00
2019-01-02 20:14:50 -05:00
2018-06-11 08:22:34 -07:00
2018-06-12 16:19:22 -07:00
2018-08-17 16:20:29 -07:00
2018-12-22 14:18:34 -08:00
2019-01-05 13:25:58 -08:00
2018-02-15 15:34:42 -05:00
2018-08-21 18:19:09 -07:00
2018-08-13 19:58:36 -07:00
2018-12-20 16:32:56 +00:00
2018-02-11 14:34:03 -08:00
2019-01-03 18:57:57 -08:00
2019-01-03 18:57:57 -08:00
2019-01-03 18:57:57 -08:00
2018-08-17 16:20:28 -07:00
2018-10-03 16:47:43 +02:00
2018-12-04 08:50:49 -08:00
2018-08-29 15:42:20 +02:00
2018-07-12 14:49:48 +01:00
2018-12-21 11:51:23 -05:00
2018-04-04 12:44:02 -07:00
2018-08-27 14:48:48 +02:00
2018-12-28 12:11:51 -08:00
2018-08-29 15:42:23 +02:00
2018-09-18 07:30:48 -04:00