Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp369109rdh; Thu, 23 Nov 2023 06:13:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHLApT6QcouQZktCBzdIE58GfH/P+UV7mmrioeOYHXTu8oUyxFWXWiMYPm1WEAeckMsuEO X-Received: by 2002:a05:6808:3189:b0:3b6:cfe1:50f9 with SMTP id cd9-20020a056808318900b003b6cfe150f9mr6328041oib.56.1700748838148; Thu, 23 Nov 2023 06:13:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700748838; cv=none; d=google.com; s=arc-20160816; b=AFvkpYp0TB2XAQp7RIpoakTfqjJ3PRKInIqzMIqx8M+jZkgqtuOQFmSPmfRx6nQs7A HEMky18rJ55DOTF/WuGOL291hNZCiP6PMAejO0rdbAPFD6T92FNjMJe8xA3fG9R9q1w6 tMjiXkl4lXvY2XItgT/qBi1CL7R8QwGxvqDqjNI4cVrDSL7KY8oMe5uwl97NFqbsM1oL 9IXhsCcsKbExls5dhXNzCj2lAuSATaPTcIE8J61PLJypN4+xYpt7AyaD5H/s0+P/xmhC Xmk0X8bI9TXs55bVowv5TKcKqoKjBS6QQs6e7l80fhFqSq/5b4uxJdBRpBAdPcLuvn10 3qsg== 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=Q04AXgHuRqcJadhMlb2LUeTbuaDdTSUNd6AIPrTaYzs=; fh=5cnQ3yOAI8djR0MIwRc1lGzUnIiDEs4UeGwhEnWc+SE=; b=a5lJFKABld0ylMBbGSuFwmlD5zRbl7w2FaJOkUV/1Kz6mDkeNr4V2Sj1U6ClsdGbBG 9WB2NvWEub+Tr+Ok9Fhes9UFKC/F5RT6/cjFcO3RZbkC+XA4QHjrtweHy+u6T8AN6x8Y 28+mXO6lwPH01CK1tCON/df74IvQ+/HmAjofAD9myjl4u2d3znkTGg7cq0jBsCXqMe6t gKPyvPL3lW11Wmnleq3apTC68KcgJwnYETbwD0iPyzqigewLFRShXnY0vNDjs1DSRF9x rKQ677K+Ne6ctpyr8AHCVevuWh3AJTs7C6o501H8+coa+4z69OzzipumWVxo9HrBjzV2 5LBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=JfXIJVS+; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x14-20020a63fe4e000000b005775e2a7951si1341197pgj.345.2023.11.23.06.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:13:58 -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=@ibm.com header.s=pp1 header.b=JfXIJVS+; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8B829807C575; Thu, 23 Nov 2023 06:13:54 -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 S1345662AbjKWONg (ORCPT + 99 others); Thu, 23 Nov 2023 09:13:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345534AbjKWONe (ORCPT ); Thu, 23 Nov 2023 09:13:34 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D0D0D40; Thu, 23 Nov 2023 06:13:41 -0800 (PST) Received: from pps.filterd (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ANDod0w013391; Thu, 23 Nov 2023 14:13:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=pp1; bh=Q04AXgHuRqcJadhMlb2LUeTbuaDdTSUNd6AIPrTaYzs=; b=JfXIJVS+F5prnqDH5sAiQ9lg5miS4D82vC5tSM6gib0Y98dn3HrL9O1y/TGEqOSx/Bq1 VXrNP9rDZaFClNNyF/qqdE9CzPQ7WAc3sTHgOoowVKb6qQ6E6v17vgSA3i1pl6dpGlo6 nJfgnUx53i6tUPKFyXa7Bhs6ARh06vWKPCOIGelxuG31lh1gNGvSnMVK5gZaWPpVtBzk f3UagDvuCcO7Zkb4XeGEcWVO/QojqyFtnMaHjrOk/nKHHA29JA1j3IyhVUU7bQagRrkR RsSlatuUx+CdWWn/bBPO2TRR4r6YF8n3jfeUBODSLWuS7GPPUI69BrSzoPuZTZ3lxP+b lg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uj7dpsh8q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Nov 2023 14:13:34 +0000 Received: from m0353728.ppops.net (m0353728.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3ANDomMR014492; Thu, 23 Nov 2023 14:13:34 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uj7dpsh87-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Nov 2023 14:13:34 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3ANBIqBa024672; Thu, 23 Nov 2023 14:13:33 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3uf8kp7jkj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Nov 2023 14:13:32 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3ANEDVjF45548276 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Nov 2023 14:13:31 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EB5E62004B; Thu, 23 Nov 2023 14:13:30 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2B37820040; Thu, 23 Nov 2023 14:13:30 +0000 (GMT) Received: from li-008a6a4c-3549-11b2-a85c-c5cc2836eea2.ibm.com (unknown [9.171.80.84]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTPS; Thu, 23 Nov 2023 14:13:30 +0000 (GMT) Date: Thu, 23 Nov 2023 15:13:28 +0100 From: Alexander Gordeev To: Baoquan He 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: <20231123073652.507034-3-bhe@redhat.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 2VLVSyf8Y0jVaqlYYFYjpVvyoOJkyXHF X-Proofpoint-ORIG-GUID: FbY8vbpibFUL3rG1mgZJQiwJNhj6l0VL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-23_12,2023-11-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 spamscore=0 mlxscore=0 adultscore=0 malwarescore=0 phishscore=0 clxscore=1015 mlxlogscore=642 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311230102 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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, 23 Nov 2023 06:13:54 -0800 (PST) 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. > Signed-off-by: Baoquan He