All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] man/man2/futex_waitv.2: Fix example compilation
@ 2026-08-13 16:06 André Almeida
  2026-08-22 13:58 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: André Almeida @ 2026-08-13 16:06 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man, nabijaczleweli, André Almeida

The example doesn't compile because it calls the undefined function
my_futex_wait_private(), which should be my_futex_wake_private().

Signed-off-by: André Almeida <andrealmeid@igalia.com>
---
 man/man2/futex_waitv.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/man2/futex_waitv.2 b/man/man2/futex_waitv.2
index 9dfad84ce..4158f297d 100644
--- a/man/man2/futex_waitv.2
+++ b/man/man2/futex_waitv.2
@@ -352,7 +352,7 @@ worker(void *arg)
 \&
 	usleep(*futex * 10000);
 	*futex *= 2;
-	my_futex_wait_private(futex, 1);
+	my_futex_wake_private(futex, 1);
 	return NULL;
 }
 \&
-- 
2.55.0


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

* Re: [PATCH] man/man2/futex_waitv.2: Fix example compilation
  2026-08-13 16:06 [PATCH] man/man2/futex_waitv.2: Fix example compilation André Almeida
@ 2026-08-22 13:58 ` Alejandro Colomar
  0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar @ 2026-08-22 13:58 UTC (permalink / raw)
  To: André Almeida; +Cc: linux-man, nabijaczleweli

[-- Attachment #1: Type: text/plain, Size: 900 bytes --]

Hi André,

> Date: 2026-08-13 13:06:19-0300
> From: André Almeida <andrealmeid@igalia.com>
>
> The example doesn't compile because it calls the undefined function
> my_futex_wait_private(), which should be my_futex_wake_private().
> 
> Signed-off-by: André Almeida <andrealmeid@igalia.com>

Thanks!  I've applied the patch.


Have a lovely day!
Alex

> ---
>  man/man2/futex_waitv.2 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man/man2/futex_waitv.2 b/man/man2/futex_waitv.2
> index 9dfad84ce..4158f297d 100644
> --- a/man/man2/futex_waitv.2
> +++ b/man/man2/futex_waitv.2
> @@ -352,7 +352,7 @@ worker(void *arg)
>  \&
>  	usleep(*futex * 10000);
>  	*futex *= 2;
> -	my_futex_wait_private(futex, 1);
> +	my_futex_wake_private(futex, 1);
>  	return NULL;
>  }
>  \&
> -- 
> 2.55.0
> 
> 

-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2026-08-22 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 16:06 [PATCH] man/man2/futex_waitv.2: Fix example compilation André Almeida
2026-08-22 13:58 ` Alejandro Colomar

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.