diff options
author | Tom Rini <trini@konsulko.com> | 2016-03-27 14:48:36 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-04-01 17:17:43 -0400 |
commit | 1c8fdf8779bed79ea8c0cdbcb2559c2961afaa1d (patch) | |
tree | 4833b2e96d1b0e787003a82970ac1e97e7c7fb10 /fs | |
parent | 65b3c6bbae072367cbcf07bdd2ec27dcd591c0b3 (diff) | |
download | u-boot-imx-1c8fdf8779bed79ea8c0cdbcb2559c2961afaa1d.zip u-boot-imx-1c8fdf8779bed79ea8c0cdbcb2559c2961afaa1d.tar.gz u-boot-imx-1c8fdf8779bed79ea8c0cdbcb2559c2961afaa1d.tar.bz2 |
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 <trini@konsulko.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/jffs2/jffs2_1pass.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index 64f5542..ba038b1 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -115,6 +115,7 @@ #include <config.h> #include <malloc.h> #include <div64.h> +#include <linux/compiler.h> #include <linux/stat.h> #include <linux/time.h> #include <watchdog.h> @@ -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; |