* [GIT PULL] percpu changes for v4.16-rc1
@ 2018-01-30 18:28 Tejun Heo
0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2018-01-30 18:28 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel, Christoph Lameter
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-30 18:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-30 18:28 [GIT PULL] percpu changes for v4.16-rc1 Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox