Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp378570rdh; Thu, 23 Nov 2023 06:27:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXERRldvkduhJbmmPuimLGo9iqT0TQ5ihX72SoiLtv+VBacBf/IT0BOHxGMGL8EEoU9Qs+ X-Received: by 2002:a05:6a20:8f03:b0:18a:da5a:3b17 with SMTP id b3-20020a056a208f0300b0018ada5a3b17mr6040879pzk.5.1700749674825; Thu, 23 Nov 2023 06:27:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700749674; cv=none; d=google.com; s=arc-20160816; b=C8twpCOjUzTO/y1o0/N9J9Wvoeg6d8guUVxhcD8rWphqz+05Ercl98N2kAANelDHqb jF4hHPaLLnUOZermfXQaEeoaOwRuY2FsFL6XuZ6EqMnM3lJBJbllo8DmomvMOpeY91N1 nknJb+takIAFtxof2tTiYbwp6pFD5OFMDa6lepHgx4noV36YY2UtvKPIfxU5T37hi7nz ZM9eVPZH0bAlR/fmPn/wLB7gZ44I9TKu+HXMouut8lL9szetR5LPlxpVfWbZQ+5O72mr C+8XPYo9wFKU3OQ+80cz/baPfOdTEUxBdDP61yal15T8Ywq5Jz/yrRB5NzcQcL8Qspnz VRdQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nPYmWVJiio69jB+wuetIWO6yNFF7oZKH/nujKKk+JfY=; fh=k4J8rvvyTep2HZPZrEXg0X1jF6x8+Hz3p9BjbEbydGo=; b=nw+YTJOYvVyIDdVKs2BxO2PD0hDzxrOw/hwa7nawlU/j3sTqSJxm08qe+Alw52WlcZ Q/SKAEYBHbODZGJ/iHNqQn7DCnCQDlpq77O7Oj3v73jhzP7a/8vDGd4G5zv2BB0zVlMJ qcCgM/+0wRCZQmsW3fMC7e43vEFn+CAXzbFBmbE6fsKwDXrSjIpm1MsJyLMX8kDiZzWv cn+33QSxaKHTBYKY+kUvBzEZci0e2YDVxKoijeq7QtDfLdXqqpmYysAXz42BHE+rfJ4I RH2n2JKG/4lVL6gmvGcDvLwtJsIjFM1JEhXVQ0CCnuIvLCJf8EiWKpv2AskIF6vZRPzW ztWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LO0GdyeD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s23-20020a632c17000000b005be1ee5ef0dsi1402736pgs.15.2023.11.23.06.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:27:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LO0GdyeD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 6A4D682663E0; Thu, 23 Nov 2023 06:27:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345815AbjKWO1T (ORCPT + 99 others); Thu, 23 Nov 2023 09:27:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345772AbjKWO1P (ORCPT ); Thu, 23 Nov 2023 09:27:15 -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 E0B9FD44 for ; Thu, 23 Nov 2023 06:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700749641; 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=nPYmWVJiio69jB+wuetIWO6yNFF7oZKH/nujKKk+JfY=; b=LO0GdyeDpC5N5eHNYYrNvQyiAXtKoZTlQ6AoFeBMW9lxzzzb9TxTYo6KU3WiHFe83h4AOt OOxaKgX5F/5MkliGvdW04nebw2sZUZsYOxsrvLSF1FnqHLG8MmjBMpmhLeRNMDKmRgiaWg XJGgVWn/UbLCMrp2QY6z+I7T5HpppJk= 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-638-uwyJZVJuNfucj7yT_WV1hg-1; Thu, 23 Nov 2023 09:27:18 -0500 X-MC-Unique: uwyJZVJuNfucj7yT_WV1hg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 78228280CFA4; Thu, 23 Nov 2023 14:27:17 +0000 (UTC) Received: from localhost (unknown [10.72.112.97]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C20F4C1596F; Thu, 23 Nov 2023 14:27:16 +0000 (UTC) Date: Thu, 23 Nov 2023 22:27:13 +0800 From: Baoquan He To: Alexander Gordeev Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, akpm@linux-foundation.org, ignat@cloudflare.com, eric_devolder@yahoo.com Subject: Re: [PATCH 2/3] drivers/base/cpu: crash data showing should depends on KEXEC_CORE Message-ID: References: <20231123073652.507034-1-bhe@redhat.com> <20231123073652.507034-3-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 23 Nov 2023 06:27:51 -0800 (PST) On 11/23/23 at 03:13pm, Alexander Gordeev wrote: > On Thu, Nov 23, 2023 at 03:36:51PM +0800, Baoquan He wrote: > > When below kernel config items are set, compiling error are triggered. > > > > CONFIG_CRASH_CORE=y > > CONFIG_KEXEC_CORE=y > > CONFIG_CRASH_DUMP=y > > CONFIG_CRASH_HOTPLUG=y > > > > ------------------------------------------------------ > > drivers/base/cpu.c: In function ‘crash_hotplug_show’: > > drivers/base/cpu.c:309:40: error: implicit declaration of function ‘crash_hotplug_cpu_support’; did you mean ‘crash_hotplug_show’? [-Werror=implicit-function-declaration] > > 309 | return sysfs_emit(buf, "%d\n", crash_hotplug_cpu_support()); > > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > > | crash_hotplug_show > > cc1: some warnings being treated as errors > > ------------------------------------------------------ > > > > CONFIG_KEXEC is used to enable kexec_load interface, the > > crash_notes/crash_notes_size/crash_hotplug showing depends on > > CONFIG_KEXEC is incorrect. It should depend on KEXEC_CORE instead. > > > > Fix it now. > > If this error introduced with the prevous patch? > If so, the patches need to be swapped I guess. From the phenomenon, yes. In fact it's the patch 1 which exposes the wrong ifdeffery. I can shift the order in v2. Thanks. > > > Signed-off-by: Baoquan He >