[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <a6fd1a63-467b-5b72-aa83-b7e8be026367@infradead.org>
Date: Fri, 20 Oct 2017 16:53:50 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Fengguang Wu <fengguang.wu@...el.com>,
Andi Kleen <ak@...ux.intel.com>
Subject: [PATCH mmotm] lib/bug.c: fix build when MODULES are not enabled
From: Randy Dunlap <rdunlap@...radead.org>
Fix build when CONFIG_MODULES is not enabled.
Fixes multiple build errors.
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Reported-by: kbuild test robot <fengguang.wu@...el.com>
Cc: Andi Kleen <ak@...ux.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);
}
Powered by blists - more mailing lists