From patchwork Sun Jan 12 21:58:29 2025 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: 856764 Delivered-To: patch@linaro.org Received: by 2002:a5d:525c:0:b0:385:e875:8a9e with SMTP id k28csp1174018wrc; Sun, 12 Jan 2025 14:01:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUoaan1tn0OlbgA9Gw0hK7W6vVKnBx9J6BhnFfyx6aCiGnVcF4f3Eb4yO/703PMK9x1YBbPag==@linaro.org X-Google-Smtp-Source: AGHT+IGkiU+iOYDQQFBKt9rzs1CVo1fkzN+akdvS/SK2QenHe91e84tjVJKF56gt4josJPfKrxHJ X-Received: by 2002:a05:622a:307:b0:467:8017:4e85 with SMTP id d75a77b69052e-46c7100509fmr309273361cf.19.1736719315571; Sun, 12 Jan 2025 14:01:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736719315; cv=none; d=google.com; s=arc-20240605; b=a52hCwvLd+KJTWmShsluDu8vCKzCRc4dUEk2o/394f3tp0fFx1bt7y2wRU2ay3ZF7i a4270/kz2twZBpS84ROjTiza764jUHTCKHGiv7QiN8g4ksdGKXczEivoS2Z1QH+QUZSQ zTb5j3IkdA1yh/PpewNFjdf8TTAB3ZDTH1yZkc/aawCXCu17+Yi28Mar6YpENwhCMfm1 sBZTwLQCPguj3870FIK69Wc7RIYnj2zORODrn+381O9ZvvN8gQnYwZY8ujkVt6kFcqPA Zbeuo0j3lnyImm9QmbRtGwu1rHtAE4SMFzwBT+Rj1cu3MBXkjMk/QTcNjJ5DvrZFct0E Xdyw== 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=cfr9cRQteCKCUUzw1cda3aUrNzk5bprsudeb9V2vsoc=; fh=Ihmr/tTuI9LlTMRH7V2YLRHtHGMzXPi1O/i78pP9Xl4=; b=DB8+EV0XDbj3dR+YuZd1SG6zS2hAJb+eRkDs2iVIAYq4klHITbwQRVa96kW+YN/WXR wfehG/HF+56tNypR8QwGeTf1SWoyJp5MB+UQZfe/4K1bqdTKVWxPblOQvWqsAhjgnr81 cR7DdTCxEQgdJavQK9R9WyO20RkLL15NGzaF6WZVQeqj4WzNEV3iPJavfgyJg2rQ94CE D0uUQdIHugBM3+F/u8uSx3RoklKWvgbyESZ4GCoYPAweGSi3rWFeSZpxJTFDO0HOCOrv ewxhPudFi7f9GypGQnPhd+OEGqp38ibZfSAH/4firOVLNS1HoDMttirtzFrnSevMsLET lwDw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O9WdUB75; 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 6a1803df08f44-6dfadef4c1asi73660856d6.300.2025.01.12.14.01.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Jan 2025 14:01:55 -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=O9WdUB75; 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 1tX5zA-0005Kp-Bj; Sun, 12 Jan 2025 16:59:08 -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 1tX5z8-0005KX-KS for qemu-devel@nongnu.org; Sun, 12 Jan 2025 16:59:06 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tX5z7-0003mh-6R for qemu-devel@nongnu.org; Sun, 12 Jan 2025 16:59:06 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-436326dcb1cso25725365e9.0 for ; Sun, 12 Jan 2025 13:59:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736719143; x=1737323943; 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=cfr9cRQteCKCUUzw1cda3aUrNzk5bprsudeb9V2vsoc=; b=O9WdUB759t7xCDpUs9DAb31rMDcsgexYDxWHwuEnjfZvZ7xJzZeDarXcEK01QYYkG3 YNaXsqk8F0/AISezT5uZIHLm1aa16Zxu/8Ca6gBw5rwEgXAx8If+CzVqveTcN5WWIjkJ Dg0Qt3wOc8GeiMFO9jC12JbzzcgkmAhcM2YNeAJMsTglAq1wnNEKS3fw8o2JVHc/DaFf OkroKlhhft67yD4sTUBsK2yTwOAOLocAWnGWWsCjbRIcNwfcJe9XE6yvK3gDfKtnLJD7 nkeGgN1z2MNfhvPDXmbaJt+Oksl+WaPe1mCE2e7+BEXtzBzCSVFbwo4wbmsehd22uMhr 1hbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736719143; x=1737323943; 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=cfr9cRQteCKCUUzw1cda3aUrNzk5bprsudeb9V2vsoc=; b=XrrmOQ7lFcINBYsDP3xHKKv6RxXHowKq9NmzX3rfzfV+xCAyOYX+6jrtPtZYjjn4wV Xn6wYtFNlCE1gqZZnkkKWGiUZSzjLoLLAXrV2VXHptc035OqTveSh/3qZms3NLmHjfAh I6S0Ylfb/vyjZqmCVQQJMHexTYWpKoJBBwMombuUHFW2iCGGpgm4AMGHdyBuJBHZnMdp 1Ejs+bOh2ZcWe1RuG5YGnHio1LFZXQ2lAoSSSBLnprPf8IE/4fX45W36pF8Gj8Vz7i77 lqhzGaoIPkqvmr8ZOZQyGL6dmqRyVjbXMD+M1fKWjqkfZxLzdFA1EvpgkoFAamjgQZf6 UucQ== X-Gm-Message-State: AOJu0Yw9zWzIbNLX7Hn+cOJ2dKCSaObdV0sUdOuOccDKZ9WnjocjIApG bNUWHRoMjzN3PkyOboxwV38832F4WHKJxMl7dKGYlaGQ/QFf+PzcnkmMgtTt6QBoVT1GHWJGsRY NcQM= X-Gm-Gg: ASbGncvns9ISo6C1Z69ah+XpmdYKaIAVWM6Clc9DFTSMhfLEt7txXG1A2N+CNZBnhf2 M7UwQJl9OgGFsoxO7Twdl4sCeAuu8yxWWnXBWMb85rERmFkL/1/khKGjAYrjqY4FhNT1q6xkED9 uYkxDJ2g6EGL5+KgITDarT29R6ClkfcKk7eoui6+CYiOEzwfLG5E0OR/z2Y4RypwRNJuISFshvM Sx6idH2Txp/7f8sQaa+s//OHCZ4afZA8nghYrRy0w2mnX1j49RqG2kBbqfslywXtB+80Y8qfpKt ukZkE7RsC1y2EUgYVlBA/wl7GcObJtE= X-Received: by 2002:a05:600c:500f:b0:436:51bb:7a52 with SMTP id 5b1f17b1804b1-436e2697170mr170863725e9.7.1736719143168; Sun, 12 Jan 2025 13:59:03 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436e2dc0069sm158837685e9.11.2025.01.12.13.59.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 12 Jan 2025 13:59:01 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Huacai Chen , Jiaxun Yang Subject: [PATCH 05/11] hw/mips/loongson3_bootp: Include missing headers Date: Sun, 12 Jan 2025 22:58:29 +0100 Message-ID: <20250112215835.29320-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250112215835.29320-1-philmd@linaro.org> References: <20250112215835.29320-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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=ham 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 MemMapEntry is declared in "exec/hwaddr.h", cpu_to_le32() in "qemu/bswap.h". These headers are indirectly included via "cpu.h". Include them explicitly in order to avoid when removing "cpu.h": In file included from ../../hw/mips/loongson3_bootp.c:27: hw/mips/loongson3_bootp.h:234:14: error: unknown type name 'MemMapEntry' 234 | extern const MemMapEntry virt_memmap[]; | ^ hw/mips/loongson3_bootp.c:33:18: error: call to undeclared function 'cpu_to_le32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 33 | c->cputype = cpu_to_le32(Loongson_3A); | ^ Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/loongson3_bootp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/mips/loongson3_bootp.c b/hw/mips/loongson3_bootp.c index b97b81903b7..712439c2575 100644 --- a/hw/mips/loongson3_bootp.c +++ b/hw/mips/loongson3_bootp.c @@ -21,6 +21,8 @@ #include "qemu/osdep.h" #include "qemu/units.h" #include "qemu/cutils.h" +#include "qemu/bswap.h" +#include "exec/hwaddr.h" #include "cpu.h" #include "hw/boards.h" #include "hw/mips/loongson3_bootp.h"