net/ena: fix build with GCC 12