From patchwork Wed May 31 22:33:39 2023 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: 687322 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp36708wru; Wed, 31 May 2023 15:35:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4cb5csSsjh8NQq4JepLRFEFHi5X2FSZWmyqhj8yeD1TCRPLeOd6GTikaBwpdScLkwXH/ue X-Received: by 2002:a05:620a:3b18:b0:75b:399a:2224 with SMTP id tl24-20020a05620a3b1800b0075b399a2224mr6600086qkn.28.1685572530910; Wed, 31 May 2023 15:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685572530; cv=none; d=google.com; s=arc-20160816; b=DlfNh0iotUkdCJjrdVuZQPK9t6Lc0J3f3rrIVD10/lgD1FdC4uhs/25ZqVw+gx4Uwo +G0DElXl5HLQ8Sr8CDVpP5Xtte0JxBVjOP3QHLkSx7bqt6b9pjpVXXfKtdRAOTqmej7T gPhnPMVxdVAhBfjdf6io2j+zKCeWvS2ANEhx5Isqhno5cHir69Pau4BcVce4xdNAw3Wl 4qf78ZSJhbnkqcZbgloNj9wPP5dp7XHjzQ9zmV1bf6ZYPAVIwSmIE78UbfvoILGDjm4y 5cEc0s7D6gXkbK2i+caHM1sG75EF8texmvsYGg/L0VFmB+oYVWUjP/YbfIPVQVV93C9M VQiw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UhcA2XjpvZA5C8xTPJzpjClC6ek2VDg4k24l/0BltKI=; b=AzVInrMztrBzAvl+rUIFi8oSCARKsoEj2QvztrfKGpuMljthmmwxYR/tjknUlIz1l3 5kmEB4q5dWjDkqnqbOr3oNSmaoa5vJpVofdLMMeUFYIC2SRxMXK1fTd8JscS9I3kkf0q r2JVGSfEgb3ucdHWlQ9CvOOAA3n3OZhZXNyruD7FI5/Tk60Y9T60UT6hG30zGFG/U0pJ phpYpMjS3Al9i9/xpm9M/oVSG8yw5pJQ20BiS6n7zrwSTglGej2Z6YCwBmxyXIGWQPQl xiT/LVKQYCj99NTVAbS33Kg4EWgb+NEYGYRYzk45DF/t/V+YnNfJNDS/I5P+00K4NmUj VTig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DBiO+QLd; 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 x23-20020a05620a12b700b00759554bbe3dsi8552391qki.65.2023.05.31.15.35.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 May 2023 15:35:30 -0700 (PDT) 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=DBiO+QLd; 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 1q4UOV-0003jh-O2; Wed, 31 May 2023 18:34:15 -0400 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 1q4UOU-0003eY-4c for qemu-devel@nongnu.org; Wed, 31 May 2023 18:34:14 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4UOR-00053y-Hu for qemu-devel@nongnu.org; Wed, 31 May 2023 18:34:13 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f6d01d390bso1716115e9.2 for ; Wed, 31 May 2023 15:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685572450; x=1688164450; 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=UhcA2XjpvZA5C8xTPJzpjClC6ek2VDg4k24l/0BltKI=; b=DBiO+QLd9/5fMXbT9Nrpdeu58ICh/zBgnjx0gCqNbE33lEgKOdoU+o6xvq3TfSAEer 86Qtma2vzO/wP1YvO1HW9hK/7WQ0VIibSeS6pCOqpUKpEIXe5Tp9stdKIm5utKmoh3RQ 6qZk0Bbc7uF9/veu2JMiyDO7UYWSHUel8lvwdNIHM2IQxCDNGJTs0xC1jYn475SRMcgw Fv+pkZULlhczon/0n8SCYC5Q5SDZQlho69F970qdvSrDc3hGl03Y88MoIJKYMskg7xua Qrfkbn+Tz62shfU/hkuLt2BC/+mwg6UXfKpWHIin6m1lPjHgrdpDlR4E+lzYGGAKG/kQ poyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685572450; x=1688164450; 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=UhcA2XjpvZA5C8xTPJzpjClC6ek2VDg4k24l/0BltKI=; b=WIFpa+NNBUSdZDlwboKtoEZlDpcgQian0kEXtd+rPMxbNYw0efjREue0Uy922Bo2Ng fPeDJc8fXTfi0+piI2x4nFQ+eCS7psg6pK02nbof7jhU6ayeEAgGzd0xrOe+cNsf9OGE YVfe0GjoxaKkgmiRyEQQpaD9K8pECuXLnGQsYAiuGc09yuE6x9qhA+7gg03RN3Hd4MYq dnF7/bRF4t5SsuImyMa74auew7qe2VJlLfKCDTaY++3nvWQn8bLYrCS76TfWwMwK57HO nAOuE6q6aGT1yNt9tihjV002aRG4COU3yxCJscrLRYsDnmGbRiMrXIZzECA9G5zGHyW7 +/Eg== X-Gm-Message-State: AC+VfDx4l8ibuppxMTdRe7UaHhhuuyA8V460uo8QUBgvNUDPo21cc6Ib R3q4gEATi2MTkOrQuGWNUV1R8ro7rnKg+eVao3o= X-Received: by 2002:a7b:ce05:0:b0:3f5:967:bf1b with SMTP id m5-20020a7bce05000000b003f50967bf1bmr598013wmc.11.1685572450353; Wed, 31 May 2023 15:34:10 -0700 (PDT) Received: from localhost.localdomain ([176.176.146.12]) by smtp.gmail.com with ESMTPSA id p17-20020a05600c205100b003f604ca479esm131623wmg.3.2023.05.31.15.34.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 31 May 2023 15:34:10 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, Eduardo Habkost , Markus Armbruster , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Mark Cave-Ayland , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH 5/7] hw/sysbus: Make SYSBUS_DEVICE_GPIO_IRQ API internal Date: Thu, 1 Jun 2023 00:33:39 +0200 Message-Id: <20230531223341.34827-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230531223341.34827-1-philmd@linaro.org> References: <20230531223341.34827-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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, T_SCC_BODY_TEXT_LINE=-0.01 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 Since we don't have any use of the SYSBUS_DEVICE_GPIO_IRQ definition outside of sysbus.c, we can reduce its scope, making it internal to the API. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/hw/sysbus.h | 2 -- hw/core/sysbus.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hw/sysbus.h b/include/hw/sysbus.h index bc174b2dc3..cdd83c555e 100644 --- a/include/hw/sysbus.h +++ b/include/hw/sysbus.h @@ -26,8 +26,6 @@ OBJECT_DECLARE_TYPE(SysBusDevice, SysBusDeviceClass, * classes overriding it are not required to invoke its implementation. */ -#define SYSBUS_DEVICE_GPIO_IRQ "sysbus-irq" - struct SysBusDeviceClass { /*< private >*/ DeviceClass parent_class; diff --git a/hw/core/sysbus.c b/hw/core/sysbus.c index a1b4c362c9..f0ba57dcbf 100644 --- a/hw/core/sysbus.c +++ b/hw/core/sysbus.c @@ -24,6 +24,8 @@ #include "monitor/monitor.h" #include "exec/address-spaces.h" +#define SYSBUS_DEVICE_GPIO_IRQ "sysbus-irq" + static void sysbus_dev_print(Monitor *mon, DeviceState *dev, int indent); static char *sysbus_get_fw_dev_path(DeviceState *dev);