linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/1] mapple_tree: Fix build error (`make W=1`)
@ 2025-09-04  9:04 Andy Shevchenko
  2025-09-04 13:32 ` Liam R. Howlett
  0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2025-09-04  9:04 UTC (permalink / raw)
  To: Liam R. Howlett, Andrew Morton, linux-kernel, maple-tree, linux-mm, llvm
  Cc: Liam R. Howlett, Nathan Chancellor, Nick Desaulniers,
	Bill Wendling, Justin Stitt, Andy Shevchenko

clang complains about unused function:

lib/maple_tree.c:179:19: error: unused function 'mt_alloc_bulk' [-Werror,-Wunused-function]

Fix this by removing unused code.

Fixes: a48d52b2d21b ("maple_tree: Convert forking to use the sheaf interface")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 lib/maple_tree.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index fce329d6c1b2..ca8b3c2e0362 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -176,11 +176,6 @@ static inline struct maple_node *mt_alloc_one(gfp_t gfp)
 	return kmem_cache_alloc(maple_node_cache, gfp);
 }
 
-static inline int mt_alloc_bulk(gfp_t gfp, size_t size, void **nodes)
-{
-	return kmem_cache_alloc_bulk(maple_node_cache, gfp, size, nodes);
-}
-
 static inline void mt_free_bulk(size_t size, void __rcu **nodes)
 {
 	kmem_cache_free_bulk(maple_node_cache, size, (void **)nodes);
-- 
2.50.1



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

* Re: [PATCH v1 1/1] mapple_tree: Fix build error (`make W=1`)
  2025-09-04  9:04 [PATCH v1 1/1] mapple_tree: Fix build error (`make W=1`) Andy Shevchenko
@ 2025-09-04 13:32 ` Liam R. Howlett
  2025-09-04 13:37   ` Andy Shevchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Liam R. Howlett @ 2025-09-04 13:32 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andrew Morton, linux-kernel, maple-tree, linux-mm, llvm,
	Nathan Chancellor, Nick Desaulniers, Bill Wendling, Justin Stitt

* Andy Shevchenko <andriy.shevchenko@linux.intel.com> [250904 05:04]:
> clang complains about unused function:
> 
> lib/maple_tree.c:179:19: error: unused function 'mt_alloc_bulk' [-Werror,-Wunused-function]
> 
> Fix this by removing unused code.
> 
> Fixes: a48d52b2d21b ("maple_tree: Convert forking to use the sheaf interface")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Thanks.  This should be squashed into the patch listed in the fixes tag
since it's not a stable commit yet.

> ---
>  lib/maple_tree.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/lib/maple_tree.c b/lib/maple_tree.c
> index fce329d6c1b2..ca8b3c2e0362 100644
> --- a/lib/maple_tree.c
> +++ b/lib/maple_tree.c
> @@ -176,11 +176,6 @@ static inline struct maple_node *mt_alloc_one(gfp_t gfp)
>  	return kmem_cache_alloc(maple_node_cache, gfp);
>  }
>  
> -static inline int mt_alloc_bulk(gfp_t gfp, size_t size, void **nodes)
> -{
> -	return kmem_cache_alloc_bulk(maple_node_cache, gfp, size, nodes);
> -}
> -
>  static inline void mt_free_bulk(size_t size, void __rcu **nodes)
>  {
>  	kmem_cache_free_bulk(maple_node_cache, size, (void **)nodes);
> -- 
> 2.50.1
> 


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

* Re: [PATCH v1 1/1] mapple_tree: Fix build error (`make W=1`)
  2025-09-04 13:32 ` Liam R. Howlett
@ 2025-09-04 13:37   ` Andy Shevchenko
  2025-09-04 13:42     ` Liam R. Howlett
  0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2025-09-04 13:37 UTC (permalink / raw)
  To: Liam R. Howlett, Andrew Morton, linux-kernel, maple-tree,
	linux-mm, llvm, Nathan Chancellor, Nick Desaulniers,
	Bill Wendling, Justin Stitt

On Thu, Sep 04, 2025 at 09:32:52AM -0400, Liam R. Howlett wrote:
> * Andy Shevchenko <andriy.shevchenko@linux.intel.com> [250904 05:04]:
> > clang complains about unused function:
> > 
> > lib/maple_tree.c:179:19: error: unused function 'mt_alloc_bulk' [-Werror,-Wunused-function]
> > 
> > Fix this by removing unused code.
> > 
> > Fixes: a48d52b2d21b ("maple_tree: Convert forking to use the sheaf interface")
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> Thanks.  This should be squashed into the patch listed in the fixes tag
> since it's not a stable commit yet.

I fine with any solution, I just want this to be fixes rather sooner. So, please go ahead!

-- 
With Best Regards,
Andy Shevchenko




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

* Re: [PATCH v1 1/1] mapple_tree: Fix build error (`make W=1`)
  2025-09-04 13:37   ` Andy Shevchenko
@ 2025-09-04 13:42     ` Liam R. Howlett
  2025-09-04 13:54       ` Andy Shevchenko
  2025-09-04 15:12       ` Vlastimil Babka
  0 siblings, 2 replies; 6+ messages in thread
From: Liam R. Howlett @ 2025-09-04 13:42 UTC (permalink / raw)
  To: Andy Shevchenko, Vlastimil Babka
  Cc: Andrew Morton, linux-kernel, maple-tree, linux-mm, llvm,
	Nathan Chancellor, Nick Desaulniers, Bill Wendling, Justin Stitt

* Andy Shevchenko <andriy.shevchenko@linux.intel.com> [250904 09:37]:
> On Thu, Sep 04, 2025 at 09:32:52AM -0400, Liam R. Howlett wrote:
> > * Andy Shevchenko <andriy.shevchenko@linux.intel.com> [250904 05:04]:
> > > clang complains about unused function:
> > > 
> > > lib/maple_tree.c:179:19: error: unused function 'mt_alloc_bulk' [-Werror,-Wunused-function]
> > > 
> > > Fix this by removing unused code.
> > > 
> > > Fixes: a48d52b2d21b ("maple_tree: Convert forking to use the sheaf interface")
> > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > 
> > Thanks.  This should be squashed into the patch listed in the fixes tag
> > since it's not a stable commit yet.
> 
> I fine with any solution, I just want this to be fixes rather sooner. So, please go ahead!

Sounds good.  I've added Vlastimil to the email as it went through his
branch.

Can you please Cc the SoB people next time?

Thanks,
Liam


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

* Re: [PATCH v1 1/1] mapple_tree: Fix build error (`make W=1`)
  2025-09-04 13:42     ` Liam R. Howlett
@ 2025-09-04 13:54       ` Andy Shevchenko
  2025-09-04 15:12       ` Vlastimil Babka
  1 sibling, 0 replies; 6+ messages in thread
From: Andy Shevchenko @ 2025-09-04 13:54 UTC (permalink / raw)
  To: Liam R. Howlett, Vlastimil Babka, Andrew Morton, linux-kernel,
	maple-tree, linux-mm, llvm, Nathan Chancellor, Nick Desaulniers,
	Bill Wendling, Justin Stitt

On Thu, Sep 04, 2025 at 09:42:53AM -0400, Liam R. Howlett wrote:
> * Andy Shevchenko <andriy.shevchenko@linux.intel.com> [250904 09:37]:
> > On Thu, Sep 04, 2025 at 09:32:52AM -0400, Liam R. Howlett wrote:
> > > * Andy Shevchenko <andriy.shevchenko@linux.intel.com> [250904 05:04]:
> > > > clang complains about unused function:
> > > > 
> > > > lib/maple_tree.c:179:19: error: unused function 'mt_alloc_bulk' [-Werror,-Wunused-function]
> > > > 
> > > > Fix this by removing unused code.
> > > > 
> > > > Fixes: a48d52b2d21b ("maple_tree: Convert forking to use the sheaf interface")
> > > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > > 
> > > Thanks.  This should be squashed into the patch listed in the fixes tag
> > > since it's not a stable commit yet.
> > 
> > I fine with any solution, I just want this to be fixes rather sooner. So, please go ahead!
> 
> Sounds good.  I've added Vlastimil to the email as it went through his
> branch.
> 
> Can you please Cc the SoB people next time?

I will try to remember. I used get_maintainers.pl. If it's not enough,
can we got this documented somehow? Or if it's already documented,
can you point out to it?

-- 
With Best Regards,
Andy Shevchenko




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

* Re: [PATCH v1 1/1] mapple_tree: Fix build error (`make W=1`)
  2025-09-04 13:42     ` Liam R. Howlett
  2025-09-04 13:54       ` Andy Shevchenko
@ 2025-09-04 15:12       ` Vlastimil Babka
  1 sibling, 0 replies; 6+ messages in thread
From: Vlastimil Babka @ 2025-09-04 15:12 UTC (permalink / raw)
  To: Liam R. Howlett, Andy Shevchenko, Andrew Morton, linux-kernel,
	maple-tree, linux-mm, llvm, Nathan Chancellor, Nick Desaulniers,
	Bill Wendling, Justin Stitt

On 9/4/25 15:42, Liam R. Howlett wrote:
> * Andy Shevchenko <andriy.shevchenko@linux.intel.com> [250904 09:37]:
>> On Thu, Sep 04, 2025 at 09:32:52AM -0400, Liam R. Howlett wrote:
>> > * Andy Shevchenko <andriy.shevchenko@linux.intel.com> [250904 05:04]:
>> > > clang complains about unused function:
>> > > 
>> > > lib/maple_tree.c:179:19: error: unused function 'mt_alloc_bulk' [-Werror,-Wunused-function]
>> > > 
>> > > Fix this by removing unused code.
>> > > 
>> > > Fixes: a48d52b2d21b ("maple_tree: Convert forking to use the sheaf interface")
>> > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>> > 
>> > Thanks.  This should be squashed into the patch listed in the fixes tag
>> > since it's not a stable commit yet.
>> 
>> I fine with any solution, I just want this to be fixes rather sooner. So, please go ahead!
> 
> Sounds good.  I've added Vlastimil to the email as it went through his
> branch.

Squashing into the tomorrow's linux-next release, thanks.

> Can you please Cc the SoB people next time?
> 
> Thanks,
> Liam



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

end of thread, other threads:[~2025-09-04 15:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-04  9:04 [PATCH v1 1/1] mapple_tree: Fix build error (`make W=1`) Andy Shevchenko
2025-09-04 13:32 ` Liam R. Howlett
2025-09-04 13:37   ` Andy Shevchenko
2025-09-04 13:42     ` Liam R. Howlett
2025-09-04 13:54       ` Andy Shevchenko
2025-09-04 15:12       ` Vlastimil Babka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox