From patchwork Mon Sep 23 11:56:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1988569 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=W9QOIoI/; 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=Z2S4cw22; 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 4XC1hN5qKJz1xsg for ; Mon, 23 Sep 2024 21:57:40 +1000 (AEST) 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FlSiEmPZoQt0f0iWGoqMzW79SyQgGhs6wRnRuafZGYk=; b=W9QOIoI/18UrHd R/gX0MKdwjdH+yyInXJpGIxWVqC+/CriEtAWy5VSR+vF9gar1vwMu0JJVSL/q2xEsecDvlZGdNj7n 45oBGmxsbejaoCq/N6RwKKUXfhWgIJdTqqGTy+kxfHkXzOh+z25qFO/yX/0OxIh5Q8AIbX3drPNQq dxeGe+Z6ckVCs96fIbDs9IFXqT5E1xenoGtiar8tPwhY4/yLTRO/V+oj5rZzjpRW0VCeqrxAVTc7E MT9iqomTkM2zA5QHfh5zgfxfZNZLaje9lL/fm3Pf3gj+qz0o5Yvk7MUdTB8VcL9pnYU0x31oG1/zD fGcGedXHbblHnw2UkhiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sshh7-0000000H7Nd-2w21; Mon, 23 Sep 2024 11:57:33 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sshh5-0000000H7Lc-0OTp for opensbi@lists.infradead.org; Mon, 23 Sep 2024 11:57:32 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2054feabfc3so36943585ad.1 for ; Mon, 23 Sep 2024 04:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1727092650; x=1727697450; 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=NaG3pWgu0ZagDplr0T8691C+NQzct8WP4yVue2xDTxo=; b=Z2S4cw2274ParDhVgQqMAAWpJsdld67Lam2h3701dWJsrWDe9cQ75mj9sYf01kb87P YUC9VoJV5qLY33fTce3dks7MS3c7DiNU9hrtpCVIxPjxAehPn+aWXswnMGYq5ILjAyZx 7lWKnuLJJDXiQ3WQ5FPkrFzl/SyOErtKy7imqkHKHI2QR1rxDhz2oTaABtIQ0UnBh6wh Zsh3jydLxHr1e+uPQXdpH6XcpWNp6yCiqKnId8tOAlqWSQMOeWA34ZLxFRnIHDGh4ghb XRPM9Llq42wsoeoXFBCejmN94gHgc1Y4hvuDhl/dXWLVRY8/wZ3k0SnvLsWJMCmu0aHt jjRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727092650; x=1727697450; 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=NaG3pWgu0ZagDplr0T8691C+NQzct8WP4yVue2xDTxo=; b=OevUeH43s0E0CaBqJrfK7qo+VRpt2+d9L1Z6xGoUeCL1Pcp7WilYwzXeMvOaHB5YXf jUCJc1MVTTDqbNJVZ9uK3oY33I3DCwxdnw0mEluZTR9a4nPNKK1jBjNuO7Al9f0Ujizd QGHDQsVCI+/sVwi2gUMrmFSHaSZt0m6Y2JQz492TTBN5bgAwORXOfJRUtjtpNWPB5+q/ UQIwcVZy6KyyR+sB8TWFb+ZRnDapauIrNMyuROjhKdLKdPy/8xPZRovkGRL9+RipQTHH asFJJn7hPIhNSVbJW8kF8AuZRWhhxQvGJ8HoD39d74f9NdEI3xTyvIR5XhUr58JbK1Yk Ct9A== X-Forwarded-Encrypted: i=1; AJvYcCUGHcW+r5PHJ1Bqe9+ZWnOQZbKRL43o9hNq45sN/LOwA0QIxy1FzJg5cTcqkOm9nKfVtfvWx3N9@lists.infradead.org X-Gm-Message-State: AOJu0YyMSXaVphFfNUguuGF5fg2hfgPbVBvnXTZ64BOATtNTubA5YxCp JPIAc9mal4q8EYU3nslf6ovP5C/ExLrKskO6Ho6kCNslA8ThgewpX1imoGV+RRmFWEVaidR+0fE OVfE= X-Google-Smtp-Source: AGHT+IEJc01lF00GYUpvJbj3HLgosV63n47k2O0zuj+Q1HLUrntvtU+i03VBWIPkq4plW0VuyT3gsw== X-Received: by 2002:a17:90a:6fc4:b0:2cb:50fa:b01e with SMTP id 98e67ed59e1d1-2dd80d35f00mr10962758a91.41.1727092649908; Mon, 23 Sep 2024 04:57:29 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dd6ef361b0sm9252106a91.44.2024.09.23.04.57.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2024 04:57:29 -0700 (PDT) From: Anup Patel To: Atish Patra Cc: Andrew Jones , Anup Patel , opensbi@lists.infradead.org, Anup Patel Subject: [PATCH 6/9] include: sbi: Remove cyclic include in sbi_domain_context.h Date: Mon, 23 Sep 2024 17:26:57 +0530 Message-ID: <20240923115700.381916-7-apatel@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240923115700.381916-1-apatel@ventanamicro.com> References: <20240923115700.381916-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240923_045731_203351_04AF1679 X-CRM114-Status: UNSURE ( 9.83 ) 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 --- include/sbi/sbi_domain_context.h | 3 ++- lib/sbi/sbi_domain_context.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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:630 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_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -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: , 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 --- include/sbi/sbi_domain_context.h | 3 ++- lib/sbi/sbi_domain_context.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/sbi/sbi_domain_context.h b/include/sbi/sbi_domain_context.h index 0d25884a..3f43b622 100755 --- 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 1432e3a8..29e2d280 100755 --- a/lib/sbi/sbi_domain_context.c +++ b/lib/sbi/sbi_domain_context.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include /** * Switches the HART context from the current domain to the target domain.