From: Tom Rini Date: Sun, 27 Mar 2016 18:48:36 +0000 (-0400) Subject: jffs2: Fix set but not used warning X-Git-Tag: v2016.05-rc1~77 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1c8fdf8779bed79ea8c0cdbcb2559c2961afaa1d;p=u-boot jffs2: Fix set but not used warning We only use 'ofs' in jffs2_sum_scan_sumnode when debugging as it's part of a dbg_summary call. Mark this as __maybe_unused. Signed-off-by: Tom Rini --- diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index 64f55425df..ba038b1122 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -115,6 +115,7 @@ #include #include #include +#include #include #include #include @@ -1328,7 +1329,7 @@ int jffs2_sum_scan_sumnode(struct part_info *part, uint32_t offset, struct b_lists *pL) { struct jffs2_unknown_node crcnode; - int ret, ofs; + int ret, __maybe_unused ofs; uint32_t crc; ofs = part->sector_size - sumsize;