percpu changes for v4.16-rc1
Tejun Heo
maintainerHello, 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(-)
include/linux/percpu_counter.h +3 -3
@@ -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 */
Signature · 1 line
tejun