From patchwork Fri Nov 25 17:53:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 628564 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1287525pvb; Fri, 25 Nov 2022 09:54:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf53WZW1rFIoS3Fp2C8tKOTyFrGAHS814eUj7HKijxYTGeEg6t0IvCnQ8CIVgUE8HpLWSqnn X-Received: by 2002:ac8:48ce:0:b0:3a5:65ac:9c8a with SMTP id l14-20020ac848ce000000b003a565ac9c8amr36477057qtr.457.1669398879761; Fri, 25 Nov 2022 09:54:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669398879; cv=none; d=google.com; s=arc-20160816; b=MBRCNO+4zxhXkovwY4liZli70RQmaYH1COhWSvcZ/J4A1ygGATuMRuCoHZdkSpZ/q0 +nahK5Lu9NfZ4o7lfr9x42kUhucQPoveP4Jxx8fRvZrWlWEe9L1HC4QKJTKwCveWgZI6 hZwwjGikYmt6CYOklR61Z+Vmik+Z8hFrjAiPPyEuhsgnXpAoSEVc4/KkSBj1SGkG//Pz p9fsw47nrR4S0QCpHt4FfHPJU6iJHEnPyISDEHD10Hi/NG4vMBAiZmgGWTUbAB0kNfbw ZYRMeFCIqoib+dc1C/hWm/peg75AAicI5U8c8/A339r+cmnKQ0J4bnp1df3PM6wdbQdH F8NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=INE6OZGY4azvCuediKuhsFQWrf2Zukrhm0RyaddTozE=; b=AUJps5+lSugscET+7YKNYJM9a5l4v3IkE4a+rrTBAClAxEzVgxz0Ewa3DiWeXiVexB UJDuZSGsRIH/MZb9Zmj49KnF1coCvC1Mz93qmO9h8zOqYLakbyWBTwf1ScvZZHEgtc8W URv6oZxsZlJTojAIV/ZQYbmLpTnwJVpBCKXFOl8jy/YpqWakcKdY9d2gfua/HlFK1HKg veAsDyYrKjdsVn/GNg8NVdguGSM1LXIv9UvfyesYnR/3dz574NMGhKvq+UIWuzOuWg5c led0uDALKndUI0urSg9NlZb9CvJ8r6nWPyZmChcu2wVDsi5X/y7d/fqfI8q69SoKX9dE DpgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hRW6lsgQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ke7-20020a056214300700b004bb86d35d3fsi2650216qvb.47.2022.11.25.09.54.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Nov 2022 09:54:39 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hRW6lsgQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyctM-0006r5-HX; Fri, 25 Nov 2022 12:53:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyctK-0006qd-SS for qemu-devel@nongnu.org; Fri, 25 Nov 2022 12:53:34 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyctH-0002zR-VA for qemu-devel@nongnu.org; Fri, 25 Nov 2022 12:53:34 -0500 Received: by mail-wm1-x32c.google.com with SMTP id i64-20020a1c3b43000000b003d016c21100so6727528wma.3 for ; Fri, 25 Nov 2022 09:53:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=INE6OZGY4azvCuediKuhsFQWrf2Zukrhm0RyaddTozE=; b=hRW6lsgQ6liMwlidIbO1J1HmRlucVMFwxp+a0lD1rrcYlBPNbrfBJMQdiQSkVuq/FO S75wTmiLheWm7lUVaChHwV6b6O55Bs8/aEBIsbndudkTP1p1Ef5KSUPKQYQFqwXdvvCV rj28FTTHP8gsFePYkDBBE1NTkuy7eyHWQ4P9eLBz8LRqLo+mBVWM1yBwbo2aYpu5WO3f K3qnulyl0FER8RO40fKpnGtGynZLltU5OSjt/2Yt6H2cRJ23mqnkOnIxUJhJUo10yEh2 tK9Wd1ST0Z6FCshd4vpJmVjLuVKQHIlNwZoov9ccPO9qcphFSZAE+RR2ZOHoMLBN5w/r koBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=INE6OZGY4azvCuediKuhsFQWrf2Zukrhm0RyaddTozE=; b=qG7JfwwSA3k7ofTotF23LVoopblEa5RW0UrWYo59FDLeIwUdCEwiHYwzBtv9DuD70y QJoTYtbgJckoAQ5uXQ9+4Vus3IlsPP8+GAb1bIJ5xuQ85EZ8zZ6wMU/YHFgV1aljp575 LiR4PLkOTvAV7GemVvm3105WQo3AH7zCp+xpVRlsCWmkSMCPGyTnQYpeC3JYJxgfQISS CPE7itT6q+xHO9lvssrlkBdPDCuNOBmMscYiukLr8iPxDCnIQ6KR6/t/wMsjTjxhaTmg ieFZ3u0ljNlgJZ91y9f8/JvWjhzk6u0ozHXOp9gioS6HYbdOkKRwSKvzzZMKdijSQXw8 nnrQ== X-Gm-Message-State: ANoB5pkbXq3cZqWXF6YGAZOIkJZ0MWjTC+oey7Xr4mY7aeS4FZ7L+BR1 tVa8P0q6YHo7vIrB/AxGCR91OY/WhXHecw== X-Received: by 2002:a05:600c:4f82:b0:3cf:aa11:9394 with SMTP id n2-20020a05600c4f8200b003cfaa119394mr17030921wmq.183.1669398810421; Fri, 25 Nov 2022 09:53:30 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id q6-20020a1c4306000000b003cf774c31a0sm9233776wma.16.2022.11.25.09.53.29 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 25 Nov 2022 09:53:29 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eric Blake , qemu-block@nongnu.org, Kevin Wolf , Vladimir Sementsov-Ogievskiy , qemu-trivial@nongnu.org, Hanna Reitz , =?utf-8?q?Philipp?= =?utf-8?q?e_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-8.0] block/nbd: Add missing include Date: Fri, 25 Nov 2022 18:53:28 +0100 Message-Id: <20221125175328.48539-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é Reviewed-by: Vladimir Sementsov-Ogievskiy --- include/block/nbd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/block/nbd.h b/include/block/nbd.h index 4ede3b2bd0..a4c98169c3 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;