Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14575471rwb; Mon, 28 Nov 2022 02:44:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf7noW9q/MB7Q8aeuj8aNMRtj4wCGbfbQRmhyuiGQrJTJAWaFAh8CoDYfqeDVfhAlaT3bthB X-Received: by 2002:a17:906:3c12:b0:7ad:7e81:1409 with SMTP id h18-20020a1709063c1200b007ad7e811409mr43080403ejg.326.1669632264147; Mon, 28 Nov 2022 02:44:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669632264; cv=none; d=google.com; s=arc-20160816; b=dfRYgIZti7UP/ouwr0oH7eHDrBiKIYdbLOmSrVx5Qo1OazOgLoxPFbGSQvWPWee0Xg enaLxjrDL2vktBI1F3NrEzE1DksgG/43d9Z33JFl/eAcQZaW0TGMkLXs2OxFWuUgLI0R 7kNq+lKLv6DhYcLtnhWv9A52xqAE8T5Kq6fOHhXlkrZB1XEOw/5Q86CZAGoM9w3XhG4f eLyYY94ym++9towlaWLR+tMLxobtaG+b77wEuPlYPSiC/XvnkmKjAga5d9+IuOq18qaW R+y2uj6xSliZ1O8cYV0cvfspL1Fg8vLrZHjGeWrwDuVaWSM/hRwa9xwx1UFvq/Iw0r1A XL7A== 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:date:subject:cc:to:from:sender :dkim-signature; bh=7UFTSOxMLMVmhaB47uYlAotT04cbRejKT+vXyIBeHRo=; b=AeyzFENJrL+5WdiWMmsaQbQVxNtWSiP8Ft33Ue/cQixV+pUsjGUzHzjUZlvrkAZ6Ou wRITjO8rgdoQbkYXsp6TYswi5T3RP/qbIITt1vRMzR8zb2bGpeeJp2WtNKmgjIzzHjKg kBNiyd5AVnxTSny/NhQ/LxY48jjEebTohS6JV9I+4P1JXZVMP5eeO37+GhdPtO4dH1q2 x35Cd3FGa05RVn2H08ANsSFehdNBBKS8cv8ru0NAcSAodqT6lB5kh1Sy+lfHupD8EzHz XvZ56VVmrIwcThvAAGrIizraMri+nqt23cjTYj+Z/l01jpXZkc8fHqVmwiut9Q2dvWGM 1tbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eGaD+ltN; 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 30-20020a17090600de00b0078da3218b54si8169910eji.171.2022.11.28.02.44.00; Mon, 28 Nov 2022 02:44:24 -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=@gmail.com header.s=20210112 header.b=eGaD+ltN; 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 S229905AbiK1KLZ (ORCPT + 84 others); Mon, 28 Nov 2022 05:11:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbiK1KLX (ORCPT ); Mon, 28 Nov 2022 05:11:23 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 081D927A for ; Mon, 28 Nov 2022 02:11:23 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id l7so7493174pfl.7 for ; Mon, 28 Nov 2022 02:11:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=7UFTSOxMLMVmhaB47uYlAotT04cbRejKT+vXyIBeHRo=; b=eGaD+ltNrN9qCiuD1IQf8J9bygIydZ0kegg5cMeRI/YuSe+lCc598x3hl1BbSsfbgU 32T2d4LdcOxgcpHwT5b1PyhNh1E6x55F8V1ICS1vvnw1VZk2sdeV4aajsG83Nx0B7Ddr eHkpqdRG4Z33IBfmYU060AFp0MJ59IfxKvvJyIfIyfSt06q1abdRszpSy+rcZbkGhGdH wed/yrxKwteTRK6bv7f2bthgM6YtnVPo20vdTGziSlfdC7tBdqSAOtkn3hbz6p6H/TF1 +HLN7F9WtaobcmzM1rG0dAtinC7iAGGJAcd1YrKE24OtBnVnb5JD1T+6x8BVwHzUdt7B R6pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=7UFTSOxMLMVmhaB47uYlAotT04cbRejKT+vXyIBeHRo=; b=2m4ueHtn3aDejB4FnowWgbS8OOqocXVHK0375N+Qq4bjW68Lj37iCESA85rGnyWaVE N8obt9UmD8PO94YiT1lzT9uDVFoq9vCjN221gSFIH9xG5N2OSpo27eWGEtYUuAHI9mFY hHZLlM33/mxGUApaXlkCWdZ2DkW5seUa1J7lWkCKaONTLr7G7PD3NYhRK2Rvrw76xv4c CD2iHcDf8jRD9tdT8J+U04XbwSOlbzf8yJ84llOqAItxpY2kZ+/iEJ/Lp0HJbzpLLWv4 MWQMTzTHmmT7TmDFI3o14aykdznb8B5i4XFXb9+vIDD7tQhBfTHFKoLNfAcG4RWZzb90 /RbQ== X-Gm-Message-State: ANoB5pklkqJuRxujfhu09exzsu2qnOMhWNETLDEnbLU+WmEE+Aka6yBP pScZmiiZTEoaLwR3VsgFucA= X-Received: by 2002:a05:6a00:4205:b0:56b:a7cd:f47a with SMTP id cd5-20020a056a00420500b0056ba7cdf47amr51868298pfb.22.1669630282429; Mon, 28 Nov 2022 02:11:22 -0800 (PST) Received: from XH22050090-L.ad.ts.tri-ad.global ([103.175.111.222]) by smtp.gmail.com with ESMTPSA id z20-20020aa79494000000b0056f0753390csm7836012pfk.96.2022.11.28.02.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 02:11:22 -0800 (PST) Sender: Vincent Mailhol From: Vincent Mailhol To: kirill.shutemov@linux.intel.com Cc: bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, jpoimboe@kernel.org, linux-kernel@vger.kernel.org, mailhol.vincent@wanadoo.fr, 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 Date: Mon, 28 Nov 2022 19:11:17 +0900 Message-Id: <20221128101117.3614401-1-mailhol.vincent@wanadoo.fr> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221128091506.gp4l6klznqhigjxv@box.shutemov.name> References: <20221128091506.gp4l6klznqhigjxv@box.shutemov.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 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] <...> > > $ 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