[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250714143705.GG1870174@ziepe.ca>
Date: Mon, 14 Jul 2025 11:37:05 -0300
From: Jason Gunthorpe <jgg@...pe.ca>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Leon Romanovsky <leon@...nel.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev,
Jérôme Glisse <jglisse@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>
Subject: Re: [PATCH v1 1/1] locking/lockdep: Move pmd_to_hmm_pfn_flags() to
the respective #ifdeffery
On Thu, Jul 10, 2025 at 11:22:57AM +0300, Andy Shevchenko wrote:
> When pmd_to_hmm_pfn_flags() is unused, it prevents kernel builds with clang,
> `make W=1` and CONFIG_TRANSPARENT_HUGEPAGE=n:
>
> mm/hmm.c:186:29: warning: unused function 'pmd_to_hmm_pfn_flags' [-Wunused-function]
>
> Fix this by moving the function to the respective existing ifdeffery
> for its the only user.
>
> See also:
>
> 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build")
>
> Fixes: 9d3973d60f0a ("mm/hmm: cleanup the hmm_vma_handle_pmd stub")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> ---
> mm/hmm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Jason Gunthorpe <jgg@...dia.com>
Jason
Powered by blists - more mailing lists