Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3114763rdb; Tue, 26 Dec 2023 17:15:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJTl5JJt+DUWx44/LEQnKJVdkehdwwiMvWn0NCAWR+w22hSTCduzezNatkQ+D7yBQ81QM0 X-Received: by 2002:a17:903:22c8:b0:1d0:6ffe:9ee with SMTP id y8-20020a17090322c800b001d06ffe09eemr10162647plg.76.1703639733692; Tue, 26 Dec 2023 17:15:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703639733; cv=none; d=google.com; s=arc-20160816; b=lmNlcPv17pCTPyzpy3PSkUm3foRPE6mtMLo5JLtp9yfTyzuBUyHhjFDBTDmUILpTia K9pV6pQm5fNFkZgHjhP8m8nOx6PJIEiqi9xiH/RO71WK9YYjPUV7lJqf/vfcksD/r7zy f8FkmMiJpiAbsOZnj+g0ibTeH9vAD5llM8yJWh3/FOCbK1mwvhtqDktctIGQ761MG9f0 /csv+LQruYKR51NxYl4mizHAIqbW68iFw3J+opmC30rbdtdnf/hFLneirQ0rhhwVkqrp 2Xa2XCbmMWsPKSVGZtyqiHo0fSy77edwStXy2jPIVJevoONIITrgrZNxBFEOW5G5iNSj 99Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=dVx/E9hxRr1pgfNn2HtlNdFpTW42eEbMQ5BSsWrEMeU=; fh=RRRr6ZAaKXsFyFo9kOYzV0J88NXgg03FVScpKMdi9TA=; b=E2vkBYso06Oo+/P6Mhc83jLucoVfYvBFlqvoNVjBlGvV3LuNvQ/xxu7rdgknJakJg1 NntZY7KgRBK/zQ/xDtB0mvRkHO6cbkUKllKOjG1zA/00I4UGejlpQ/6XMsJnDX8W27tT Sq4Dy3MgBCCh+faq6UpH92a5xb68qpQNPLfCggQFbsYhIHPdQMDM+qZtvKJRxkY/O/1n 34+VWmxhsxP83mKwe9QIfZCgTzxfs37n2rIIOUfoiBK1CTsXhLJnUhHi6Jh0p/N0JELr 8Wo/a1QQ/8M3umO2AKVwzYHo1820VF0bI8Hn8OtA84z2CanoEGHuUJJjFz9ygi0R3TRN ZOOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=vOlLyGPs; spf=pass (google.com: domain of linux-kernel+bounces-11756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11756-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q14-20020a170902788e00b001d3ac497f07si5510623pll.565.2023.12.26.17.15.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 17:15:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=vOlLyGPs; spf=pass (google.com: domain of linux-kernel+bounces-11756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11756-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5578428351C for ; Wed, 27 Dec 2023 01:15:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF6D71FD7; Wed, 27 Dec 2023 01:15:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="vOlLyGPs" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 14641A40; Wed, 27 Dec 2023 01:15:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=dVx/E9hxRr1pgfNn2HtlNdFpTW42eEbMQ5BSsWrEMeU=; b=vOlLyGPswNz/ukFMMvQff5QuD3 RqKR/e/ZoWohom5oc3LQGkA1lO9aj1/oQbDmAJ44IwjAOAowiLBugqHkT+lowVwwGxjNdAkPwvurB 1aIi3VZ5/A0QF5GRYKisLexcSqECl9f3OqftrAHrHmHvpI5ZO7ManoHTFZPB+Re/hMMoWEYnBWEFZ pabdTzcmJnAgIScV89fFZEdVPAsUlo4NN0+2cs+NFZ7NeSYrj0pJZO3ESP+xCWXDsai/IrYpzoouQ lna+RxjoQIa1fXQAmfPssdTy/D0wYnD6GXMye/wuhUKssIWrmCNcZiVN6dkDKmu+5SnzbaLo1Hmph E5TP7w1w==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rIIW3-00Dl1h-0A; Wed, 27 Dec 2023 01:15:23 +0000 Message-ID: Date: Tue, 26 Dec 2023 17:15:22 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] LoongArch: KVM: add a return kvm_own_lasx() stub Content-Language: en-US To: Huacai Chen Cc: linux-kernel@vger.kernel.org, Bibo Mao , Tianrui Zhao , Huacai Chen , WANG Xuerui , kvm@vger.kernel.org, loongarch@lists.linux.dev, Stephen Rothwell References: <20231227010742.21539-1-rdunlap@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 12/26/23 17:11, Huacai Chen wrote: > Hi, Randy, > > Could you please fix kvm_own_lsx() together? > Sure will. Thanks. > Huacai > > On Wed, Dec 27, 2023 at 9:07 AM Randy Dunlap wrote: >> >> The stub for kvm_own_lasx() when CONFIG_CPU_HAS_LASX is not defined >> should have a return value since it returns an int, so add >> "return -EINVAL;" to the stub. Fixes the build error: >> >> In file included from ../arch/loongarch/include/asm/kvm_csr.h:12, >> from ../arch/loongarch/kvm/interrupt.c:8: >> ../arch/loongarch/include/asm/kvm_vcpu.h: In function 'kvm_own_lasx': >> ../arch/loongarch/include/asm/kvm_vcpu.h:73:39: error: no return statement in function returning non-void [-Werror=return-type] >> 73 | static inline int kvm_own_lasx(struct kvm_vcpu *vcpu) { } >> >> Fixes: 118e10cd893d ("LoongArch: KVM: Add LASX (256bit SIMD) support") >> Signed-off-by: Randy Dunlap >> Cc: Bibo Mao >> Cc: Tianrui Zhao >> Cc: Huacai Chen >> Cc: WANG Xuerui >> Cc: kvm@vger.kernel.org >> Cc: loongarch@lists.linux.dev >> Cc: Stephen Rothwell >> --- -- #Randy