From patchwork Fri Aug 11 10:41:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Song Shuai X-Patchwork-Id: 13350553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B40EFC001B0 for ; Fri, 11 Aug 2023 10:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n5cN4yS1dtxbKfkv4y3XyMjXyG/IDmTPbpprjqEXz/0=; b=O8DVufxiAAZ5Dj IOCiDe0E8U0aAwgap494bpeLmTT3mN4flRXV3Dkt0spmReWYHCv1I6dojVJcWAjj/OeXkHUDHfFeA TyfxYthjWjkcTLtTh6ZNAHlJOkot6nFda6E7jGHWXa/nZvMi3H0/lx0wIu+wireb0egym8yQtnUTn bjHckBHcTSjl+nSZ2B4YBjpKwogquF1vZLR62qsybEdDh4SF+MIwRKFOfcC9JzFfL69Rl0j1oDP5b LyOKNEDQOiGLvE8Zfpr96lqqvguzk745PB1S/W6niTJBzXun1DKsZHMojWpBWyQ3eWFCo5mUkEtLu 0IYgbdBQfnSIw8MKO10Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qUPd7-00AJRk-2r; Fri, 11 Aug 2023 10:44:29 +0000 Received: from bg4.exmail.qq.com ([43.155.67.158]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qUPd4-00AJPG-0R; Fri, 11 Aug 2023 10:44:28 +0000 X-QQ-mid: bizesmtp74t1691750632tj1s51gj Received: from localhost.localdomain ( [221.226.144.218]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 11 Aug 2023 18:43:51 +0800 (CST) X-QQ-SSF: 00200000000000B0B000000A0000000 X-QQ-FEAT: 0vfWcIgh24yN4kva2q777pdMblrZ+8/WLjSLXSE7czoqc0NbuDDWP7zp6EktE F88acLlLVUp4nZXjnjPHKu/KP7fTMKVgtkZ6R3wkL5nFyb9XsxWfNLWbboeOuYltbFvaFK6 Ox5yJl4yhMxpW+PUYUtuovvv6YB5jvRj183wXxfiSYXilIHt+SeODEa4s1IHmz/ePqim2CY DwAQ8h0/wnn1iJH3OhbzAo4MqGuMx4OgOmrotxQ6g2mplqo0RoN100+V0e4xp5+fzKitvds z3RJhTIK69KIFjBFdF3abKdqEEpz7fMYKMva5SB7UaxosW2o9psyQSG8lfk81RTvm1z7P0b LfjSvOqast4FMGCtbgHucai+BEDSpCJeSf3sy7x036CXcyDJuqMAtoOD3crZg== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 5156323152166706898 From: Song Shuai To: xianting.tian@linux.alibaba.com, guoren@kernel.org, horms@kernel.org, huanyi.xj@alibaba-inc.com, mick@ics.forth.gr, yixun.lan@gmail.com Cc: kexec@lists.infradead.org, linux-riscv@lists.infradead.org, Song Shuai Subject: [PATCH 2/2] =?utf-8?q?RISC-V=3A_Fix_the_undeclared_=E2=80=98EM=5FRI?= =?utf-8?q?SCV=E2=80=99_build_failure?= Date: Fri, 11 Aug 2023 18:41:17 +0800 Message-Id: <20230811104117.91406-2-songshuaishuai@tinylab.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230811104117.91406-1-songshuaishuai@tinylab.org> References: <20230811104117.91406-1-songshuaishuai@tinylab.org> MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz4a-0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230811_034426_513391_AAB4F55C X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Use local `elf.h` instead of `linux/elf.h` to fix this build error: ``` kexec/arch/riscv/crashdump-riscv.c:17:13: error: ‘EM_RISCV’ undeclared here (not in a function); did you mean ‘EM_CRIS’? .machine = EM_RISCV, ^~~~~~~~ EM_CRIS ``` Signed-off-by: Song Shuai --- kexec/arch/riscv/crashdump-riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kexec/arch/riscv/crashdump-riscv.c b/kexec/arch/riscv/crashdump-riscv.c index 3ed4fe3..336d7a7 100644 --- a/kexec/arch/riscv/crashdump-riscv.c +++ b/kexec/arch/riscv/crashdump-riscv.c @@ -1,5 +1,5 @@ #include -#include +#include #include #include "kexec.h"