Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2150136rwp; Fri, 14 Jul 2023 01:17:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlF6T2nEhJuvQ72wtZexGwviXRc0dB6ySl3Dldn6TM2zHCCBZll57j6oorFKyBzooCHzngm7 X-Received: by 2002:a17:906:d4:b0:988:8e7a:d953 with SMTP id 20-20020a17090600d400b009888e7ad953mr3069663eji.1.1689322647506; Fri, 14 Jul 2023 01:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689322647; cv=none; d=google.com; s=arc-20160816; b=zOQ7I5ft5WrgbFGh8VdR1NqZfEZIwPn9ClhVC5+Y6PC63mgxhzRbZyyHfF5+7pDeEY mSuXEYJt50+NTP3Sr68f1JcKpjnSqkcg5IhHDk6iUbwUMgvZGGS4u4u7GkQRB4UshfWi 4VxiPIo4sLW8KqRcAEgFRtPzd/2DD8BRdcn0Ye8Z+g82VAiQshf6OBPPjwRTQnAbl9dG qVwI5UvgnxDpGGkLiJbLJ2Ish2bX03G+PggvljaZHzXdDEMGifXvJiGwHBFGtq/e4pRk z98IGuKdDrXloAOqP4ml9/fwI4Ba+y+IIovDXCicnsJeYnx37henHi6rt8oiEZWEqPxA eOdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=QpRZLqW0764VPjWc2hJuN6WTptRqcJvfshBETwqH6ew=; fh=EzbacwdBo31ffl66mfLDWcsOAOaNzae/rNRELj8xA7w=; b=IsViClPiOcxvLYVAvyX90LjiC5SKbF3qz4rvuQWGQfNFKve2XFjAqQePbqyrb9VPMj GoWHfgcKC2HzNL97wEmCR/NjEC8EQmafrnuzIYKvkPkpVOfzjz7eufa5jwsYGBUFRiqP zmMM9WBLHh14RsfHJaHodN4Y/2kZekFgBbICY2Y0jCxQwklHFNpCzQxLg6EfWrIE86Mj CA6+b+Ud+G8qM8LCWmoz6fgODRNZtaCv89WfWiGsY1BPko1NE/6OX1NXAMRY3AMKzvDW FUeTpuGfLDo52f47gTimh3LX2UxvHOAb7OMOi5NxTlzhVH9ZZDecyhWxH+srnfuLFvV1 Sb7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YlgziZ5q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mc27-20020a170906eb5b00b00992d70db610si8453552ejb.524.2023.07.14.01.17.04; Fri, 14 Jul 2023 01:17:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YlgziZ5q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235642AbjGNIBE (ORCPT + 99 others); Fri, 14 Jul 2023 04:01:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235585AbjGNIAg (ORCPT ); Fri, 14 Jul 2023 04:00:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 134394C3D for ; Fri, 14 Jul 2023 00:58:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 93F1161C58 for ; Fri, 14 Jul 2023 07:57:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED09BC433C8; Fri, 14 Jul 2023 07:57:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689321435; bh=IfLcYQotq5TIIbvKcOUwPCwI16MLFXvxH0vMKPmHXh4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YlgziZ5qZnrI/ZzCgpJQBW/3vMznxbe4/tMTaOWjAA6EF2cK4lBLnNL2mkNCKfHWA R8e20j2i2h07MBg+DCXaSmmL//e2ejUrQJsgKxcHR/Z2bwVI+D40CxT6AjOGaNsM4F ow5oOovl/kjyOYUpZOGnGfSynKakM818vGuC0KWE/KPU2qTI42URs+fiSX1qxlpi4w L3RL+zPahMLboiF3YtXskoWAzPl+4IUe7ySCqToybU+i65cU3tIFbvL5MelXznPag1 k2dhvVl40PWeMfnnDFSagS375GTWBd+aeGMqpzYJhZkYD/3zAVxKAEhjNsDuIQdPPF 1Op37vMKurl5Q== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qKDfs-00D1NY-Ll; Fri, 14 Jul 2023 08:57:12 +0100 Date: Fri, 14 Jul 2023 08:57:12 +0100 Message-ID: <86r0pbudrb.wl-maz@kernel.org> From: Marc Zyngier To: chenqingyun001@208suo.com Cc: oliver.upton@linux.dev, catalin.marinas@arm.com, will@kernel.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com Subject: Re: [PATCH] KVM: arm64:Use #include instead of In-Reply-To: <3d56cf129c2cf1cf53f19ebe3c23a803@208suo.com> References: <3d56cf129c2cf1cf53f19ebe3c23a803@208suo.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: chenqingyun001@208suo.com, oliver.upton@linux.dev, catalin.marinas@arm.com, will@kernel.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Jul 2023 05:57:42 +0100, chenqingyun001@208suo.com wrote: > > Since is a kernel-proprietary header file, it > should not be included by user-space programs. There is no userspace involved here. > And is a public header file, > which provides some functions for registering > and unregistering probes How is that relevant? Have you checked *why* we're including this file? > > Signed-off-by: Qingyun Chen > --- > arch/arm64/kvm/hyp/vhe/sysreg-sr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/kvm/hyp/vhe/sysreg-sr.c > b/arch/arm64/kvm/hyp/vhe/sysreg-sr.c > index b35a178e7e0d..072471df8b1b 100644 > --- a/arch/arm64/kvm/hyp/vhe/sysreg-sr.c > +++ b/arch/arm64/kvm/hyp/vhe/sysreg-sr.c > @@ -9,7 +9,7 @@ > #include > #include > > -#include > +#include And this is at the wrong thing to do. > #include > #include > #include > I'd rather you *stop* sending these patches. There is no justification for them, and you keep doing the wrong thing. M. -- Without deviation from the norm, progress is not possible.