On Sun, Nov 29, 2026 at 04:27:16PM -0800, Stephen Hemminger wrote: > rxa_intr_thread() and vhost_user_client_reconnect() loop forever, > so the return after the loop can never be reached and clang > reports it with -Wunreachable-code-aggressive. > > Removing the return is not enough: GCC does not notice that the > loop never exits and warns that a non void function has no return > statement. Mark both functions __rte_noreturn instead, which is > what they are, and drop the dead return. > > Signed-off-by: Stephen Hemminger <[email protected]> > --- > lib/eventdev/rte_event_eth_rx_adapter.c | 4 +--- > lib/vhost/socket.c | 4 +--- > 2 files changed, 2 insertions(+), 6 deletions(-) > Acked-by: Bruce Richardson <[email protected]>
- [PATCH 19/37] net/qede: disable unreachable code checks Stephen Hemminger
- [PATCH 27/37] net/ice: disable unreachable code check fo... Stephen Hemminger
- Re: [PATCH 27/37] net/ice: disable unreachable code... Bruce Richardson
- [PATCH 25/37] net/dpaa2: check port state before changin... Stephen Hemminger
- [PATCH 28/37] raw/ifpga: disable unreachable code check ... Stephen Hemminger
- Re: [PATCH 28/37] raw/ifpga: disable unreachable co... Bruce Richardson
- [PATCH 21/37] net/ixgbe: disable unreachable code check Stephen Hemminger
- Re: [PATCH 21/37] net/ixgbe: disable unreachable co... Bruce Richardson
- [PATCH 30/37] net/ntnic: disable unreachable code check Stephen Hemminger
- [PATCH 31/37] lib: mark never returning thread functions Stephen Hemminger
- Re: [PATCH 31/37] lib: mark never returning thread ... Bruce Richardson
- [PATCH 23/37] net/octeontx: replace unreachable code Stephen Hemminger
- [PATCH 32/37] lib: remove unreachable statements Stephen Hemminger
- [PATCH 33/37] app: remove unreachable statements Stephen Hemminger
- [PATCH 34/37] examples: remove unreachable statements Stephen Hemminger
- Re: [PATCH 34/37] examples: remove unreachable stat... Bruce Richardson
- [PATCH 35/37] drivers: remove unreachable statements Stephen Hemminger
- RE: [PATCH 35/37] drivers: remove unreachable state... Dariusz Sosnowski
- [PATCH 36/37] efd: mark configuration dependent vector s... Stephen Hemminger
- [PATCH 37/37] config: enable unreachable code detection Stephen Hemminger
- [PATCH 02/37] net/mlx5: fix unreachable code warnings Stephen Hemminger

