From: Randy Dunlap <rdunlap@infradead.org>
To: LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Fengguang Wu <fengguang.wu@intel.com>,
Andi Kleen <ak@linux.intel.com>
Subject: [PATCH mmotm] lib/bug.c: fix build when MODULES are not enabled
Date: Fri, 20 Oct 2017 16:53:50 -0700 [thread overview]
Message-ID: <a6fd1a63-467b-5b72-aa83-b7e8be026367@infradead.org> (raw)
From: Randy Dunlap <rdunlap@infradead.org>
Fix build when CONFIG_MODULES is not enabled.
Fixes multiple build errors.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
---
lib/bug.c | 2 ++
1 file changed, 2 insertions(+)
--- mmotm-2017-1019-1700.orig/lib/bug.c
+++ mmotm-2017-1019-1700/lib/bug.c
@@ -206,6 +206,7 @@ static void clear_once_table(struct bug_
void generic_bug_clear_once(void)
{
+#ifdef CONFIG_MODULES
struct module *mod;
rcu_read_lock_sched();
@@ -213,6 +214,7 @@ void generic_bug_clear_once(void)
clear_once_table(mod->bug_table,
mod->bug_table + mod->num_bugs);
rcu_read_unlock_sched();
+#endif
clear_once_table(__start___bug_table, __stop___bug_table);
}
next reply other threads:[~2017-10-20 23:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-20 23:53 Randy Dunlap [this message]
2017-10-21 3:09 ` [PATCH mmotm] lib/bug.c: fix build when MODULES are not enabled Andi Kleen
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=a6fd1a63-467b-5b72-aa83-b7e8be026367@infradead.org \
--to=rdunlap@infradead.org \
--cc=ak@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=fengguang.wu@intel.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.