[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190407022558.65489-1-trong@android.com>
Date: Sat, 6 Apr 2019 19:25:58 -0700
From: Tri Vo <trong@...roid.com>
To: oberpar@...ux.ibm.com, akpm@...ux-foundation.org, jeyu@...nel.org
Cc: ndesaulniers@...gle.com, ghackmann@...roid.com, linux-mm@...ck.org,
kbuild-all@...org, rdunlap@...radead.org, lkp@...el.com,
linux-kernel@...r.kernel.org, pgynther@...gle.com,
willy@...radead.org, Tri Vo <trong@...roid.com>
Subject: [PATCH] module: add stub for within_module
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@...radead.org>
Reported-by: Randy Dunlap <rdunlap@...radead.org>
Reported-by: kbuild test robot <lkp@...el.com>
Link: https://marc.info/?l=linux-mm&m=155384681109231&w=2
Signed-off-by: Tri Vo <trong@...roid.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
Powered by blists - more mailing lists