Message ID | 20241211230357.97036-8-philmd@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp610164wry; Wed, 11 Dec 2024 15:05:08 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUH5i0z+m6+FgOy3FiYujPOccvxSJmE/DgWdDoq1WluCT7W1FLf1wg8DTqL/FDXBatSkRirBg==@linaro.org X-Google-Smtp-Source: AGHT+IFCu4+DD4qKKuzpCgoyiPvNV7lhkoUVyeOh4aQiw19I2vEpmSzWqCg4A+mreXcf37VlEyXZ X-Received: by 2002:a05:6214:1c4a:b0:6d8:ab7e:e55e with SMTP id 6a1803df08f44-6dae395c137mr19193156d6.34.1733958308374; Wed, 11 Dec 2024 15:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733958308; cv=none; d=google.com; s=arc-20240605; b=WiXpdKCngAaB8cRRQhoh7+AbNRCnGL/NeAI1jAG3TahC2OJbal7hbDVnJoISvuwWjs Hd8yoPXhO7w1+tmcyH+ifPdT/W2zeDPNoHji/3ymbzkb8Rf8YqzI4k6yjYm0du74y3Rw F7qosYpHwpJ/oAzrsV2JF2WQ+EEjW3iJQ5Iohsxwx+DS6sxoFx9grv0pZPW7ObGVjWhp hb7pvK6Hs0TnMUjn3FmnU+63vjXB8vteHhT8+vuSe+uzK+2gUCHSJaguRNJPDXytXhAn 19sNwIcii66lAyN74JNA0D7+/stQk8BPdmxB3h3bKKC1NRGM9IUBT7OKjrDeEVyqcPun mtPA== 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=i5TDVgq/CwukR+NJEtHbkNKroUN70sGumVux+smwBCQ=; fh=OjCkG1+zFAHgM8ka22zpdQBeTIhfVPLMh2IbVRbLBUc=; b=hf4FV/sE0QRHKW71vpWEdCKCZukHqqtaoMmqUO9jfH1fg2ZmWfsOOqughpRh3BqZgR +eN+PqNVerYXJrG62WUxkLOiwE/oTqsB5rX1XcMxYV85Zn9DCdYozI1QSnV88ZFAzy3T pWWKkU7qfb12PSplnJailYlYLIXHbo0u2iOV5vWDKcvBdZMeveK29q+pBDzFDrddcvFz EIyPkw8kXjsD/LVuQNhWQVFfASo4sqy1bBfxuLpw0rFB1fZWCyK4dXndMjzXXo8RLMTV IPn5D8rCd3yMXWAerDQRrzlCI460j3p+XHeHDbRhP7xoQ0EJPb4Z3Io2uOrAoF74CxfK 6dwA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ub7ilO+7; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6d8e6b89f69si156185136d6.40.2024.12.11.15.05.08 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Dec 2024 15:05:08 -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=Ub7ilO+7; 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 <qemu-devel-bounces@nongnu.org>) id 1tLVl9-0003KH-KK; Wed, 11 Dec 2024 18:04:49 -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 <philmd@linaro.org>) id 1tLVl2-0003Fu-2M for qemu-devel@nongnu.org; Wed, 11 Dec 2024 18:04:40 -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 <philmd@linaro.org>) id 1tLVl0-0002BF-Fx for qemu-devel@nongnu.org; Wed, 11 Dec 2024 18:04:39 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-436249df846so70595e9.3 for <qemu-devel@nongnu.org>; Wed, 11 Dec 2024 15:04:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733958277; x=1734563077; 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=i5TDVgq/CwukR+NJEtHbkNKroUN70sGumVux+smwBCQ=; b=Ub7ilO+7J0750n7OF58vshIkm3AV+78t9nLKtlDukYpRCpPARfq/Wl3LqXEL8h7zQL Z+7b57wnVSRjPIj55Zo6aJjCYjDTFoTCmUR2flLDU6NTOd09KmRzPLgc0+D1cSvy0YGC lbrz0ihNzV+wYN32slUeDPyoYLmMWSKX7JzTSHG3X56LyEM0c1g3GnxIoywT34Rhj2Cy aDgQpNa3PZbLfNuCDNOCsJpCN8br+R6d1NHxgXrGueCzBjLQtQApSgosGOXkY41e45xm LnxTedqgzFjlOSnW2GVWlH3rWWJm0eefKNULxpeoqzADWhLUybTrLFtjrrOyoPdJHPcl PHgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733958277; x=1734563077; 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=i5TDVgq/CwukR+NJEtHbkNKroUN70sGumVux+smwBCQ=; b=FbqQGGUtt8FTzLXNHETrsXbiERq1QhcwUbD1jocmZt+c/h/u9dS6ILRavQng+ay20Q dl3vguOXOxfnltAJZBYfj+Z34RY/ZnKwcld4fdhgsH4rQuSAdj+xUkPseyOmY+suF1n7 6vrwLjewtJ827x/qCxz5qycADZVGt0B1Tdmuz+PRKtI/y3miQIimBkKSVAHes2k6HojU RMlLK0kDiO2VZr6RJO1o/7vlddbgcuH6vnn6nQsCDxOb9BpvmedHQ+sUg4a2kk/5qgX1 ppGXjSZCCBvbN/iOsMvkWoyncAO1hQRvXKf7wbs/srev3h4HdM7VDmjBHh/1G3VHpp5K ZHHw== X-Gm-Message-State: AOJu0Ywrzjj7kKMiFOAS2BhreV3j08FWzYhrDBN/KBYHPlj2fb7/bcrm LCDe/FMx9AGKWVUScmb67xfwW3F5ixGT8Nip9sxOhFlUfBBO2vLtTlPizQBwNGqzy0CaXJtxEdy O X-Gm-Gg: ASbGncuDZtCrYXVSQ1NSoHDmOXV6Xe+u0/UlzBMy1I0eUYOyEIUxS2KuspB/LTnz6GR vIWeBNfCDindjYbQcm0fg9eL7ibgSpWuuBwCS9wiculUhbFcyfWOws/17MgvEjg3a8dosLeH4ZX 98B2WkuuFOaS1wUyckH8R6X5dgGsuYZEmhkaHar5NDEx4OIx4XRLxusKXibvi70I/M6AlTj6Gb1 +hWxO1gsd2h/JO9QytRlLJmGSY/Bx/J9lCzrOdBb8+V7pNy1WeMtvIYhkQydD54nefusSibOZPn 9uDQj+bPgImNf/W5F5iTvNZe1Jr0sbfrOQ== X-Received: by 2002:a05:600c:1f0d:b0:434:a923:9310 with SMTP id 5b1f17b1804b1-4361c3c5015mr37873435e9.15.1733958276747; Wed, 11 Dec 2024 15:04:36 -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-38782514c06sm2341763f8f.73.2024.12.11.15.04.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 11 Dec 2024 15:04:35 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Richard Henderson <richard.henderson@linaro.org>, qemu-ppc@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH v2 7/9] hw/sh4/r2d: Include missing 'exec/tswap.h' header Date: Thu, 12 Dec 2024 00:03:55 +0100 Message-ID: <20241211230357.97036-8-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
misc: Reduce 'exec/tswap.h' inclusions
|
expand
|
On 12/11/24 17:03, Philippe Mathieu-Daudé wrote: > r2d.c 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/sh4/r2d.c:357:35: error: call to undeclared function 'tswap32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > 357 | boot_params.loader_type = tswap32(1); > | ^ > > Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org> > --- > hw/sh4/r2d.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c index 7eecd79fcc1..e6cc156c238 100644 --- a/hw/sh4/r2d.c +++ b/hw/sh4/r2d.c @@ -43,6 +43,7 @@ #include "hw/loader.h" #include "hw/usb.h" #include "hw/block/flash.h" +#include "exec/tswap.h" #define FLASH_BASE 0x00000000 #define FLASH_SIZE (16 * MiB)
r2d.c 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/sh4/r2d.c:357:35: error: call to undeclared function 'tswap32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 357 | boot_params.loader_type = tswap32(1); | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/sh4/r2d.c | 1 + 1 file changed, 1 insertion(+)