]> err.no Git - linux-2.6/commit
UBI: fix sparse errors in ubi.h
authorHarvey Harrison <harvey.harrison@gmail.com>
Fri, 15 Feb 2008 08:47:51 +0000 (10:47 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 4 Mar 2008 09:02:50 +0000 (11:02 +0200)
commit8eee9f100b1cc3d1b0a701a8626c54422af3c987
tree957d7cf0d12aa63a20f67725081f385d76b7cfa4
parent19cd7b7de1804a50264dfd5c6ba3c6d332362a77
UBI: fix sparse errors in ubi.h

In C, signed 1-bit bitfields can only take the values 0 and -1, only 0 and 1
are ever assigned in current code.  Make them unsigned bitfields.

Fixes the (repeated) sparse errors:
drivers/mtd/ubi/ubi.h:220:15: error: dubious one-bit signed bitfield
drivers/mtd/ubi/ubi.h:221:17: error: dubious one-bit signed bitfield
drivers/mtd/ubi/ubi.h:222:18: error: dubious one-bit signed bitfield
drivers/mtd/ubi/ubi.h:223:16: error: dubious one-bit signed bitfield
drivers/mtd/ubi/ubi.h:224:20: error: dubious one-bit signed bitfield

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Artem Bityutskiy <dedekind@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/ubi.h