diff mbox series

[1/2] alloc_tag: export mem_alloc_profiling_key used by modules

Message ID 20240717011631.2150066-1-surenb@google.com (mailing list archive)
State New
Headers show
Series [1/2] alloc_tag: export mem_alloc_profiling_key used by modules | expand

Commit Message

Suren Baghdasaryan July 17, 2024, 1:16 a.m. UTC
Export mem_alloc_profiling_key as it is used by modules (indirectly via
mem_alloc_profiling_enabled()).

Fixes: 22d407b164ff ("lib: add allocation tagging support for memory allocation profiling")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407080044.DWMC9N9I-lkp@intel.com/
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
---
 lib/alloc_tag.c | 1 +
 1 file changed, 1 insertion(+)


base-commit: 0434dbe32053d07d658165be681505120c6b1abc

Comments

Suren Baghdasaryan July 17, 2024, 1:25 a.m. UTC | #1
On Tue, Jul 16, 2024 at 6:16 PM Suren Baghdasaryan <surenb@google.com> wrote:
>
> Export mem_alloc_profiling_key as it is used by modules (indirectly via
> mem_alloc_profiling_enabled()).
>
> Fixes: 22d407b164ff ("lib: add allocation tagging support for memory allocation profiling")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202407080044.DWMC9N9I-lkp@intel.com/
> Signed-off-by: Suren Baghdasaryan <surenb@google.com>

This patchset should replace
https://lore.kernel.org/all/20240711204626.1669138-1-surenb@google.com
patch which was objected to by Christoph. I think this version should
be acceptable.
Thanks,
Suren.

> ---
>  lib/alloc_tag.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lib/alloc_tag.c b/lib/alloc_tag.c
> index 81e5f9a70f22..832f79a32b3e 100644
> --- a/lib/alloc_tag.c
> +++ b/lib/alloc_tag.c
> @@ -15,6 +15,7 @@ EXPORT_SYMBOL(_shared_alloc_tag);
>
>  DEFINE_STATIC_KEY_MAYBE(CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT,
>                         mem_alloc_profiling_key);
> +EXPORT_SYMBOL(mem_alloc_profiling_key);
>
>  struct allocinfo_private {
>         struct codetag_iterator iter;
>
> base-commit: 0434dbe32053d07d658165be681505120c6b1abc
> --
> 2.45.2.993.g49e7a77208-goog
>
Vlastimil Babka July 17, 2024, 9:25 a.m. UTC | #2
On 7/17/24 3:16 AM, Suren Baghdasaryan wrote:
> Export mem_alloc_profiling_key as it is used by modules (indirectly via
> mem_alloc_profiling_enabled()).
> 
> Fixes: 22d407b164ff ("lib: add allocation tagging support for memory allocation profiling")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202407080044.DWMC9N9I-lkp@intel.com/
> Signed-off-by: Suren Baghdasaryan <surenb@google.com>

Acked-by: Vlastimil Babka <vbabka@suse.cz>

> ---
>  lib/alloc_tag.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/alloc_tag.c b/lib/alloc_tag.c
> index 81e5f9a70f22..832f79a32b3e 100644
> --- a/lib/alloc_tag.c
> +++ b/lib/alloc_tag.c
> @@ -15,6 +15,7 @@ EXPORT_SYMBOL(_shared_alloc_tag);
>  
>  DEFINE_STATIC_KEY_MAYBE(CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT,
>  			mem_alloc_profiling_key);
> +EXPORT_SYMBOL(mem_alloc_profiling_key);
>  
>  struct allocinfo_private {
>  	struct codetag_iterator iter;
> 
> base-commit: 0434dbe32053d07d658165be681505120c6b1abc
diff mbox series

Patch

diff --git a/lib/alloc_tag.c b/lib/alloc_tag.c
index 81e5f9a70f22..832f79a32b3e 100644
--- a/lib/alloc_tag.c
+++ b/lib/alloc_tag.c
@@ -15,6 +15,7 @@  EXPORT_SYMBOL(_shared_alloc_tag);
 
 DEFINE_STATIC_KEY_MAYBE(CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT,
 			mem_alloc_profiling_key);
+EXPORT_SYMBOL(mem_alloc_profiling_key);
 
 struct allocinfo_private {
 	struct codetag_iterator iter;