aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dynamic_debug.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/dynamic_debug.h b/include/linux/dynamic_debug.h
index b17725400f75..3f8977cfa479 100644
--- a/include/linux/dynamic_debug.h
+++ b/include/linux/dynamic_debug.h
@@ -47,10 +47,10 @@ struct _ddebug {
47} __attribute__((aligned(8))); 47} __attribute__((aligned(8)));
48 48
49 49
50int ddebug_add_module(struct _ddebug *tab, unsigned int n,
51 const char *modname);
52 50
53#if defined(CONFIG_DYNAMIC_DEBUG) 51#if defined(CONFIG_DYNAMIC_DEBUG)
52int ddebug_add_module(struct _ddebug *tab, unsigned int n,
53 const char *modname);
54extern int ddebug_remove_module(const char *mod_name); 54extern int ddebug_remove_module(const char *mod_name);
55extern __printf(2, 3) 55extern __printf(2, 3)
56void __dynamic_pr_debug(struct _ddebug *descriptor, const char *fmt, ...); 56void __dynamic_pr_debug(struct _ddebug *descriptor, const char *fmt, ...);
@@ -152,6 +152,12 @@ do { \
152#include <linux/string.h> 152#include <linux/string.h>
153#include <linux/errno.h> 153#include <linux/errno.h>
154 154
155static inline int ddebug_add_module(struct _ddebug *tab, unsigned int n,
156 const char *modname)
157{
158 return 0;
159}
160
155static inline int ddebug_remove_module(const char *mod) 161static inline int ddebug_remove_module(const char *mod)
156{ 162{
157 return 0; 163 return 0;