aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo2012-04-16 15:57:22 -0500
committerJens Axboe2012-04-20 03:06:16 -0500
commitc94bed89995e638e43a6663177358b9d20617361 (patch)
tree901c1a4aa7cde07cb921889b94ea2cafd15e79b7 /block/blk-cgroup.h
parent6d18b008daf46bcd82b8ae250aae0785f9714096 (diff)
downloadkernel-common-c94bed89995e638e43a6663177358b9d20617361.tar.gz
kernel-common-c94bed89995e638e43a6663177358b9d20617361.tar.xz
kernel-common-c94bed89995e638e43a6663177358b9d20617361.zip
blkcg: blkg_rwstat_read() was missing inline
blkg_rwstat_read() in blk-cgroup.h was missing inline modifier causing compile warning depending on configuration. Add it. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r--block/blk-cgroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index 222063d3635..ef6550a67a6 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -279,7 +279,7 @@ static inline void blkg_rwstat_add(struct blkg_rwstat *rwstat,
279 * This function can be called without synchronization and takes care of 279 * This function can be called without synchronization and takes care of
280 * u64 atomicity. 280 * u64 atomicity.
281 */ 281 */
282static struct blkg_rwstat blkg_rwstat_read(struct blkg_rwstat *rwstat) 282static inline struct blkg_rwstat blkg_rwstat_read(struct blkg_rwstat *rwstat)
283{ 283{
284 unsigned int start; 284 unsigned int start;
285 struct blkg_rwstat tmp; 285 struct blkg_rwstat tmp;