linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] module: add stub for within_module
@ 2019-04-07  2:25 Tri Vo
  2019-04-08 18:08 ` Nick Desaulniers
  0 siblings, 1 reply; 10+ messages in thread
From: Tri Vo @ 2019-04-07  2:25 UTC (permalink / raw)
  To: oberpar, akpm, jeyu
  Cc: ndesaulniers, ghackmann, linux-mm, kbuild-all, rdunlap, lkp,
	linux-kernel, pgynther, willy, Tri Vo

Provide a stub for within_module() when CONFIG_MODULES is not set. This
is needed to build CONFIG_GCOV_KERNEL.

Fixes: 8c3d220cb6b5 ("gcov: clang support")
Suggested-by: Matthew Wilcox <willy@infradead.org>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kbuild test robot <lkp@intel.com>
Link: https://marc.info/?l=linux-mm&m=155384681109231&w=2
Signed-off-by: Tri Vo <trong@android.com>
---
 include/linux/module.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/module.h b/include/linux/module.h
index 5bf5dcd91009..47190ebb70bf 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -709,6 +709,11 @@ static inline bool is_module_text_address(unsigned long addr)
 	return false;
 }
 
+static inline bool within_module(unsigned long addr, const struct module *mod)
+{
+	return false;
+}
+
 /* Get/put a kernel symbol (calls should be symmetric) */
 #define symbol_get(x) ({ extern typeof(x) x __attribute__((weak)); &(x); })
 #define symbol_put(x) do { } while (0)
-- 
2.21.0.392.gf8f6787159e-goog


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

end of thread, other threads:[~2019-04-17  9:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-07  2:25 [PATCH] module: add stub for within_module Tri Vo
2019-04-08 18:08 ` Nick Desaulniers
2019-04-08 18:11   ` Nick Desaulniers
2019-04-15 14:22   ` Jessica Yu
2019-04-15 18:18     ` [PATCH v2] module: add stubs for within_module functions Tri Vo
2019-04-16 15:21       ` Jessica Yu
2019-04-16 17:55         ` Tri Vo
2019-04-16 18:56           ` Tri Vo
2019-04-16 21:38             ` Andrew Morton
2019-04-17  8:59               ` Jessica Yu

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).