From: Philippe Mathieu-Daudé Date: Fri, 25 Nov 2022 17:53:28 +0000 (+0100) Subject: block/nbd: Add missing include X-Git-Tag: v8.0.0-rc0~78^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fcb9e05144db51966e1476790129dbff92a0bea4;p=thirdparty%2Fqemu.git block/nbd: Add missing include The inlined nbd_readXX() functions call beXX_to_cpu(), themselves declared in . 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é Message-Id: <20221125175328.48539-1-philmd@linaro.org> Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- diff --git a/include/block/nbd.h b/include/block/nbd.h index 4ede3b2bd0b..a4c98169c39 100644 --- a/include/block/nbd.h +++ b/include/block/nbd.h @@ -24,6 +24,7 @@ #include "io/channel-socket.h" #include "crypto/tlscreds.h" #include "qapi/error.h" +#include "qemu/bswap.h" extern const BlockExportDriver blk_exp_nbd;