Commit c19ed23a authored by Kent Overstreet's avatar Kent Overstreet

bcache: Sparse fixes

Signed-off-by: default avatarKent Overstreet <koverstreet@google.com>
parent 169ef1cf
......@@ -130,7 +130,7 @@ static uint64_t btree_csum_set(struct btree *b, struct bset *i)
void *data = (void *) i + 8, *end = end(i);
crc = bch_crc64_update(crc, data, end - data);
return crc ^ 0xffffffffffffffff;
return crc ^ 0xffffffffffffffffULL;
}
static void btree_bio_endio(struct bio *bio, int error)
......
......@@ -82,7 +82,7 @@ struct keyprint_hack bch_pbtree(const struct btree *b)
{
struct keyprint_hack r;
snprintf(r.s, 40, "%li level %i/%i", PTR_BUCKET_NR(b->c, &b->key, 0),
snprintf(r.s, 40, "%zu level %i/%i", PTR_BUCKET_NR(b->c, &b->key, 0),
b->level, b->c->root ? b->c->root->level : -1);
return r;
}
......
......@@ -563,6 +563,7 @@ static void journal_write_done(struct closure *cl)
}
static void journal_write_unlocked(struct closure *cl)
__releases(c->journal.lock)
{
struct cache_set *c = container_of(cl, struct cache_set, journal.io.cl);
struct cache *ca;
......@@ -652,6 +653,7 @@ static void journal_write(struct closure *cl)
}
static void __journal_try_write(struct cache_set *c, bool noflush)
__releases(c->journal.lock)
{
struct closure *cl = &c->journal.io.cl;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment