All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG
@ 2021-05-26  7:03 Randy Dunlap
  2021-05-26 22:20 ` Max Filippov
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2021-05-26  7:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: Randy Dunlap, Max Filippov, Chris Zankel, linux-xtensa

XTENSA should only select HAVE_FUTEX_CMPXCHG when FUTEX is
set/enabled. This prevents a kconfig warning.

WARNING: unmet direct dependencies detected for HAVE_FUTEX_CMPXCHG
  Depends on [n]: FUTEX [=n]
  Selected by [y]:
  - XTENSA [=y] && !MMU [=n]

Fixes: d951ba21b959 ("xtensa: nommu: select HAVE_FUTEX_CMPXCHG")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: linux-xtensa@linux-xtensa.org
---
 arch/xtensa/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20210525.orig/arch/xtensa/Kconfig
+++ linux-next-20210525/arch/xtensa/Kconfig
@@ -30,7 +30,7 @@ config XTENSA
 	select HAVE_DMA_CONTIGUOUS
 	select HAVE_EXIT_THREAD
 	select HAVE_FUNCTION_TRACER
-	select HAVE_FUTEX_CMPXCHG if !MMU
+	select HAVE_FUTEX_CMPXCHG if !MMU && FUTEX
 	select HAVE_HW_BREAKPOINT if PERF_EVENTS
 	select HAVE_IRQ_TIME_ACCOUNTING
 	select HAVE_PCI

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

* Re: [PATCH] xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG
  2021-05-26  7:03 [PATCH] xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG Randy Dunlap
@ 2021-05-26 22:20 ` Max Filippov
  0 siblings, 0 replies; 2+ messages in thread
From: Max Filippov @ 2021-05-26 22:20 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: LKML, Chris Zankel, open list:TENSILICA XTENSA PORT (xtensa)

On Wed, May 26, 2021 at 12:03 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>
> XTENSA should only select HAVE_FUTEX_CMPXCHG when FUTEX is
> set/enabled. This prevents a kconfig warning.
>
> WARNING: unmet direct dependencies detected for HAVE_FUTEX_CMPXCHG
>   Depends on [n]: FUTEX [=n]
>   Selected by [y]:
>   - XTENSA [=y] && !MMU [=n]
>
> Fixes: d951ba21b959 ("xtensa: nommu: select HAVE_FUTEX_CMPXCHG")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Max Filippov <jcmvbkbc@gmail.com>
> Cc: Chris Zankel <chris@zankel.net>
> Cc: linux-xtensa@linux-xtensa.org
> ---
>  arch/xtensa/Kconfig |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied to my xtensa tree.

-- Max

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

end of thread, other threads:[~2021-05-26 22:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26  7:03 [PATCH] xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG Randy Dunlap
2021-05-26 22:20 ` Max Filippov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.