Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15422856rwb; Mon, 28 Nov 2022 11:22:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oGCOvyyVhWU4JDBfkY+1E3c5P0xdpqExuqDeBcfFmg/PPqiKLpmyvlVaJqvLaR7/FOaFJ X-Received: by 2002:a17:902:8a85:b0:189:2df3:5e42 with SMTP id p5-20020a1709028a8500b001892df35e42mr35320759plo.29.1669663347898; Mon, 28 Nov 2022 11:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669663347; cv=none; d=google.com; s=arc-20160816; b=MlwgNs5DbX05nkVmq7MV5Jaz6b+XGGcwR8sIHtud3YaG06g+ZkeZV4zt930ne8BeZg nVLDzcreH8kSJ7qWcHYGYcxQ58E7wpptvyEDBrZ/YKajDXepcivPXSsN1gfAPzQ6m6on Dp+WJiCcItCb0HGDav0Oe4foyONNH1jZnISU07o2N6EHhjUBrLJji4TBaHxpYPUAs3Q1 87PrIrN0jgQuZkFqhnSz7BrIb6x3dxbvNg8yy75WhQpTP99WIdifZ+s2A7t7ze7n5pru +I/e1QSgScVacEe8Tp/R9sW4tbHmSzDSIi8yj+u35xBQwAqx/oWOATiZZEmWxyIXNcSy r+cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0LR/R7F4a5BTbcaj2KYjcb+1IqAlm9qXCSz8C+xQup0=; b=KCdMlRYWRaoHvH1hzuWGmjZlgyEVKux+a5evkhvnMRkL8zT05miXQjBDIShYuM68+G OtTr5kLeNicNgEFnThCUGs6C6S/C8xvVCPEBuYER8JlXDm0aEVCHrK2x+EiGM8Qd5U2+ OIbxDgbxjTO2Zm0IEgS/QMIdzkHLfQaoF5m6GQmut8e12TR2VGA3OYi7A27AMSC9O2qw F07Z6HsNY9edbNx7pJKIsbD9qtdmrZEsokdlnoTWzJIe/MYqV0Fc0xOhOxvEgkrQfmvX 0hTnSj1DF1J6DhpRMjxdoSQrdLdAjH7LZP4aUQsYHSzzx9PbwrLf0dpL63M1r3KyM28a Q5kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=LBHNKAvr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a17090a64c300b00218b999150csi11779623pjm.142.2022.11.28.11.22.16; Mon, 28 Nov 2022 11:22:27 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=LBHNKAvr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234258AbiK1SU2 (ORCPT + 84 others); Mon, 28 Nov 2022 13:20:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232884AbiK1STm (ORCPT ); Mon, 28 Nov 2022 13:19:42 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E4F42ED4F for ; Mon, 28 Nov 2022 10:06:23 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id 62so10605884pgb.13 for ; Mon, 28 Nov 2022 10:06:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=0LR/R7F4a5BTbcaj2KYjcb+1IqAlm9qXCSz8C+xQup0=; b=LBHNKAvribLzIS35cY/hBvF/+dGWRqa72gAqVfakLP8finS4t62fRt9xXLkVeJJpZ/ OkLgA9P+ATYyHa68ItAzkyRBIfTH4NsQ6wMC1yoPvhgf0To1hyyNSMo52MTJTRz3W9JB ZiOD2PQWylH3keNmyQX/lrzLY31w4DoBQvvu0BWygNz63bbJ2Jj6H0/QdAHqNafHsVFb Mi46kVBJaA8klqzx+qSRtwA8msNFdXSaQm7s/dxQAwO6blI+aVsVu5gETjKyf395ib3c aPuC6kksD3yRugtLtnL0R5aMWe0sEpBfTIgSsLwX+yePUzwpc14OQvdizqigtQe4C9hc 3N1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0LR/R7F4a5BTbcaj2KYjcb+1IqAlm9qXCSz8C+xQup0=; b=W2AqQiHemT1I4eN2SCOsKHktosZijj03Zu/gUdfnMHWCfXxoBNaDfMmYjP4wROlEnS Q6R0F+ed2EfJUVo41j26hmUXXGM2siMA81LxnOhCLgWtbocq6FlzWBpnWaevABk0qD2m O7snHehFGBHUHpZEGcYs1ThdzhMq4orrqoysDCgjYH3+GdPOpjN5a55ULnNZcYN6agDB wswQoXzLCxVWtWHNKDE/mvBgUwib60NTx+6eTeM7j72pcD9EjSFiA6gCbNHcaKrz6cww xbhe+6y5wUYWbcpj4gWWzxROqrikhKTeFMOJxyNS3WNn9K55IZHzPS14CgpFCZXmEt21 y5TQ== X-Gm-Message-State: ANoB5pmjSZQzwJd44b3BmUdprmHy/HgGXbRHyvWfKqSdmLfi8tngn1Ve hsjwO7g0T618DbzpRDJGSsUC4w== X-Received: by 2002:a63:ef50:0:b0:476:e813:1ae9 with SMTP id c16-20020a63ef50000000b00476e8131ae9mr31988019pgk.305.1669658782570; Mon, 28 Nov 2022 10:06:22 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id i17-20020a170902c95100b00172fad607b3sm9152172pla.207.2022.11.28.10.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 10:06:22 -0800 (PST) Date: Mon, 28 Nov 2022 18:06:18 +0000 From: Sean Christopherson To: Paolo Bonzini Cc: Steven Rostedt , 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: References: <20221128091506.gp4l6klznqhigjxv@box.shutemov.name> <20221128101117.3614401-1-mailhol.vincent@wanadoo.fr> <20221128111112.dzavip4eqqgpyrai@box.shutemov.name> <20221128124513.76392c3d@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, Nov 28, 2022, Paolo Bonzini wrote: > On 11/28/22 18:45, Steven Rostedt wrote: > > > > > > If you are sure is never included from asm-offsets.c, > > > > remove #ifndef COMPILE_OFFSETS too. > > > It is never included from asm-offsets.c but it is still used by > > > kvm-asm-offsets.c: > > > https://elixir.bootlin.com/linux/v6.1-rc7/source/arch/x86/kvm/kvm-asm-offsets.c#L7 > > 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.