aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-08-11 01:19:44 -0400
committerJens Axboe <axboe@kernel.dk>2018-08-11 17:46:41 -0400
commit6f10f7d1b02b1bbc305f88d7696445dd38b13881 (patch)
tree180832c7da865145a7528e81d7145f98fd4a29db /include/uapi/linux
parentb86d865cb1cae1e61527ea0b8977078bbf694328 (diff)
bcache: style fix to replace 'unsigned' by 'unsigned int'
This patch fixes warning reported by checkpatch.pl by replacing 'unsigned' with 'unsigned int'. Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Shenghui Wang <shhuiw@foxmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/bcache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/uapi/linux/bcache.h b/include/uapi/linux/bcache.h
index 8d19e02d752a..6bdcb48ee8cf 100644
--- a/include/uapi/linux/bcache.h
+++ b/include/uapi/linux/bcache.h
@@ -30,10 +30,10 @@ struct bkey {
30 BITMASK(name, struct bkey, field, offset, size) 30 BITMASK(name, struct bkey, field, offset, size)
31 31
32#define PTR_FIELD(name, offset, size) \ 32#define PTR_FIELD(name, offset, size) \
33static inline __u64 name(const struct bkey *k, unsigned i) \ 33static inline __u64 name(const struct bkey *k, unsigned int i) \
34{ return (k->ptr[i] >> offset) & ~(~0ULL << size); } \ 34{ return (k->ptr[i] >> offset) & ~(~0ULL << size); } \
35 \ 35 \
36static inline void SET_##name(struct bkey *k, unsigned i, __u64 v) \ 36static inline void SET_##name(struct bkey *k, unsigned int i, __u64 v) \
37{ \ 37{ \
38 k->ptr[i] &= ~(~(~0ULL << size) << offset); \ 38 k->ptr[i] &= ~(~(~0ULL << size) << offset); \
39 k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \ 39 k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \
@@ -120,7 +120,7 @@ static inline struct bkey *bkey_next(const struct bkey *k)
120 return (struct bkey *) (d + bkey_u64s(k)); 120 return (struct bkey *) (d + bkey_u64s(k));
121} 121}
122 122
123static inline struct bkey *bkey_idx(const struct bkey *k, unsigned nr_keys) 123static inline struct bkey *bkey_idx(const struct bkey *k, unsigned int nr_keys)
124{ 124{
125 __u64 *d = (void *) k; 125 __u64 *d = (void *) k;
126 return (struct bkey *) (d + nr_keys); 126 return (struct bkey *) (d + nr_keys);