Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14640804rwb; Mon, 28 Nov 2022 03:32:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+v9OL+4ZHcpCh0aNhX6E6YHOKHAd4LOvHnzraqW5ZnD1kxOWKvcfkjfY1gJ3oNJOz60w3 X-Received: by 2002:aa7:db4b:0:b0:46a:c6d3:a237 with SMTP id n11-20020aa7db4b000000b0046ac6d3a237mr13640473edt.132.1669635124431; Mon, 28 Nov 2022 03:32:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669635124; cv=none; d=google.com; s=arc-20160816; b=MED6CjuGCC0SSHukr6psQ2cFyHuU2i+QsXNal3vMBMUVC+KcR4V+zFK+ss106KYnai 1b6jZJI52DXY0RMC1tYq0wcPLV4BHvJN6yeDZPmwRrWL6cs7Abc9kFhscnsCsbsOzoT0 JtPkmquA1VurfnXY8L4v7h2QdlO25QfPZdRyYjWEYpcJwNTUU0CI6xUp800K1q+cseEV kVnF6q2IvuR9madv1m7fa7Y3Sgfsbm/v7ZDhWsEtm88lkOF1cvUqGOes0ASS+PX3AL1A JRv1pjM4C32q+/th/PHaYcr5Y7GNuNDAHeYmPvQqvJvgFVF1HsmqBV6bCP5U4IOGd8OT J84g== 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=vYq5ZuJWkujUsxeQPZ4TIs/y7pAx1L5tNzp5RMUmD6k=; b=N1Jpn61tQi5LtthZ5ttvGdR/TizRA7tudv5oLZjsZdvfS9NuY8oG0BryL0YVSjMT4f m92U12FPxFy4Q6YhGEEfaWyfcgezzhMkyK7ioQafgN0mlF68f6FL6T3H/p+NMm3BuH2p v2UTg7djhZ0kp/R9lEpl4RFP9/k627XdsE1I4q7bIsZR80r40UcLooBV4tI16MpznfMo Jn3amKg04gW7oriR29fbDwgXbj/FO7c6WWXCOyb9RD5UYbfCaDStwspJ/r5tJD9Z21TS FNwveAOHgj9wne3hPkhQ2DWzC4N6Ul6c7x7t4njONLyaACQQMKorBH3xi39vm/b0sxUF qiew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bdC5LFj0; 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 gs7-20020a1709072d0700b007bf8440bc14si2937218ejc.784.2022.11.28.03.31.43; Mon, 28 Nov 2022 03:32:04 -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=bdC5LFj0; 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 S230168AbiK1LLd (ORCPT + 84 others); Mon, 28 Nov 2022 06:11:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbiK1LLT (ORCPT ); Mon, 28 Nov 2022 06:11:19 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1651193DC for ; Mon, 28 Nov 2022 03:11: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=1669633878; x=1701169878; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=O5qtyqw9+bir61hktTWiI7hNhwTVzyCALdEqd4k6WlQ=; b=bdC5LFj0sbFqOheLci7VBZZU3YvztCvLSbTUTEoBTuC+qX3AtPKjq4hJ Uus/xiExxPGFhBPzk5FSu+VFlga01QdgZ6HMromIpc4LNxPJ1NpBwUS/3 /IEOxBT4fQUwcPf0YaU+cKO20s1wEMFwGGxRap3+3yxXbSSmblou1J6JR FE43czupWN8I1Q9L+7PbGLZBVhWpE0K7RoUGbZt2fBU51X4q7gI4qIIFG 2lgJsAJQ1/Tm+pB67w+b9DEW38MhZx1QBnl1gYmubeKYCK3wBO8PVfZGc icOnx/iNrCVYFlhIsaAWolJjjuUh6Pmz/XplcCBYpJnHuejD+f8LGmxq5 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="376948191" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="376948191" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 03:11:18 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="768004994" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="768004994" Received: from gluber-mobl1.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.50.190]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 03:11:14 -0800 Received: by box.shutemov.name (Postfix, from userid 1000) id 126B0109836; Mon, 28 Nov 2022 14:11:12 +0300 (+03) Date: Mon, 28 Nov 2022 14:11:12 +0300 From: kirill.shutemov@linux.intel.com To: Vincent Mailhol Cc: bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, jpoimboe@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, pbonzini@redhat.com, rostedt@goodmis.org, sathyanarayanan.kuppuswamy@linux.intel.com, seanjc@google.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: <20221128111112.dzavip4eqqgpyrai@box.shutemov.name> References: <20221128091506.gp4l6klznqhigjxv@box.shutemov.name> <20221128101117.3614401-1-mailhol.vincent@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221128101117.3614401-1-mailhol.vincent@wanadoo.fr> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Mon, Nov 28, 2022 at 07:11:17PM +0900, Vincent Mailhol wrote: > On Mon, 28 Nov 2022 12:15:06 +0300, Kirill A. Shutemov wrote: > > 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? > > Even if I activate those two configurations, the compiler still > tells me it is unused: > > $ grep -E "CONFIG_FTRACE_SYSCALLS|CONFIG_IA32_EMULATION" .config > CONFIG_IA32_EMULATION=y > CONFIG_FTRACE_SYSCALLS=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] > <...> If you are sure is never included from asm-offsets.c, remove #ifndef COMPILE_OFFSETS too. -- Kiryl Shutsemau / Kirill A. Shutemov