Re: [PATCH 6.12 289/337] mm/slab: prevent unbounded recursion in free path with new kmalloc type

Sasha Levin <[email protected]>
Newsgroups dev.linux.lists.patches,org.kernel.vger.stable
Message-ID <[email protected]>
On Fri, Aug 07, 2026 at 11:02:45AM -0700, Nathan Chancellor wrote:
>   linux/mm/slab.h:572:24: error: duplicate 'inline' declaration specifier [-Werror,-Wduplicate-decl-specifier]
>     572 | static __always_inline inline bool need_kmalloc_no_objext(void)
> 
> The 'inline' should be dropped, as '__always_inline' includes 'inline'
> already.

Fixed in the queue - I dropped the redundant 'inline' and kept
'__always_inline', so the 6.12 backport now reads:

  static __always_inline bool need_kmalloc_no_objext(void)

-- 
Thanks,
Sasha
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.