All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mmotm] lib/bug.c: fix build when MODULES are not enabled
@ 2017-10-20 23:53 Randy Dunlap
  2017-10-21  3:09 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2017-10-20 23:53 UTC (permalink / raw)
  To: LKML, Andrew Morton, Fengguang Wu, Andi Kleen

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);
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH mmotm] lib/bug.c: fix build when MODULES are not enabled
  2017-10-20 23:53 [PATCH mmotm] lib/bug.c: fix build when MODULES are not enabled Randy Dunlap
@ 2017-10-21  3:09 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2017-10-21  3:09 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: LKML, Andrew Morton, Fengguang Wu

On Fri, Oct 20, 2017 at 04:53:50PM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
> 
> Fix build when CONFIG_MODULES is not enabled.
> Fixes multiple build errors.

Thanks. I already sent a patch earlier.

-Andi
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Cc: Andi Kleen <ak@linux.intel.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-21  3:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-20 23:53 [PATCH mmotm] lib/bug.c: fix build when MODULES are not enabled Randy Dunlap
2017-10-21  3:09 ` Andi Kleen

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.