From patchwork Tue Jul 11 08:47:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Jinchao X-Patchwork-Id: 118388 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp358721vqm; Tue, 11 Jul 2023 02:53:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfc/1BYGwHy3C9D5EZmyIlIGJZqqtWKUPpaAEMuSWIvDVVH0AXQ9j79fIHRt9LHSSwfalT X-Received: by 2002:a17:906:8150:b0:992:aab0:533a with SMTP id z16-20020a170906815000b00992aab0533amr44120ejw.67.1689069187288; Tue, 11 Jul 2023 02:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689069187; cv=none; d=google.com; s=arc-20160816; b=isMSVTNm18kWyBoAlTODUv9pYxeQ4CB/9A5e9qyD1OhyDzxYWxEY16Lgi0S30asDOl w+V5IH1hlclujHUpeRPzu9huzDY/aACONQSDk3DCvyeVVmHlA85q7O+oAMGSpg1gnRnY VdEsV/oaJUWVOhMIbSCn/YLwV4YjCkdQgIaTH2hycehSGx4Uk7lzPBUFvFNLspoDoL57 sNIwQozsDrtHBe+rHiAOlDaAHEOAv+czZyEN6jwBU3a8Yp0QC1jj+52aH+XXwp8AJqRb +bdy+a4uw2zGNeSvmT+lE3tuzWPInL5fVKuwTuC9gcciEsaE30T4rHSUX0uHN6v1NnY6 hKIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=EO7oeUgfGT7aZrG7WVdaYqFkdCNsbCtmQG1de36NC88=; fh=JmXP5WAZRyd/dTy5DIQdP0bTilfRIZKCXs2GASnUxp8=; b=iLJt914hX7xlAmq2W8rrT25WpFqOrlN1GhfcAG4l/KSwatrwZXl/m2eHIE2A/e8VvV yueRaIOSz8wu6wUmpdl6VOghR1rrW2OuZbdCuNeugDS7pOOS2fZsFW9dGXo9QTYVxCVb WtFjfsRxTJakGYVV5o0LbVxJ8Zv578Abdps1vVZbVtUtixnFSX4b9jjgA2Kl7v87J73Y ChzKyLKvUCAPfFZqKXFmXQeIVRu/I8z/7wU/Nw8OasjaTmtsPo8zxxyKQiQf1gdrGbGO BoZBtA/4ykLQjIgYCkO17/lgbcNRrcYJKa9faEaMrJL7cwolnoerybYaHDC/XxUqoNbG jz7Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a17090685c900b00992ac8614b7si1709986ejy.69.2023.07.11.02.52.42; Tue, 11 Jul 2023 02:53:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbjGKJ2S (ORCPT + 99 others); Tue, 11 Jul 2023 05:28:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbjGKJ1f (ORCPT ); Tue, 11 Jul 2023 05:27:35 -0400 X-Greylist: delayed 1197 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 11 Jul 2023 02:25:23 PDT Received: from wxsgout04.xfusion.com (wxsgout03.xfusion.com [36.139.52.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82044170B; Tue, 11 Jul 2023 02:25:23 -0700 (PDT) Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4R0ZHG0d6Pz9xg11; Tue, 11 Jul 2023 16:46:50 +0800 (CST) Received: from fedora (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 11 Jul 2023 16:47:31 +0800 Date: Tue, 11 Jul 2023 16:47:30 +0800 From: Wang Jinchao To: Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" , , CC: Subject: [PATCH] scsi: aic7xxx: fix firmware build fatal error Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Originating-IP: [10.82.147.3] X-ClientProxiedBy: wuxshcsitd00601.xfusion.com (10.32.135.241) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1771117411952754346 X-GMAIL-MSGID: 1771117411952754346 When building with CONFIG_AIC7XXX_BUILD_FIRMWARE=y, two fatal errors are reported as shown below: > aicasm_gram.tab.c:203:10: fatal error: aicasm_gram.tab.h: > No such file or directory > aicasm_macro_gram.tab.c:167:10: fatal error: aicasm_macro_gram.tab.h: > No such file or directory Fix these issues to make randconfig builds more reliable. Signed-off-by: Wang Jinchao --- drivers/scsi/aic7xxx/aicasm/Makefile | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/scsi/aic7xxx/aicasm/Makefile b/drivers/scsi/aic7xxx/aicasm/Makefile index 243adb0a38d1..a3f2357a3f08 100644 --- a/drivers/scsi/aic7xxx/aicasm/Makefile +++ b/drivers/scsi/aic7xxx/aicasm/Makefile @@ -61,23 +61,11 @@ $(OUTDIR)/aicdb.h: clean: rm -f $(clean-files) -# Create a dependency chain in generated files -# to avoid concurrent invocations of the single -# rule that builds them all. -$(OUTDIR)/aicasm_gram.c: $(OUTDIR)/aicasm_gram.h $(OUTDIR)/aicasm_gram.c $(OUTDIR)/aicasm_gram.h: aicasm_gram.y - $(YACC) $(YFLAGS) -b $(<:.y=) $< - mv $(<:.y=).tab.c $(OUTDIR)/$(<:.y=.c) - mv $(<:.y=).tab.h $(OUTDIR)/$(<:.y=.h) - -# Create a dependency chain in generated files -# to avoid concurrent invocations of the single -# rule that builds them all. -$(OUTDIR)/aicasm_macro_gram.c: $(OUTDIR)/aicasm_macro_gram.h + $(YACC) $(YFLAGS) -b $(<:.y=) $< -o $(OUTDIR)/$(<:.y=.c) + $(OUTDIR)/aicasm_macro_gram.c $(OUTDIR)/aicasm_macro_gram.h: aicasm_macro_gram.y - $(YACC) $(YFLAGS) -b $(<:.y=) -p mm $< - mv $(<:.y=).tab.c $(OUTDIR)/$(<:.y=.c) - mv $(<:.y=).tab.h $(OUTDIR)/$(<:.y=.h) + $(YACC) $(YFLAGS) -b $(<:.y=) -p mm $< -o $(OUTDIR)/$(<:.y=.c) $(OUTDIR)/aicasm_scan.c: aicasm_scan.l $(LEX) $(LFLAGS) -o $@ $<