Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2176784rdb; Thu, 7 Dec 2023 23:43:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDyVi9v7K+FzKFSvkc1jL3JCMqNt0CJ+6mLi69Fix1O1Y+gmFx0lh1lJw7hxB7olt+QmLT X-Received: by 2002:a05:6a00:181b:b0:6ce:2ec8:2ec8 with SMTP id y27-20020a056a00181b00b006ce2ec82ec8mr4119085pfa.37.1702021424182; Thu, 07 Dec 2023 23:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702021424; cv=none; d=google.com; s=arc-20160816; b=MmwX2wxxXSewspRb6VMHmbmDXEj0b7CojKEsXLDtXe1sbConk5uYRzfli16FvlcifJ fjWs2sosm5DmzpR5IqA4TX2hARYfbWZ6CpYKLnL7OYs7stt0pMY/3XmnWFY2cEbSE4J/ vi0IHDFNg4oeXl5B+X/BWYpU3Hu65KEMpP0LmPvqZm3g/vhsSR0kdl4XfzAMB8X59Xd0 zkDxxjfosJCK0lYZXrWtIwwI3MjVPOrA6gy/bO40hjCEMl/Vpwf/WObXvOg/4JwpkHFK gC3holpqA9OQigJY4hiH1c/BM5wYu5HEAL8USoIAZlL88t+Xnv/ab2bTdN7b/iMeupjf Q32g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mD12z3Ph+93M5Ou5tdqyf4RyVew89UEB1udxQaJBbFk=; fh=2miqusUwLzbVEq5+juaIkqIQXn1T7xzpBpSGYsL+cGE=; b=IKu4M4s8H4hgnYFU6/Pg5FbVvh40sedtYVrgO5VPp4Epch08F2X/NXjuN5iNtf/ztl bjxqEji3gOfZ1HD/lebAbAOfpGhAGgZspELY3E3lUhoGFh+wIV0WqIgOreya4XEclBoe FUdbqV17gb1Xx+McUqCEu4vPf9jTDLvdl9ffj1OKKZKB8A/US/Bt8TJ6050EwCbb/lUH pjdoxhzWynw6Ib7WkLob9qcLI2Ug9MEt/9Ib84J3cZOhxdGLv6xI7Y7hGZt5ngEqWN0Z 7kAqkkjTr3rvKFQXX0ltj04z1htOqEWnrjIam285knDxXAITvDL/tV7dYdc+4Zk8Xi4D 6rcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ejQe09r0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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. [23.128.96.34]) by mx.google.com with ESMTPS id z8-20020aa78888000000b006ce62cc1ad6si1138669pfe.145.2023.12.07.23.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 23:43:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ejQe09r0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 7F91C80ACFE8; Thu, 7 Dec 2023 23:43:41 -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 S1573289AbjLHHn1 (ORCPT + 99 others); Fri, 8 Dec 2023 02:43:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573283AbjLHHnZ (ORCPT ); Fri, 8 Dec 2023 02:43:25 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F4B71734 for ; Thu, 7 Dec 2023 23:43:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702021408; 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: in-reply-to:in-reply-to:references:references; bh=mD12z3Ph+93M5Ou5tdqyf4RyVew89UEB1udxQaJBbFk=; b=ejQe09r0efklIB4GuTJZOJ1DOMCY9NOY4iR++z85UeH5sPq04jmagNfFjsf0rE4H1Luch6 XFzq0a3n1gy1PWF9peVg4Zx/MBKoKpzyUc0YhXXAXiVDRwTjIPQPJWI7/0JhAeJ/YzOQTR Vi/E6u5y61j/5i88Ha4wwHeeOlBh6zc= 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-137-InC0YeG0PumZKyP_DYV22Q-1; Fri, 08 Dec 2023 02:42:43 -0500 X-MC-Unique: InC0YeG0PumZKyP_DYV22Q-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 37ABF3C0274D; Fri, 8 Dec 2023 07:42:43 +0000 (UTC) Received: from localhost (unknown [10.72.112.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 89CD58CD0; Fri, 8 Dec 2023 07:42:42 +0000 (UTC) Date: Fri, 8 Dec 2023 15:42:39 +0800 From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-next@vger.kernel.org, loongarch@lists.linux.dev, kexec@lists.infradead.org, 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 Subject: Re: [PATCH 0/5] kexec: fix the incorrect ifdeffery and dependency of CONFIG_KEXEC Message-ID: References: <20231208073036.7884-1-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231208073036.7884-1-bhe@redhat.com> 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:43:41 -0800 (PST) Forgot adding kexec to CC, add it now. On 12/08/23 at 03:30pm, Baoquan He wrote: > The select of KEXEC for CRASH_DUMP in kernel/Kconfig.kexec will be > dropped, then compiling errors will be triggered if below config > items are set: > > === > CONFIG_CRASH_CORE=y > CONFIG_KEXEC_CORE=y > CONFIG_CRASH_DUMP=y > === > > E.g on mips, below link error are seen: > -------------------------------------------------------------------- > mipsel-linux-ld: kernel/kexec_core.o: in function `kimage_free': > kernel/kexec_core.c:(.text+0x2200): undefined reference to `machine_kexec_cleanup' > mipsel-linux-ld: kernel/kexec_core.o: in function `__crash_kexec': > kernel/kexec_core.c:(.text+0x2480): undefined reference to `machine_crash_shutdown' > mipsel-linux-ld: kernel/kexec_core.c:(.text+0x2488): undefined reference to `machine_kexec' > mipsel-linux-ld: kernel/kexec_core.o: in function `kernel_kexec': > kernel/kexec_core.c:(.text+0x29b8): undefined reference to `machine_shutdown' > mipsel-linux-ld: kernel/kexec_core.c:(.text+0x29c0): undefined reference to `machine_kexec' > -------------------------------------------------------------------- > > Here, change the incorrect dependency of building kexec_core related object > files, and the ifdeffery on architectures from CONFIG_KEXEC to > CONFIG_KEXEC_CORE. > > Testing: > ======== > Passed on mips and loognarch with the LKP reproducer. > > Baoquan He (5): > loongarch, kexec: change dependency of object files > m68k, kexec: fix the incorrect ifdeffery and build dependency of > CONFIG_KEXEC > mips, kexec: fix the incorrect ifdeffery and dependency of > CONFIG_KEXEC > sh, kexec: fix the incorrect ifdeffery and dependency of CONFIG_KEXEC > x86, kexec: fix the wrong ifdeffery CONFIG_KEXEC > > arch/loongarch/kernel/Makefile | 2 +- > arch/m68k/include/asm/kexec.h | 4 ++-- > arch/m68k/kernel/Makefile | 2 +- > arch/mips/cavium-octeon/smp.c | 4 ++-- > arch/mips/include/asm/kexec.h | 2 +- > arch/mips/include/asm/smp-ops.h | 2 +- > arch/mips/include/asm/smp.h | 2 +- > arch/mips/kernel/Makefile | 2 +- > arch/mips/kernel/smp-bmips.c | 4 ++-- > arch/mips/kernel/smp-cps.c | 10 +++++----- > arch/mips/loongson64/reset.c | 4 ++-- > arch/mips/loongson64/smp.c | 2 +- > arch/sh/include/asm/kexec.h | 4 ++-- > arch/sh/kernel/Makefile | 2 +- > arch/sh/kernel/reboot.c | 4 ++-- > arch/sh/kernel/setup.c | 2 +- > arch/x86/boot/compressed/acpi.c | 2 +- > 17 files changed, 27 insertions(+), 27 deletions(-) > > -- > 2.41.0 >