[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20180130182855.GI1121507@devbig577.frc2.facebook.com>
Date: Tue, 30 Jan 2018 10:28:55 -0800
From: Tejun Heo <tj@...nel.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, Christoph Lameter <cl@...ux.com>
Subject: [GIT PULL] percpu changes for v4.16-rc1
Hello, Linus.
One trivial patch to convert the return type from int to bool.
Thanks.
The following changes since commit 032b4cc8ff84490c4bc7c4ef8c91e6d83a637538:
Merge tag 'pm-4.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm (2017-12-14 18:25:03 -0800)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git for-4.16
for you to fetch changes up to 85dcbba3b8b15c17d3237695440d09d12825184d:
percpu: percpu_counter_initialized can be boolean (2017-12-15 05:28:06 -0800)
----------------------------------------------------------------
guoyayun (1):
percpu: percpu_counter_initialized can be boolean
include/linux/percpu_counter.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/percpu_counter.h b/include/linux/percpu_counter.h
index 73a7bf3..4f05249 100644
--- a/include/linux/percpu_counter.h
+++ b/include/linux/percpu_counter.h
@@ -86,7 +86,7 @@ static inline s64 percpu_counter_read_positive(struct percpu_counter *fbc)
return 0;
}
-static inline int percpu_counter_initialized(struct percpu_counter *fbc)
+static inline bool percpu_counter_initialized(struct percpu_counter *fbc)
{
return (fbc->counters != NULL);
}
@@ -167,9 +167,9 @@ static inline s64 percpu_counter_sum(struct percpu_counter *fbc)
return percpu_counter_read(fbc);
}
-static inline int percpu_counter_initialized(struct percpu_counter *fbc)
+static inline bool percpu_counter_initialized(struct percpu_counter *fbc)
{
- return 1;
+ return true;
}
#endif /* CONFIG_SMP */
--
tejun
Powered by blists - more mailing lists