Am 25.11.2022 um 18:53 hat Philippe Mathieu-Daudé geschrieben: > The inlined nbd_readXX() functions call beXX_to_cpu(), themselves > declared in <qemu/bswap.h>. This fixes when refactoring: > > In file included from ../../block/nbd.c:44: > include/block/nbd.h: In function 'nbd_read16': > include/block/nbd.h:383:12: error: implicit declaration of function > 'be16_to_cpu' [-Werror=implicit-function-declaration] > 383 | *val = be##bits##_to_cpu(*val); > \ > | ^~ > include/block/nbd.h:387:1: note: in expansion of macro 'DEF_NBD_READ_N' > 387 | DEF_NBD_READ_N(16) /* Defines nbd_read16(). */ > | ^~~~~~~~~~~~~~ > > Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Thanks, applied to the block branch. Kevin