Skip to content

RFC headers: Consolidate once/cond style macros

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3core: New macro to execute code only onceinclude/linux/once.h+26 -00 replies
2/3core: Convert printk_once to use DO_ONCEinclude/linux/printk.h+2 -86 replies
3/3bug: Convert warn macros to use once and cond helpersinclude/asm-generic/bug.h+12 -450 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] headers: Consolidate once/cond style macros

So here is the patchses I had in some branches for a little while. Please double check especially the 3rd patch because it removes the use of .data.unlikely for WARN_ON_ONCE.

I'm not sure this section for the "done" state is something we also want for printk_once(). What do you think?

Thanks.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
core/once

Thanks,
Frederic
---

Frederic Weisbecker (3):
core: New macro to execute code only once
core: Convert printk_once to use DO_ONCE
bug: Convert warn macros to use once and cond helpers

 include/asm-generic/bug.h | 57 ++++++++++-------------------------------------
 include/linux/once.h      | 26 +++++++++++++++++++++
 include/linux/printk.h    | 10 ++-------
 3 files changed, 40 insertions(+), 53 deletions(-)