Re: [PATCH] selftests/futex: Give circular-list nodes static storage
From: André Almeida
Date: Tue Jul 14 2026 - 10:17:52 EST
Em 11/07/2026 23:47, Miles Krause via B4 Relay escreveu:
From: Miles Krause <mileskrause5200@xxxxxxxxx>Reviewed-by: André Almeida <andrealmeid@xxxxxxxxxx>
The registered robust-list head has static storage but points at three
automatic lock nodes. GCC warns about storing the address of a local
variable in the static head when building the selftest with -Wall.
Give the nodes static storage as well. This keeps every object in the
circular list alive through child exit without changing the list topology.
Signed-off-by: Miles Krause <mileskrause5200@xxxxxxxxx>