Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14518182rwb; Mon, 28 Nov 2022 01:54:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf5YY4c1nkYBaaPoUyztCy2xHfPje50yl/WPS9zHXTgJLEF1loi0Kai9KKj5umkjOEORu7d7 X-Received: by 2002:a05:6a00:1941:b0:572:6e9b:9fa2 with SMTP id s1-20020a056a00194100b005726e9b9fa2mr31457037pfk.8.1669629263154; Mon, 28 Nov 2022 01:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669629263; cv=none; d=google.com; s=arc-20160816; b=ZXhl1j9SaovWUXCymaiwxw6PVeLrS8SAQF5aIHjIBspHvwQuJoV4LHey2Du2zLFKge 0ml9SspEFi/VZDJamJkj2JeJMJWaxS/1vS6B1UnVSXGZyLQBkVOnjbbV4XRm+JX4y5GW aXKCY3+5ZzA7DaHLWpGmsl81qAaTBIXN65md9OhcGrxFtvJt727xAZ1JtlwlzbSqT+A4 xRpza3n1WPUkzLEPpX2UyRyseue92fimnOgX/hqceuqH6jL0oQtCBFqjiFQqDy0uLZFc 4C2rfjXCEQtLxNXzuYsSISWwE4QRcFrKU55GTHQOoItVQlX3YvZq2UTOHhl1bKJDj3CP nl9A== 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=jh5HphS/W92QgI8hPelGBnxaTPp5rE8om9SBTFYYfU0=; b=BSeDFfJMwtTlqRaZPCTYgD+Ypk5wu95GI2XNcNMQRBlkaM5c0wPgvpPYD1NHLVxXqw fAdzTS6rLbqH8JzgpEr0EL5g5AMP9F2RjBuWZ75MN8PK/K1z9L8ETV3yWiPL9Exk+kc1 WpVJasgE4hifSDWrsr8YMc7Aq0590KVIEQrtLa+ddrbRUZQoZrB/8LSde3g0bh2CzLv1 Pr+DUhqF+5UnR9CZ7v43wA1GZkSUKwwSFsbk9upQiaUI3TCNGQC5ERRQgq1KMAUlKF3v sG6IBMTqacSCzDs3zS7sEFggdQbw+4AlkhR2kK+FxTbrDB0Bf+qfDQvNy5I1bWxx/6Hw ZghA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=i42+vAz9; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pl18-20020a17090b269200b001f06a6fdb2fsi14410586pjb.27.2022.11.28.01.54.12; Mon, 28 Nov 2022 01:54:23 -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=@intel.com header.s=Intel header.b=i42+vAz9; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbiK1JPZ (ORCPT + 84 others); Mon, 28 Nov 2022 04:15:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229849AbiK1JPV (ORCPT ); Mon, 28 Nov 2022 04:15:21 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23839A1AF for ; Mon, 28 Nov 2022 01:15:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669626918; x=1701162918; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=GhVK2iv9vpjkCJP8+uH/K+u8TFdUdhWlY7FMTn9JVZo=; b=i42+vAz9Zoz6tIqHEIf6VOQe/hEWZnwdFq+5VdNAUfKU1MjHXOePYj4q qtzVnHxDuBzoS9X3AVDppzP9EUpy95hrWwaBv5eJ5jjCjL+r8Ac+diXQ9 dDWfplMwbqGhWa4UJf5Jq82JSbMIdJDJVcdUVQw/Z528w96RTpnSKpxzC xmVB1gqSMleHHio3RLMSE+MCmXXRSzD0Fx1yA8H3ocgzL2uykyy7IRIio ZZ+JRUYGtyPW77cuMAagGlf5Af5ZSirBznhMevsOSwJt1iS7rH7Silc6H 97gOZ5CJZydeUMuP3QoFglwkKGPqkBI73F8ad9J3uJK4icOCdWU19NUua A==; X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="298141244" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="298141244" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 01:15:12 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="732067347" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="732067347" Received: from gluber-mobl1.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.50.190]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 01:15:08 -0800 Received: by box.shutemov.name (Postfix, from userid 1000) id 270C5109780; Mon, 28 Nov 2022 12:15:06 +0300 (+03) Date: Mon, 28 Nov 2022 12:15:06 +0300 From: "Kirill A . Shutemov" To: Vincent Mailhol , Steven Rostedt Cc: Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Josh Poimboeuf , Kuppuswamy Sathyanarayanan , Al Viro , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/asm: Remove unused COMPILE_OFFSETS macro from asm-offsets.c Message-ID: <20221128091506.gp4l6klznqhigjxv@box.shutemov.name> References: <20221127062335.330758-1-mailhol.vincent@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221127062335.330758-1-mailhol.vincent@wanadoo.fr> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 Sun, Nov 27, 2022 at 03:23:35PM +0900, Vincent Mailhol wrote: > Following [1], the macro COMPILE_OFFSETS becomes unused: Really? I see #ifdef COMPILE_OFFSETS in ftrace.h. Hm? Have you tested your patch with CONFIG_FTRACE_SYSCALLS=y and CONFIG_IA32_EMULATION=y? > $ make W=2 arch/x86/kernel/asm-offsets.o > <...> > arch/x86/kernel/asm-offsets.c:7: warning: macro "COMPILE_OFFSETS" is not used [-Wunused-macros] > <...> > > Remove COMPILE_OFFSETS macro. > > [1] commit debc5a1ec0d1 ("KVM: x86: use a separate asm-offsets.c file") > Link: https://git.kernel.org/torvalds/linux/c/debc5a1ec0d1 > > Fixes: debc5a1ec0d1 ("KVM: x86: use a separate asm-offsets.c file") > Signed-off-by: Vincent Mailhol > --- > arch/x86/kernel/asm-offsets.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/x86/kernel/asm-offsets.c b/arch/x86/kernel/asm-offsets.c > index 437308004ef2..cf2e02bafbef 100644 > --- a/arch/x86/kernel/asm-offsets.c > +++ b/arch/x86/kernel/asm-offsets.c > @@ -4,7 +4,6 @@ > * This code generates raw asm output which is post-processed to extract > * and format the required data. > */ > -#define COMPILE_OFFSETS > > #include > #include > -- > 2.37.4 > -- Kiryl Shutsemau / Kirill A. Shutemov