diff options
author | Huacai Chen <chenhc@lemote.com> | 2017-11-24 15:14:25 -0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-11-24 16:22:58 -0700 |
commit | cf33c1ee5254c6a430bc1538232b49c3ea13e613 (patch) | |
tree | 0318204e26ecf0913cbd7587e198828451d58a31 /drivers/md/bcache/alloc.c | |
parent | bb22cafd75686d799dabfe422571fac4b5c2ed94 (diff) | |
download | linux-cf33c1ee5254c6a430bc1538232b49c3ea13e613.tar.gz |
bcache: Fix building error on MIPS
This patch try to fix the building error on MIPS. The reason is MIPS
has already defined the PTR macro, which conflicts with the PTR macro
in include/uapi/linux/bcache.h.
[fixed by mlyle: corrected a line-length issue]
Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Reviewed-by: Michael Lyle <mlyle@lyle.org>
Signed-off-by: Michael Lyle <mlyle@lyle.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/alloc.c')
-rw-r--r-- | drivers/md/bcache/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/alloc.c b/drivers/md/bcache/alloc.c index a27d85232ce1..a0cc1bc6d884 100644 --- a/drivers/md/bcache/alloc.c +++ b/drivers/md/bcache/alloc.c @@ -490,7 +490,7 @@ int __bch_bucket_alloc_set(struct cache_set *c, unsigned reserve, if (b == -1) goto err; - k->ptr[i] = PTR(ca->buckets[b].gen, + k->ptr[i] = MAKE_PTR(ca->buckets[b].gen, bucket_to_sector(c, b), ca->sb.nr_this_dev); |