Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp61317lqo; Tue, 7 May 2024 12:08:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAO7seawBmk8rkfRfw7+RowViqiOFgW0N8fZublLZS0fqS396HSXZzKB7txi2HpcBUiYS4uGlEq3EbS9yqR8TUAO2ZI1H/AzRDRvBz4w== X-Google-Smtp-Source: AGHT+IErpM6G14+HZPCb/JCRR8nr3Q4R6A1iN0W261y4CbOHwhtTnZAdEK7lECT7/sQvDGRNOScw X-Received: by 2002:a05:6e02:1a89:b0:36c:4545:e211 with SMTP id e9e14a558f8ab-36caeceedaamr4279755ab.18.1715108886594; Tue, 07 May 2024 12:08:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715108886; cv=pass; d=google.com; s=arc-20160816; b=QG6JgkoIvrIoS8TVYX9cWjLY32BsEKD9tM89DBaMKZiWrcUhsTHH8gwepvEH8WvtGs wXUbG94kiTvh3Zo0Znv3UvsTlnsWMftlx5cQzh+A36cd52N23swW12PBV2GYLYkqmK8O 3vAWOO1PbZRPaGprkPg2WLW7G8ACt+v5pEzCkERh8VTWV+d8XRc8QNIwEp1XgtKRVAH3 72iVoKx9gSjk+kJansHG2GfVXdEHrciGFi4CPqw9BA9CiRAFB7eO2zOoIEzO8iHXnt4v bRyAJof0LIqP05LIoU4IuYwlwaP36wjlUmdCP7TzAMs+4qw4X5wck9C1yynQ5A4hcBwi b3AA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:feedback-id:dkim-signature:dkim-signature; bh=c3T+T6In3bjtGWkRxYC6/7ih81Fbjv3sPp4ApyqJg/8=; fh=2nPjfULBGkO4Luq7v7rkq1081NbURatt7UuG7NhB29A=; b=PRwJvJpyaTYH8tE5NNmFMpem8dGBuIpCSzH7LB2VJ/d1p55veJE5fLFCTnqBx0VcrN dPBV5NsOztc0yw6bjtCAK0J2C4mc+rDj1HnmS9X3SrcGtu6MPjFFnhAgK5hmXIPc3RnJ 46UkL2bqdRZR7JCr/YGCQRfu5EMQFnUPfM4ZQUXa1QTJgGTapg4NwbqZJz2xsunaXfhe TX0jjtlNBd4xE7WhG8dx0S7lC8QWzQw9PH/gcag+x6xwO8o0874ILUUxZX1FS45fpE1e X1hFTZ+c6/tOq+iJNr9Y2iQzKMIGPpXGhvfC/TGc3zNNtI+zHZLssSNLtd/KlxfTbOeb BECw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=gl6jwBF6; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=hmK9x3dO; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-172013-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id r16-20020a6560d0000000b005dbedf04f68si11112579pgv.10.2024.05.07.12.08.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 12:08:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172013-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=gl6jwBF6; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=hmK9x3dO; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-172013-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BCC85B24A3E for ; Tue, 7 May 2024 18:52:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F7AF16DEC5; Tue, 7 May 2024 18:51:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="gl6jwBF6"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="hmK9x3dO" Received: from wfhigh2-smtp.messagingengine.com (wfhigh2-smtp.messagingengine.com [64.147.123.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4D6E16D9B7; Tue, 7 May 2024 18:51:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715107893; cv=none; b=pS9zSnawHB5q0i0VxBN5ipTQNQ/pHVeYc4Jhb/4hRH8UwS2w5FnSenOY3sy3iSb3FIiiUTyS5yXS8QTa8IasIIO+VXwqTINS8LJJ7sGxiCeyfjjBODFPW+xEEok4CO4NKDQPZ19jjoeW77GzeEICImM+OCU9L9GKznt/8JIcCpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715107893; c=relaxed/simple; bh=5ffs84l0W4DH7LDClMfPZZbVMp6HzHYo0bO60hFm+vk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VXMC2IWJ7oTdpgN3Xa2/pJaWUVzY79fYv8IP2gyg9jQtQUDV5vn8+MXYMLoPKQjX6Wf33DWhomWs74db4GD6BMRN+yf1U7DGg4sNJDCGgLwHDpXstkHtN5T28HleeE58hFyBAqYfsGq/RA/SUWJnza9M7Vh6LhT1GuShL30XZHo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=gl6jwBF6; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=hmK9x3dO; arc=none smtp.client-ip=64.147.123.153 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.west.internal (Postfix) with ESMTP id 3C6BE18000BD; Tue, 7 May 2024 14:51:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 07 May 2024 14:51:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1715107889; x=1715194289; bh=c3T+T6In3bjtGWkRxYC6/7ih81Fbjv3sPp4ApyqJg/8=; b= gl6jwBF6CFsb1+3/o5fqi1mUnzeayqiHD0rhChWAmgPGbLV/6vkFdoxEJXSC6AzW da0ik3FghOuXYloJIN8eNwwuxYx6VnmWc3VP1rprEvBNxjulM+Gftp9b9tG9rMA6 kRHDHhX63xqWxQu8ogK2N3JIeYrmMTZQeI5BmdugRelk+O1lQ9EJ+dK9/SzvwXMC HM/XINhrRffeD0e7WiX1GyTYG1hsz6Cxpj6Vex/ZnQnoKV8gIGMHVjaq4qds54NE yTJ6AbfIY2sG3eCp8H9l/n55j4Q4nQNDWIxs3tXP531QVyLi/287AaX6HXlKQ7LZ NEH3jlEYZmSMXGooI+eG8w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715107889; x= 1715194289; bh=c3T+T6In3bjtGWkRxYC6/7ih81Fbjv3sPp4ApyqJg/8=; b=h mK9x3dOckj9Uo4dCwOT6ETb5u+38tClipXT3K2fqlopQHFIy7DSyW9+HBibTlECF 2wsh1fp2meqoZ59vnCVHBqvYQvmyHouN7Xcaf/eFEVSuckmQsJtyyUe1YpJL8unz YWHFv7GVOQwWfSk2bmP7suhG55iYTmFwqJB8RSqacr3bS2BBH3qfFUdwU8JlxklY aRXt9ahwgEmJqXYfgHs127Webny/VyHTKQQq/Xr/AzjxOxSjK7cvIyz7nAw8/rKn +8KZH74dEi4o7w9mB/OBmufCN9QWOfsAbnQWgZWdVigqbnZs1Z8SY1PRVVzuS7gA TNRidWZ9EjcF7+DH6DCTw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvkedguddvkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhfffugggtgffkfhgjvfevofesthekredtredtjeenucfhrhhomheplfhi rgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqe enucggtffrrghtthgvrhhnpeevveetheeggfegjeekjedttdetueeludehveejgfejtedv hfdugeetgfelhfevkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 May 2024 14:51:28 -0400 (EDT) From: Jiaxun Yang Date: Tue, 07 May 2024 19:51:19 +0100 Subject: [PATCH 1/4] MIPS: kvm: Declare prototype for kvm_init_loongson_ipi Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240507-loongson64-warnings-v1-1-2cad88344e9e@flygoat.com> References: <20240507-loongson64-warnings-v1-0-2cad88344e9e@flygoat.com> In-Reply-To: <20240507-loongson64-warnings-v1-0-2cad88344e9e@flygoat.com> To: Huacai Chen , Thomas Bogendoerfer , Aleksandar Markovic , Paolo Bonzini , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jiaxun Yang , linux-mips@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1825; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=5ffs84l0W4DH7LDClMfPZZbVMp6HzHYo0bO60hFm+vk=; b=owGbwMvMwCHmXMhTe71c8zDjabUkhjSrCt3eiSbHbvWJ5HpZzVVlObxs3+IYvy79rOZbp/+8P Zz1tJOzo5SFQYyDQVZMkSVEQKlvQ+PFBdcfZP2BmcPKBDKEgYtTACZy6DjDf88l3C9Mf+jYBf0p uMyydGVb0bu/FwUm/GS+3JGmUrE7to+R4V/D6dOqi+ZK7Y+KjRZKC169f/qnvl18leuCLlx6+/z SGQYA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Declear prototype for kvm_init_loongson_ipi in interrupt.h. Fix warning: arch/mips/kvm/loongson_ipi.c:190:6: warning: no previous prototype for ‘kvm_init_loongson_ipi’ [-Wmissing-prototypes] 190 | void kvm_init_loongson_ipi(struct kvm *kvm) | ^~~~~~~~~~~~~~~~~~~~~ Fixes: f21db3090de2 ("KVM: MIPS: Add Loongson-3 Virtual IPI interrupt support") Signed-off-by: Jiaxun Yang --- arch/mips/kvm/interrupt.h | 4 ++++ arch/mips/kvm/loongson_ipi.c | 2 ++ arch/mips/kvm/mips.c | 2 -- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/mips/kvm/interrupt.h b/arch/mips/kvm/interrupt.h index e529ea2bb34b..07bc0160bc94 100644 --- a/arch/mips/kvm/interrupt.h +++ b/arch/mips/kvm/interrupt.h @@ -37,3 +37,7 @@ u32 kvm_irq_to_priority(u32 irq); int kvm_mips_pending_timer(struct kvm_vcpu *vcpu); void kvm_mips_deliver_interrupts(struct kvm_vcpu *vcpu, u32 cause); + +#ifdef CONFIG_CPU_LOONGSON64 +extern void kvm_init_loongson_ipi(struct kvm *kvm); +#endif diff --git a/arch/mips/kvm/loongson_ipi.c b/arch/mips/kvm/loongson_ipi.c index 5d53f32d837c..6ac83a31148c 100644 --- a/arch/mips/kvm/loongson_ipi.c +++ b/arch/mips/kvm/loongson_ipi.c @@ -10,6 +10,8 @@ #include +#include "interrupt.h" + #define IPI_BASE 0x3ff01000ULL #define CORE0_STATUS_OFF 0x000 diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c index 231ac052b506..56fedfbe9455 100644 --- a/arch/mips/kvm/mips.c +++ b/arch/mips/kvm/mips.c @@ -135,8 +135,6 @@ void kvm_arch_hardware_disable(void) kvm_mips_callbacks->hardware_disable(); } -extern void kvm_init_loongson_ipi(struct kvm *kvm); - int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) { switch (type) { -- 2.34.1