Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2172625rdb; Thu, 7 Dec 2023 23:31:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2VAFkhVxjTGx0ggzJkuD2PO35Z4f/XcDowtJuJuEunsEnPSNo97S9505m0ZK/sUr4RBBL X-Received: by 2002:a17:902:e889:b0:1d0:c738:73c6 with SMTP id w9-20020a170902e88900b001d0c73873c6mr3922035plg.109.1702020676212; Thu, 07 Dec 2023 23:31:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702020676; cv=none; d=google.com; s=arc-20160816; b=hLuB3i25jXAnWUqo2XZ0BZ2wO+ulHD06vNDFr07uYnwI9/bSUgpgvUImgpLlgy12vX sPDSrN3+ATetb4VvAfYNbdQFWB07By2LkVL13DTxqKog5pTpAh2ZgQ1lPW695++4jnto bEwdLNoWalLoqZeL4Uytw1A/uvfXedIyUCKAd63C6K8RCE7QAtHrXM8UF+XeWvbERMsN PePrp+4lDMZzOiubVM7M4xSoqHQXfWnAFyNYGUtwGtyO24tS/XOIMEWeWZmqy7XE2aRK olcsNGUOrR7FSS2JblGxEPlKXgDO96ZAXBYNLXPdmWYdg9UIgCTELPvW/gBEu8MfbGzn gi0Q== 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 :dkim-signature; bh=PMJ0khluh69+oGYQ45qNovXMn1kcyTft2Ss07SyrAMA=; fh=NXLCNOpVSWrCPkQH9LuPbfBF5AbR2buWGYxPwgKw26A=; b=bLVyM2Au4QHIi7IbKaWafk7kH7O+JPcMaWxfqPINIdlyrCiVMn+LJgc/NczgX7ssjf 88cbg9ZWQh46O6tO3Ycxo3o8aKc+OnSZq7rPF1VWGuyJxlB6OD/F0YZNh6WgsvhyQwqo 2cNxF36PcnjbwLqXLAKd5yzNzo7abUvF3AiL5DnjzjdzOn3g1Amed3qjM5diWW2YhJey LhLYF5HkL/m7FjioyvhaPCGTNXtjnWizGdm9ABW3mZvRgx+Z3BT2FlVAVxUr9xm9moEO NTvLOLs0NS3YYNfFHwmezMDiVyIiCY0A2QhQwPowEOeXwYKUT5jkIh+lMoCAHwVwj1lF Sm1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OeooZJQF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q17-20020a170902dad100b001b8ba81d04dsi1167961plx.395.2023.12.07.23.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 23:31:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OeooZJQF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8F72E856164A; Thu, 7 Dec 2023 23:31:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573264AbjLHHay (ORCPT + 99 others); Fri, 8 Dec 2023 02:30:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235765AbjLHHav (ORCPT ); Fri, 8 Dec 2023 02:30:51 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6CC31733 for ; Thu, 7 Dec 2023 23:30:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702020656; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PMJ0khluh69+oGYQ45qNovXMn1kcyTft2Ss07SyrAMA=; b=OeooZJQFxMz5qZ7k8kW4ot6lZeF3nalCVzOvzdvbkGUTAo5ZQfw6DJY8UjlH3Q0rf77BBL kC/hCePL/GW5ujzzdo3l6oDnlqYAGx85Ock1fKrLw+MguDLu3+o/szU3qMeFYU9x46LRas Q+QtQmyzpbhLBjox74qFDMLT4RVPUe8= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-310-fgcVBsYqNd-Y6txwm1BDyQ-1; Fri, 08 Dec 2023 02:30:51 -0500 X-MC-Unique: fgcVBsYqNd-Y6txwm1BDyQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 939181C05ED0; Fri, 8 Dec 2023 07:30:49 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.72.112.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id D7C5A8CD0; Fri, 8 Dec 2023 07:30:44 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-next@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-sh@vger.kernel.org, x86@kernel.org, akpm@linux-foundation.org, eric_devolder@yahoo.com, sfr@canb.auug.org.au, ignat@cloudflare.com, Baoquan He , kernel test robot Subject: [PATCH 1/5] loongarch, kexec: change dependency of object files Date: Fri, 8 Dec 2023 15:30:32 +0800 Message-ID: <20231208073036.7884-2-bhe@redhat.com> In-Reply-To: <20231208073036.7884-1-bhe@redhat.com> References: <20231208073036.7884-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 07 Dec 2023 23:31:09 -0800 (PST) Currently, in arch/loongarch/kernel/Makefile, building machine_kexec.o relocate_kernel.o depends on CONFIG_KEXEC. Whereas, since we will drop the select of KEXEC for CRASH_DUMP in kernel/Kconfig.kexec, compiling error will be triggered if below config items are set: === CONFIG_CRASH_CORE=y CONFIG_KEXEC_CORE=y CONFIG_CRASH_DUMP=y === --------------------------------------------------------------- loongarch64-linux-ld: kernel/kexec_core.o: in function `.L209': >> kexec_core.c:(.text+0x1660): undefined reference to `machine_kexec_cleanup' loongarch64-linux-ld: kernel/kexec_core.o: in function `.L287': >> kexec_core.c:(.text+0x1c5c): undefined reference to `machine_crash_shutdown' >> loongarch64-linux-ld: kexec_core.c:(.text+0x1c64): undefined reference to `machine_kexec' loongarch64-linux-ld: kernel/kexec_core.o: in function `.L2^B5': >> kexec_core.c:(.text+0x2090): undefined reference to `machine_shutdown' loongarch64-linux-ld: kexec_core.c:(.text+0x20a0): undefined reference to `machine_kexec' --------------------------------------------------------------- Here, changing the dependency of machine_kexec.o relocate_kernel.o to CONFIG_KEXEC_CORE can fix above building error. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202311300946.kHE9Iu71-lkp@intel.com/ Signed-off-by: Baoquan He --- arch/loongarch/kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/loongarch/kernel/Makefile b/arch/loongarch/kernel/Makefile index 4fcc168f0732..3c808c680370 100644 --- a/arch/loongarch/kernel/Makefile +++ b/arch/loongarch/kernel/Makefile @@ -57,7 +57,7 @@ obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o obj-$(CONFIG_RELOCATABLE) += relocate.o -obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o +obj-$(CONFIG_KEXEC_CORE) += machine_kexec.o relocate_kernel.o obj-$(CONFIG_CRASH_DUMP) += crash_dump.o obj-$(CONFIG_UNWINDER_GUESS) += unwind_guess.o -- 2.41.0