From patchwork Thu Oct 10 09:00:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1995359 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=q/w7WFUn; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=TL/U3+xT; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XPNzJ48jLz1xsc for ; Thu, 10 Oct 2024 20:01:32 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+zWNvpydyAbTFREV1zzNfQrKhWjP9iFFIDG/lpRnOaA=; b=q/w7WFUnpkY0lk JXYLxbQxIdfzr1lF537kCCWPEPEAyrUcr7HIe8n9i/rEFWJjsNIweNh29w8J0eHiRQTXp0qgSlqmM mTmdOZdEWo6fB8aSt6Sn6iRoB7+evaHeRMY7AxBARVAuVvUzpLtJZdNCOzRR9+NxuiofS68SDAvM6 XvShpZ+oPaMbSDNHQIN/KG8acG0PjywCgjGhNB84PFPBHbK053u8My4uHQHuaRyHJAy9081Dqtiq8 JHCvizv3vI7lvNJcAhaB2m4VcTLbqet4tKRco3snCI04vANDJWM+9wYRm+YL9oFhCilSbunMkFbsv 7Z9o9+qrElngKHZxRUcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syp30-0000000C90L-02Bv; Thu, 10 Oct 2024 09:01:26 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syp2w-0000000C8wc-132O for opensbi@lists.infradead.org; Thu, 10 Oct 2024 09:01:24 +0000 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-71df4620966so664982b3a.0 for ; Thu, 10 Oct 2024 02:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1728550881; x=1729155681; darn=lists.infradead.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=TxRvMxGIH4veUkBD4bQQwqRJIF6059qnHAxReSQcXD4=; b=TL/U3+xTLR7CwTJXIvBDN2zsZMkfi0xsTLtCfCpkBIlcjTCHAhp7krUrBAqd4nUtgJ CquvvWd7/UHEB5wv9rWXfdjotGVlOnpAF2fTDd8y1BO8jhKgU6AtH1B5wIH247Rxrgxz PDGYIYDwhBhLofTQFrhW54CyDWcUrcp2qfGDCFw95O7FjmiXvdSY7lp0o71NnifOsATc RBZ/abKGCyPsE87aT2IK4jD4qZJSqCwrGEfrWz6x8yK65q+Q1dr3iHABU0nmfZzLi3vp nZxAtXFrbqcTE0LiVmEpKDMHEh7QWAmWtmaC95/24n0S+PrmrIoguYvIFXmEcL4x0IHG WE3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728550881; x=1729155681; 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=TxRvMxGIH4veUkBD4bQQwqRJIF6059qnHAxReSQcXD4=; b=bPsBBnvWjCBRKaTfYyJzWxhMFYoA5JaEHyDKCivMoDCgjOfkhW28NJmCdYmHWugYZh Pg9Gq444y7kyMmOSgz1B61+ecq3sad4VzseNxSZvsdXsAkF09ToiHfB9dc7TA2vmEsB3 TcT7mujkqxWuk+WQ1qy1jNoT46saCi1/etxuRC5Ta7tunPVYNaKwRSkVrIrWZvzQOfow mz5bgLrMtUcLjldx+Jbz8+P5GDNG6c4jyOvBaw6RJT60h7T5vF5SedCqbYBtiVyYguWJ n/3RenxXQqg3DR0uqgu0oBFd1aAZE8mD/e5Ne7u3yvLQdUgysIKBQQIGti9SyfGQLvYe R51Q== X-Forwarded-Encrypted: i=1; AJvYcCXaR9EyyrNN9fZeny17DNaS/GvSY1tk2j26NWwvI4UgEUnZMuXXgK9xI/svMJgs+fMI6IHAnd5M@lists.infradead.org X-Gm-Message-State: AOJu0YznImUaKhrCmTcLUiH3Kz0nO+Yg8S2JQQ2+Ou8wFRr3vqnF0FDv eZqvL92J2354PXV1BiJXWfJSuqAI8S9Dzb8nb/eiXs1qXWVfGrjWawltbSTDjcw= X-Google-Smtp-Source: AGHT+IFQu2a8Rxc2wkGzRYJm7nHbfFXx9e2GWapZQnkszV8X4ho6ZrRErfNoQMDc29wY70zBh2NbRg== X-Received: by 2002:a05:6a00:1904:b0:71e:cb:e7b2 with SMTP id d2e1a72fcca58-71e1dbbce78mr8694458b3a.21.1728550880944; Thu, 10 Oct 2024 02:01:20 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([223.185.134.55]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e2a9e9835sm654127b3a.13.2024.10.10.02.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 02:01:20 -0700 (PDT) From: Anup Patel To: Atish Patra Subject: [PATCH v2 6/9] include: sbi: Remove cyclic include in sbi_domain_context.h Date: Thu, 10 Oct 2024 14:30:55 +0530 Message-ID: <20241010090058.179381-7-apatel@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241010090058.179381-1-apatel@ventanamicro.com> References: <20241010090058.179381-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241010_020122_313796_A10FCF30 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The sbi_domain_context.h includes sbi_domain.h and the sbi_domain.h also includes sbi_domain_context.h. Remove this cyclic include in sbi_domain_context.h. Signed-off-by: Anup Patel Reviewed-by: Samuel Holland --- include/sbi/sbi_domain_context.h | 3 ++- lib/sbi/sbi_domain_context.c | 1 + 2 files chan [...] Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:42c listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anup Patel , Anup Patel , opensbi@lists.infradead.org, Andrew Jones Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The sbi_domain_context.h includes sbi_domain.h and the sbi_domain.h also includes sbi_domain_context.h. Remove this cyclic include in sbi_domain_context.h. Signed-off-by: Anup Patel Reviewed-by: Samuel Holland --- include/sbi/sbi_domain_context.h | 3 ++- lib/sbi/sbi_domain_context.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/sbi/sbi_domain_context.h b/include/sbi/sbi_domain_context.h index a92f338b..1f5a4f56 100644 --- a/include/sbi/sbi_domain_context.h +++ b/include/sbi/sbi_domain_context.h @@ -9,7 +9,8 @@ #include #include -#include + +struct sbi_domain; /** Context representation for a hart within a domain */ struct sbi_context { diff --git a/lib/sbi/sbi_domain_context.c b/lib/sbi/sbi_domain_context.c index bafb6c3e..7cad4656 100644 --- a/lib/sbi/sbi_domain_context.c +++ b/lib/sbi/sbi_domain_context.c @@ -13,6 +13,7 @@ #include #include #include +#include #include /**