From: Xin He <hexin.op@bytedance.com>
To: tglx@linutronix.de, keescook@chromium.org, swboyd@chromium.org
Cc: linux-kernel@vger.kernel.org, Xin He <hexin.op@bytedance.com>
Subject: [PATCH] debugobjects: add missing empty function debug_object_active_state()
Date: Thu, 17 Jun 2021 15:10:27 +0800 [thread overview]
Message-ID: <20210617071027.60278-1-hexin.op@bytedance.com> (raw)
All other functions are defined for when CONFIG_DEBUG_OBJECTS
is not set.
Signed-off-by: Xin He <hexin.op@bytedance.com>
---
include/linux/debugobjects.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/debugobjects.h b/include/linux/debugobjects.h
index 8d2dde23e9fb..af0d73d8d29b 100644
--- a/include/linux/debugobjects.h
+++ b/include/linux/debugobjects.h
@@ -99,6 +99,9 @@ static inline void
debug_object_free (void *addr, const struct debug_obj_descr *descr) { }
static inline void
debug_object_assert_init(void *addr, const struct debug_obj_descr *descr) { }
+static inline void
+debug_object_active_state(void *addr, const struct debug_obj_descr *descr,
+ unsigned int expect, unsigned int next) { }
static inline void debug_objects_early_init(void) { }
static inline void debug_objects_mem_init(void) { }
--
2.20.1
next reply other threads:[~2021-06-17 7:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-17 7:10 Xin He [this message]
2021-06-19 5:03 ` [PATCH] debugobjects: add missing empty function debug_object_active_state() Stephen Boyd
2021-06-19 16:47 ` Thomas Gleixner
2021-06-20 5:52 ` [External] " 何鑫
2021-06-20 11:09 ` Thomas Gleixner
2021-06-20 5:40 ` 何鑫
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210617071027.60278-1-hexin.op@bytedance.com \
--to=hexin.op@bytedance.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=swboyd@chromium.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).