lkml.org 
[lkml]   [2017]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH mmotm] lib/bug.c: fix build when MODULES are not enabled
Date
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);
}

\
 
 \ /
  Last update: 2017-10-22 17:47    [W:0.039 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site