Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1860912rwr; Fri, 28 Apr 2023 02:55:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5AbYYrev1pVs2/HOPQC8mUoRX+JexYtSRORQ/GUKaHTCQTL6KyAvAfm2zX3+Qw0srTag/6 X-Received: by 2002:a05:6a21:7884:b0:ec:88e1:1452 with SMTP id bf4-20020a056a21788400b000ec88e11452mr5395726pzc.62.1682675729011; Fri, 28 Apr 2023 02:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682675728; cv=none; d=google.com; s=arc-20160816; b=lfphGjcXjbMnq1u8LHB6S1hiZUrTOZKw8/5cZ1JTWmO1uM5dTzIfwvjzj2Enndad1S 2NV2ApfBB9JZPlDxF6bRCqFbucmsVZ+uifS1AjIZNyhcrlGyIZ0zuuhuX52ZCL9JsAdT R3PPmndOsAOjFmCqUT3pxmd037OIJEQnA5l9CJH2HVkRZQ6mQUw4yCJLZfiohS56X83r z7+iC8ylQI4PMPEoOSR3qPdegMJzbp9+70+6xqfLDLQ13tGfK9m9wlD1qCmSrE9LOQLZ Vhc9BY/zBPr6s97P4zIEFtKw95r8Km8+1/cP9rRNr+hNafwenRfUQ2IKjXzj4klm/2ji qZag== 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; bh=XF7TzJPla4DjfGyNZjRZe8WddnRMZogoRxw+y3NYu0A=; b=nEwywVA4JITxquKm0KUf9T87m2vWZc4weTWTWBHPDmHmCGHs++qz+l7JO47EJlnwO+ G+4xiBQmMYyn7/+Y5u7Geo3qXIydjOxE6b8LNzeyCG+iXReL9XASPmP/rTv3XXmHwBwp TdhTsagQXKxm49qyDkRp2fLmFhmGnybiuW7ZBGJRClaukbPqPxWzD4KLOZJrESWzeIOZ UZdD6E7T3GcQw3dPMFZGJtczIM07DJvAuWdfzbL9sr8Uqbz5o01yIfRs4y/XYvwG+O5p +xbdNqrpgYg9gasQEWcwb1KStEbtnH2VAAmT4Ft8f83MBOj7fPFNNFdzp1CHZUFuIFrc zt0Q== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020a63d950000000b00502f9a7edb4si20291232pgj.340.2023.04.28.02.55.16; Fri, 28 Apr 2023 02:55:28 -0700 (PDT) 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345844AbjD1Jyn (ORCPT + 99 others); Fri, 28 Apr 2023 05:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345437AbjD1Jya (ORCPT ); Fri, 28 Apr 2023 05:54:30 -0400 Received: from out187-2.us.a.mail.aliyun.com (out187-2.us.a.mail.aliyun.com [47.90.187.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4534E59E4 for ; Fri, 28 Apr 2023 02:54:05 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047206;MF=houwenlong.hwl@antgroup.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---.STCEPbd_1682675571; Received: from localhost(mailfrom:houwenlong.hwl@antgroup.com fp:SMTPD_---.STCEPbd_1682675571) by smtp.aliyun-inc.com; Fri, 28 Apr 2023 17:52:51 +0800 From: "Hou Wenlong" To: linux-kernel@vger.kernel.org Cc: "Thomas Garnier" , "Lai Jiangshan" , "Kees Cook" , "Hou Wenlong" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , , "H. Peter Anvin" , "Nicolas Schier" , "Masahiro Yamada" Subject: [PATCH RFC 19/43] x86/tools: Explicitly include autoconf.h for hostprogs Date: Fri, 28 Apr 2023 17:50:59 +0800 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 The relocs tool needs access to the CONFIG_* symbols found in include/generated/autoconf.h, however, the header file is not included. so the #if CONFIG_FW_LOADER code in arch/x86/tool/relocs.c is never compiled. Signed-off-by: Hou Wenlong Cc: Thomas Garnier Cc: Lai Jiangshan Cc: Kees Cook --- arch/x86/tools/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/tools/Makefile b/arch/x86/tools/Makefile index 90e820ac9771..8af4aeeb72af 100644 --- a/arch/x86/tools/Makefile +++ b/arch/x86/tools/Makefile @@ -38,7 +38,9 @@ $(obj)/insn_decoder_test.o: $(srctree)/tools/arch/x86/lib/insn.c $(srctree)/tool $(obj)/insn_sanity.o: $(srctree)/tools/arch/x86/lib/insn.c $(srctree)/tools/arch/x86/lib/inat.c $(srctree)/tools/arch/x86/include/asm/inat_types.h $(srctree)/tools/arch/x86/include/asm/inat.h $(srctree)/tools/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c -HOST_EXTRACFLAGS += -I$(srctree)/tools/include +HOST_EXTRACFLAGS += -I$(srctree)/tools/include \ + -include include/generated/autoconf.h + hostprogs += relocs relocs-objs := relocs_32.o relocs_64.o relocs_common.o PHONY += relocs -- 2.31.1