From patchwork Tue May 24 18:00:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dao Lu X-Patchwork-Id: 1635127 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=PmOSJi3N; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=rivosinc-com.20210112.gappssmtp.com header.i=@rivosinc-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=gBqn6zb2; dkim-atps=neutral Authentication-Results: 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=kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L72703NFGz9sGJ for ; Wed, 25 May 2022 04:00:44 +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: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:In-Reply-To:References: List-Owner; bh=6Z2n120WxJnfeMXFi0QFeQzPBi0XaPiedQ0pL/jwk50=; b=PmOSJi3NOtEjNj Tq8jT3xHAQknLI9hXfGi+tyOT7nd2YeSHP27A0bc1s8IVYT3mauEtbBJfv7/5GMb78a2v85KwIGKF dxUL/vISm7qzPethZdukH/j4hbOAok8WuJzotjfTtkkpQ4VvpoQhXj4rpMwLHwWrA7we62M+w6ZAy j3Jgl/BaWiH7Gpo31igaav1MTa06DQhF0DCe0IjTtHkbFm/ZP9JMCL7GLeaqI99XBaIdCkVjt4KXz 4gQwh67M6DICYSzemSCHnc65ec4+NusC4FN7UcpSHqvSAwzlOq42aLIvTsRda0Rx1VRc6ecNpIRc6 YHyBaF6yGglFL7Hf0qiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntYpk-008q2P-7t; Tue, 24 May 2022 18:00:40 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntYph-008q0N-1Y for kvm-riscv@lists.infradead.org; Tue, 24 May 2022 18:00:38 +0000 Received: by mail-pg1-x52c.google.com with SMTP id r71so16980468pgr.0 for ; Tue, 24 May 2022 11:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KpFVq8r/umd/zveVH7C5Avfe0R2MqP8rdf1ZoFjkovs=; b=gBqn6zb2xhCTUNdRRFpcqFCryfyq2Jcg3h22HySfX5vcvCxmC2wv81Otof56M+w5SN MhEmiFBC2/QxfHq7yD4NUvrOur26lO2HYPYir7whJu/3D5fKTNwDt7GPYtnGlB02N76z HP37Sl68PGq+GYGM0SG3pCRF+W9/Qh1yrtZRO+EIveoIH5pPV8D2SKnl+LkWUanEqK3q tNzpKaWGrxD62g6d3IrUGYjdE/XUNI020eDu9daQS3a5+cGs1CrB6DR6zxdcK9Z+S8T2 EmsMk8M2bLuf3RBGrSg6UdVISibJbfULc038LplcpnkKEo/oZrjS+A8exvXUsh/SzL4u u5uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KpFVq8r/umd/zveVH7C5Avfe0R2MqP8rdf1ZoFjkovs=; b=ZXLV7eRnA3jEi2ZGPcFr9BSYjY2elmWr4JNjwlWVkUWeIa3RY2jCCqyKi7D26x8kBp 1g9SplIArdH0wg2EfKoIeZ2e1WJiDjBUh119UrnDOtYcoytK4GUS/F+J4d+fhacWH/D/ 0Y+mtmjQ//uvNvLO+0fZx1eIUKbgC9193Df9tvaNnQ+PZb+O6sDFxBGE71Y+D+oItxWb p9KrvF/q0xisICpzK7awHI8aEtYm0z9Ahu4QDlrmzyMBb2wypgErYWZF4eRcyLOXzUgJ AHL9GCAg+fDjZ8OQErTBcoXovsqVucIlChgA6CgS5ntJB5PpK2LOkWVL7l2CZnZ81o3f SYiQ== X-Gm-Message-State: AOAM5325en1xirfTsjN+CNi23kNDlPzV74xVberrIQfQ5lsPb7FsRDHP v1Gz6JibnsDUFUPLGlO9DUTggA== X-Google-Smtp-Source: ABdhPJymORb0KY/vaUicJgZyiKEBLF4E1EbcJid/Ik7KxRVqoJToK9vGibA+ynCKumJFJgymF5CghQ== X-Received: by 2002:a65:6e9b:0:b0:3c5:f761:2d94 with SMTP id bm27-20020a656e9b000000b003c5f7612d94mr24733432pgb.79.1653415234819; Tue, 24 May 2022 11:00:34 -0700 (PDT) Received: from daolu.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id gk10-20020a17090b118a00b001d7d8b33121sm24403pjb.5.2022.05.24.11.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 May 2022 11:00:34 -0700 (PDT) From: Dao Lu To: kvm@vger.kernel.org Cc: will@kernel.org, kvm-riscv@lists.infradead.org, apatel@ventanamicro.com, Dao Lu , Alexandru Elisei Subject: [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv") Date: Tue, 24 May 2022 11:00:30 -0700 Message-Id: <20220524180030.1848992-1-daolu@rivosinc.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220524_110037_343215_198AD85D X-CRM114-Status: GOOD ( 10.18 ) X-Spam-Score: 0.0 (/) 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: Fixes the following compilation issue: include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file or directory 5 | #include "asm/kernel.h" Tested-by: Alexandru Elisei Reviewed-by: Alexandru Elisei Signed-off-by: Dao Lu --- riscv/include/asm/kernel.h | 8 ++++++++ 1 [...] Content analysis details: (0.0 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:52c listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kvm-riscv" Errors-To: kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Fixes the following compilation issue: include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file or directory 5 | #include "asm/kernel.h" Tested-by: Alexandru Elisei Reviewed-by: Alexandru Elisei Signed-off-by: Dao Lu Reviewed-by: Anup Patel --- riscv/include/asm/kernel.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 riscv/include/asm/kernel.h diff --git a/riscv/include/asm/kernel.h b/riscv/include/asm/kernel.h new file mode 100644 index 0000000..4ab195f --- /dev/null +++ b/riscv/include/asm/kernel.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef __ASM_KERNEL_H +#define __ASM_KERNEL_H + +#define NR_CPUS 512 + +#endif /* __ASM_KERNEL_H */