Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15499251rwb; Mon, 28 Nov 2022 12:20:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6HzUD7jGMej2ijxD33V1b+Q0kYrP+oiyqyhqc5CIdNAGw2bC9Sh8Mtmw0ah43PHEQpJmwG X-Received: by 2002:aa7:d555:0:b0:464:6485:419b with SMTP id u21-20020aa7d555000000b004646485419bmr35093959edr.382.1669666809384; Mon, 28 Nov 2022 12:20:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669666809; cv=none; d=google.com; s=arc-20160816; b=rMD/VVZSjIdMdDOS+qEK4yGB4tY2FXpBw9vX69q1QSCtFP9x/i91XA4b+Vd0RBdsnv kMwqH6sNJX+iVS+Z/uCxfN78G+40xyR0SMJRigNiS4TU9GHstJmOAwdu56HxkkS8Mykf KDWUr4gVI+61ofgswMtxDrYWtPjCyRDraOaY0MDkIiIhlimGh59AncNmJ6t8XZPK5Llq ehQxUqf73jdWDAj/F8hMWm1MoMWFhNbb0PSlOsWDpJenMsnZtsUfxKA/dZzfC31yIjr6 OkBArKLaKH7/R5XIANw8yWb2M6VQ567zLBzgoJgd+QzHKaIFYL1qWr8vKtBXPSshlng+ Uxew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=dSbxiTU5EjhuWO4NRbfcLqaxUHjsDdoFrCh44fYVuBA=; b=T0Z/P5qujy9w7iYHI4bEmCwplib6d7oi9W5ug2sj27mMdFOsCXfd40nMwhIO+OJF2v cS6K9eTBVWYmNmwhxFYhNx2XPM1iuK2byFvY5V11wCIvzKrXZKeZYKH7F2EjIsqQIF7r Dapr+Ho4lqQTUwGAQSlEfrYah5kU/a8/3phn/1Vzf2uOcIoBdCWESkc7hklcT5+1NHXy tWan89bnNZKFAjtzEwi9gaTjbpewvkIrGJMtc2LBGQLI3NyREATCTyywpD7Y0LIt+Wjn alnyhD6zh2uof4z3vWJy5I4LF+UEGy30L97pr0zq3lPyME9pwHGpDnZgPC9qgQEkazNe +feQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a05640250cb00b0046a642710cesi12281005edb.254.2022.11.28.12.19.41; Mon, 28 Nov 2022 12:20:09 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233121AbiK1TLC (ORCPT + 84 others); Mon, 28 Nov 2022 14:11:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231638AbiK1TLA (ORCPT ); Mon, 28 Nov 2022 14:11:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3212E12D0C for ; Mon, 28 Nov 2022 11:11:00 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C26F16136F for ; Mon, 28 Nov 2022 19:10:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8D7EC433D6; Mon, 28 Nov 2022 19:10:57 +0000 (UTC) Date: Mon, 28 Nov 2022 14:10:56 -0500 From: Steven Rostedt To: Sean Christopherson Cc: Paolo Bonzini , Vincent MAILHOL , kirill.shutemov@linux.intel.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, jpoimboe@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, sathyanarayanan.kuppuswamy@linux.intel.com, tglx@linutronix.de, viro@zeniv.linux.org.uk, x86@kernel.org Subject: Re: [PATCH] x86/asm: Remove unused COMPILE_OFFSETS macro from asm-offsets.c Message-ID: <20221128141056.29ccafd6@gandalf.local.home> In-Reply-To: References: <20221128091506.gp4l6klznqhigjxv@box.shutemov.name> <20221128101117.3614401-1-mailhol.vincent@wanadoo.fr> <20221128111112.dzavip4eqqgpyrai@box.shutemov.name> <20221128124513.76392c3d@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 Mon, 28 Nov 2022 18:06:18 +0000 Sean Christopherson wrote: > > > IIRC, the reason for adding that was because that logic was screwing up > > > asm-offsets.c. I'm not sure it screws up kvm-asm-offsets.c though. > > > > > > This is one of those cases I wish I commented that code better :-/ > > > > I don't think KVM includes linux/ftrace.h or asm/ftrace.h at all. > > >From include/linux/kvm_host.h > > #include > > Even if that didn't exist, saying that XYZ never includes a header is a dangerous > business, it's all too easy to indirectly include headers in the kernel, now or > in the future. But going back to the original intent of COMPILE_OFFSETS. I believe it was because some code that did not work with the auto generation of compiler offsets and was a way to hide them. I do not know if it is still an issue or not today. -- Steve