From patchwork Wed Dec 11 23:03:56 2024 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: 849307 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp611184wry; Wed, 11 Dec 2024 15:06:52 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCURawX4l0GppY8yQTJKLvLGA4SuoPJPKh7sCezhn6hZe4Bz6oLVzeerw6kih7PxN4KicW2jiQ==@linaro.org X-Google-Smtp-Source: AGHT+IFnxPQKcrXycSAvmGBsX6gefPAjcrnBGf89JMcnS1h0nH0YMiw9uJ8wiBOlR9bhPngs2AQD X-Received: by 2002:ac8:7fd0:0:b0:467:6692:c18a with SMTP id d75a77b69052e-46796183cd2mr24059801cf.13.1733958411839; Wed, 11 Dec 2024 15:06:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733958411; cv=none; d=google.com; s=arc-20240605; b=eeNxCtUEaZ0nglsr5EHyaXLuPWoxSVV98aNhXTIVH5d4Q6JLE9o77l2/w/RnIA3VCZ /C9wBgSox2GTLNqWdLXao2NMMId0jbGfUSzQ+mooXBWbAdZImvU19vVh1ogV3SZtnCqO YCfEn46kiHGhRyeTar5T+2qsO7jfCDlYo6wIJi4Fkikn4oZl4vQwSM4v4EZfwosJCTsB qyBs6WuMHHF1uL94M75ThUskeaD/tW9AEwI2xzdqJavvaJrGvNU+8YUsglClG0u4u7ET ASxGOfyANcwtgrF6QTuvW2vS8kqW+tT5sFjfysa7FXdpGJELJ+F7t3+uzTlCIxvNgO7I cONw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+71ZOpdVAG9B9l+7/FqsTNfCtOJJsIHhAT40qDCr+hM=; fh=OjCkG1+zFAHgM8ka22zpdQBeTIhfVPLMh2IbVRbLBUc=; b=HQMXnGCBeeLmkMQ2QLsXoufLyg9F7I5L8R3PpB7k9mTKsw0ffn6I+HgbNtbuSkjraP MDn2OEgO5XQCjpSTnpvcteXDVYW7R6r2B2rrqptC+JjrNCzKHOs/7T9IAHVuoBPrN6l1 /JvaVwoY+oJUATs7aJO3MGPNxYuj3dmBKcnrEr3bZPSFefQfVhvrM8mF2ijt/6pwfzRP j5uWDWlTQh6ZwK0uXJ8naZHiniDQddNsAq268NAUyo8ojvqGtpdvobKjcbJ6Z1pFOjLk edWDoxSIIMrzJiu5xoR5QOjWRba3KqP8VanaDF3ErSm/nbFmCo8N0P8LNg4q0TKaJwe3 Mg0g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p1ZWY7xk; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-467562eaf14si112095001cf.277.2024.12.11.15.06.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Dec 2024 15:06:51 -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=p1ZWY7xk; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLVlL-0003YB-GB; Wed, 11 Dec 2024 18:04:59 -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 1tLVl9-0003LT-Og for qemu-devel@nongnu.org; Wed, 11 Dec 2024 18:04:49 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLVl7-0002Ff-7x for qemu-devel@nongnu.org; Wed, 11 Dec 2024 18:04:47 -0500 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3863703258fso705231f8f.1 for ; Wed, 11 Dec 2024 15:04:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733958283; x=1734563083; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+71ZOpdVAG9B9l+7/FqsTNfCtOJJsIHhAT40qDCr+hM=; b=p1ZWY7xkla3DXjQ2g68P2igLCFqO3MLeBEFavRFoJGRHqyWYrJyNvdjO/8aVleAlt6 /APUezHJ9mtF+7vQLRK0Evvo22DlLjJ0wISNzi9ED7CUQDfXN96VQO28GwkZGIKKD4Zg f7CDEw2Ing6WhvdpFj5kEkYKXgGOOdAJnSjKbGC7evsOyMl1qY2eX9CGuFlx2JleLN6I P9TNAhP1o1BtbuaSfm5tIg1buvkSsys5/IQNle8L+WKkATnqtFXVI8nJ12vCjlomp8Ez EHKZd8Z2tDxTM1+ryjVUIXSJsAmeAfpU9KblT0XTzDPjIUtiPYe8hRhx0jFrN2DT1hGt MBvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733958283; x=1734563083; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+71ZOpdVAG9B9l+7/FqsTNfCtOJJsIHhAT40qDCr+hM=; b=r8dfhlEMbyxen93xY+MtDL/3hiVv7QaMrT4FXUz2ICEFruMPuXAqJnxglwVq/fR4sE alm+yESYtFrUALTt4u94zyUrqV2hEyxj4n2MzrY4JvQZgvtH/H8oUNQiqw+G38IuRKlk fB0N9z6HAxWpcHcQhrfu5B3i/BbFq4LJdAFcWTYQ8boQseAUtyeHRxBWICU0ZJef4eFe BUXEQ/OI4oT8r0xuXMw+7sa2sy+jyrLWObQYYSkl0vezXpwk6nXbRBc3/R73Vu4Fpzye fKidxjEx3LnbyvtedY8RdguEEVhwnw1v3N91awBCymjhhGBMvwG6lfTo+0fkkiSfa7ZW KzHw== X-Gm-Message-State: AOJu0YztTCXOi9NRH1uOUsZijaOa7tN/BAH/4dN7lKUWXtV9x9F0GEpK r7XC/WGBlZ0NqQnH/t34RdCY1Oi3kTMoY0Y73dtbc7kSCkzvvNW0S/J2GW4t3bIlNCw+F/HFYB0 D X-Gm-Gg: ASbGncswebuh7GcrP4DFhmFo8A4OOxQt4sEXXACR5gwcDZFMN9a08zUCF53FqBHB9Mh 1V6tTSSZo1VMJNUWjJJ9dEVT8bae+es+vAnLv5po+rTcg+diNBfPT5Xnt4cCTeZoiRHwFREGsmP 8MeH308aldsASD7t6FnHfjeRBVLu/eVxUmxnKjpPjRHIcmj0vRsNPx4LXk4wZ0c1KCb96Mzf3kZ Bsit6deg64orN5Z8MnpIYOQO8Tz2li91sNmwo10aS8MF7QKijJLwr9cT/PCA8W9/xDAQnl11MP9 /9PLMEzwGZexaEl/07FhVPq5++w4BXcqDw== X-Received: by 2002:a05:6000:a07:b0:385:e10a:4d97 with SMTP id ffacd0b85a97d-38788825765mr681479f8f.21.1733958282175; Wed, 11 Dec 2024 15:04:42 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-387824a4a25sm2330451f8f.27.2024.12.11.15.04.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 11 Dec 2024 15:04:41 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , qemu-ppc@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 8/9] hw/xtensa: Include missing 'exec/tswap.h' header Date: Thu, 12 Dec 2024 00:03:56 +0100 Message-ID: <20241211230357.97036-9-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241211230357.97036-1-philmd@linaro.org> References: <20241211230357.97036-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=philmd@linaro.org; helo=mail-wr1-x436.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 Some files indirectly get "exec/tswap.h" declarations via "exec/cpu-all.h". Include it directly to be able to remove the former from the latter, otherwise we get: hw/xtensa/bootparam.h:40:16: error: call to undeclared function 'tswap16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 40 | .tag = tswap16(tag), | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/xtensa/bootparam.h | 1 + hw/xtensa/xtfpga.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/xtensa/bootparam.h b/hw/xtensa/bootparam.h index f57ff850bcb..4418c78d5bb 100644 --- a/hw/xtensa/bootparam.h +++ b/hw/xtensa/bootparam.h @@ -2,6 +2,7 @@ #define HW_XTENSA_BOOTPARAM_H #include "exec/cpu-common.h" +#include "exec/tswap.h" #define BP_TAG_COMMAND_LINE 0x1001 /* command line (0-terminated string)*/ #define BP_TAG_INITRD 0x1002 /* ramdisk addr and size (bp_meminfo) */ diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index 398e6256e1d..2e264c61988 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -35,6 +35,7 @@ #include "hw/qdev-properties.h" #include "elf.h" #include "exec/memory.h" +#include "exec/tswap.h" #include "hw/char/serial-mm.h" #include "net/net.h" #include "hw/sysbus.h"