Hi,

In the course of adding jump label support to dynamic_debug (patch #3), I
found the inclusion of <linux/bug.h> by <linux/jump_label.h> to problematic b/c
it includes <linux/kernel.h> (thus, creating circular include dependencies).
Thus, patch #1 splits jump_label.h such that 'struct static_key' and
static_branch_[un]likely() can be used with minimail dependencies. I think this
is consistent with how this facility is often used, and should be useful for
other use-cases as well.

Patch #2 was required to get powerpc to compile.

Thanks,

-Jason


Jason Baron (3):
  jump_label: create jump_label_branch.h
  powerpc: add explicit #include <asm/asm-compat.h> for jump label
  dynamic_debug: add jump label support

 arch/powerpc/include/asm/jump_label.h |   1 +
 include/linux/dynamic_debug.h         |  54 ++++++++-
 include/linux/jump_label.h            | 181 +------------------------------
 include/linux/jump_label_branch.h     | 199 ++++++++++++++++++++++++++++++++++
 lib/dynamic_debug.c                   |   7 ++
 5 files changed, 260 insertions(+), 182 deletions(-)
 create mode 100644 include/linux/jump_label_branch.h

-- 
2.6.1

Reply via email to