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: 13056205 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5952AC4332F for ; Fri, 25 Nov 2022 17:54:40 +0000 (UTC) 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-Google-Smtp-Source: AA0mqf6KiQjDXGkJquJfLa2xuqZXsioUyM3G+sZDqzxlpx/sGPWqi0g3axqaSN9KN8cVOWT6fcgtVA== 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.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;