diff options
author | zhangyi (F) <yi.zhang@huawei.com> | 2019-02-21 19:24:09 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-02-21 19:24:09 +0300 |
commit | 01215d3edb0f384ddeaa5e4a22c1ae5ff634149f (patch) | |
tree | 8b7ff6039bd2b19023a8d6370dd591b0ed6b79ae /fs/ext4 | |
parent | 7159a986b4202343f6cca3bb8079ecace5816fd6 (diff) | |
download | linux-01215d3edb0f384ddeaa5e4a22c1ae5ff634149f.tar.xz |
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>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions