]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
blkcg: blkg_rwstat_read() was missing inline
authorTejun Heo <tj@kernel.org>
Mon, 16 Apr 2012 20:57:22 +0000 (13:57 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Apr 2012 08:06:16 +0000 (10:06 +0200)
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>
block/blk-cgroup.h

index 222063d36355796f051968494b456f047b455915..ef6550a67a69dd363b5a0f17de0a60c87e6d3cff 100644 (file)
@@ -279,7 +279,7 @@ static inline void blkg_rwstat_add(struct blkg_rwstat *rwstat,
  * This function can be called without synchronization and takes care of
  * u64 atomicity.
  */
-static struct blkg_rwstat blkg_rwstat_read(struct blkg_rwstat *rwstat)
+static inline struct blkg_rwstat blkg_rwstat_read(struct blkg_rwstat *rwstat)
 {
        unsigned int start;
        struct blkg_rwstat tmp;