]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
jffs2: Fix set but not used warning
authorTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 18:48:36 +0000 (14:48 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2016 21:17:43 +0000 (17:17 -0400)
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>
fs/jffs2/jffs2_1pass.c

index 64f55425df53e6ac9e1e6f7075bb860e49065716..ba038b11224d147197189210f4874cc463618666 100644 (file)
 #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;