From patchwork Thu Nov 24 12:14:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hou Wenlong X-Patchwork-Id: 25493 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3365046wrr; Thu, 24 Nov 2022 04:26:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf7XsnPVWbTZP2gCoefFx3geb2BLpoNXUDt09dfU+HW7Q/ANrYdf9uwnUFgh87Q86Zdfltyw X-Received: by 2002:a17:90a:73c2:b0:200:a7b4:6511 with SMTP id n2-20020a17090a73c200b00200a7b46511mr34263663pjk.101.1669292818080; Thu, 24 Nov 2022 04:26:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669292818; cv=none; d=google.com; s=arc-20160816; b=P2Yn6PmI4Od1Ddb1ujoXB9Ft1HUNpqIRN7X7I/m4sdd2lWRhh6saIX44lYalmQxJw2 QMv7Ef8KGfFKCBdn6rNmiAbd3XuVSXMerT1Ofg5jqsW0VtsF2uQV+b0/eaK08DaL2mod gFGoIkj0jId/lenKMp6d6VEXnMD+wXkfrCW9QI7/2coHrvE81q38zJ3f4eJbqHJuAOcJ K1Y5U2eKbraGQiUCeMI19e+6Lbb2NCvjWvwdOPE+cWzO66CP0eIVFyeM9yewSouN1pSp 0ocEAOFAiFd1ayN0YI/KiZ10/3lr1wWMQpNNt5Ig0JmXIKB6umnXD0a61860yN1MsJSq 0OtQ== 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 :message-id:date:subject:cc:to:from; bh=gA6F2jmKMYiJEtGpoYgtXYpAkOY/UO09gQTwgAR094c=; b=uTE+cUUnWAx/ZGrQoPlmEc1k9Vi5cOn1PIC3LX1Z3uMEwQBuGkyYeNbZKVAEf5HviZ wIBjRfjYb5/vmjrz3xbJkWN9VnMcRT3M96Vq7EtlkpSf/1zYhj/DE5gQiWIxGvs4pUE8 Iw2dGWNSXnjQ6n7nsNSUzYt8r/IlcnJcIJonHGBQDxXH694BoNJhvSHf25e2hLcweMjI Akcndyajk5oAODjKLJa+DzeAf7BU98JiEiHNoKTG4+Nf49nLUxWTWZmYDVRijkWBPpQW d0kUhXBEwXi33q0juMlSaqVAMj68xKu36bNW/GepPNXCz/7QsPE+Ml61V6oOcY0CCVf7 TZWQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a63ea4e000000b0046ef23ae9a6si1213943pgk.848.2022.11.24.04.26.45; Thu, 24 Nov 2022 04:26:58 -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; 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 S229647AbiKXMQt (ORCPT + 99 others); Thu, 24 Nov 2022 07:16:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbiKXMQr (ORCPT ); Thu, 24 Nov 2022 07:16:47 -0500 Received: from out0-129.mail.aliyun.com (out0-129.mail.aliyun.com [140.205.0.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9BCEA28B8 for ; Thu, 24 Nov 2022 04:16:45 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047199;MF=houwenlong.hwl@antgroup.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---.QFudH94_1669292202; Received: from localhost(mailfrom:houwenlong.hwl@antgroup.com fp:SMTPD_---.QFudH94_1669292202) by smtp.aliyun-inc.com; Thu, 24 Nov 2022 20:16:43 +0800 From: "Hou Wenlong" To: linux-kernel@vger.kernel.org Cc: "Hou Wenlong" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , , "H. Peter Anvin" , "Luis Chamberlain" , "Greg Kroah-Hartman" Subject: [PATCH] x86/tools: Explicitly include autoconf.h for hostprogs Date: Thu, 24 Nov 2022 20:14:10 +0800 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750380386209167222?= X-GMAIL-MSGID: =?utf-8?q?1750380386209167222?= 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. Fixes: c8dcf655ec81 ("x86/build: Tuck away built-in firmware under FW_LOADER") Signed-off-by: Hou Wenlong --- 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 bddfc9a46645..941b24431696 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