From mboxrd@z Thu Jan 1 00:00:00 1970 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 BFDC5C54E58 for ; Mon, 18 Mar 2024 06:52:50 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References:Cc:To:From: Subject:Date:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mcqU6ellfMk75svm1+nQIArCSYo9pfJy58Mpeuum72g=; b=CPrHlOUXJzUKeA96Zm4hMRcjjD 1TLhQUeHYxM3Em1x71V0X8rvuo9vLDU8/uhMI1DjoQBX14be2uuNH5qwPeO3/9F0yp9e8dtfAaBLc nUogVhW6yhbfq0NhxKxeOHF+qVhHluSEAIyWGkkVgl+hITpjaqidftBF3eYG85nUbWxLJAacXG6GW vFdWTo0Xl6CDkIyKjXXIz0+XiuSth0a+EfGdTN+dbDtrjeLHzShDaCL1MDqkr5TEOdWIbgiFoIFKe 7+vOYTjk6XjDQLmTehac1NeC/PD3TKu9QgNSN5H8Runk6MYBhPjKUJKZvedjg/ni4UP0NCctV6BoS q0E/Jmgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rm6rZ-00000007WLq-0koY; Mon, 18 Mar 2024 06:52:49 +0000 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rm6rU-00000007WKm-33YB for kexec@lists.infradead.org; Mon, 18 Mar 2024 06:52:47 +0000 Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 42HHOPf5031422; Mon, 18 Mar 2024 06:52:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=g3c0T6LTqQBYqI6X/TVyNEpofD8ODNwV/F0V9+oQF8c=; b=qU8TM/3wiKS0qBIq12A8t6gUZZgZQCu9fNaijHQfNtLHl7QCHhJ3CAyC7RudmCfl2Ove mo51NGPBgYChHvzlcZ89QzbDHjRp+/e9Mv3p9V5Wztc10HojaR85+lC/HqAiqPu8WtUE t5PM1uRyReJ2NEZLgB+97dfTDT5yIzl+qlANcFUxCzw5oajDespouHWIOAOT/T7XTPDW s2f4ut1f9tfZ5obzduthdUoiYL5eSjPaVoKbICYWaJMo5QpU56OuXl7sQHVhO3te1p7E STITVGfqQ0u7stLm2su/jnNF2Uj+fHDwciwxD1KHhI0vBAgOKHyULEGEiLIl054cFfka /w== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ww5pngrh7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Mar 2024 06:52:21 +0000 Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 42I6pWiD006696; Mon, 18 Mar 2024 06:52:21 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 3ww5pngrgy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Mar 2024 06:52:21 +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 42I66pNO022186; Mon, 18 Mar 2024 06:52:19 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3wwprnq5vh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Mar 2024 06:52:19 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 42I6qFmF47514006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 Mar 2024 06:52:18 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D54E02004B; Mon, 18 Mar 2024 06:52:15 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 474CA20043; Mon, 18 Mar 2024 06:52:14 +0000 (GMT) Received: from [9.203.115.195] (unknown [9.203.115.195]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 18 Mar 2024 06:52:13 +0000 (GMT) Message-ID: <6a1d94f7-b4bf-4315-b862-4e278abbaa73@linux.ibm.com> Date: Mon, 18 Mar 2024 12:22:13 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH linux-next] bpf: fix warning for crash_kexec From: Hari Bathini To: bpf@vger.kernel.org Cc: Kexec-ml , Baoquan He , Daniel Borkmann , Alexei Starovoitov , Andrii Nakryiko , Andrew Morton References: <20240209123520.778599-1-hbathini@linux.ibm.com> Content-Language: en-US In-Reply-To: <20240209123520.778599-1-hbathini@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: DdRDyGsOzuXYcWyKrr6fhFgjNClhB0VL X-Proofpoint-GUID: hyGP314cwRBepY81eig7QTqFsyOXuCbr X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-17_12,2024-03-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 adultscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 bulkscore=0 suspectscore=0 clxscore=1011 priorityscore=1501 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2403140000 definitions=main-2403180050 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240317_235245_091928_4F2F2D9E X-CRM114-Status: GOOD ( 18.22 ) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "kexec" Errors-To: kexec-bounces+kexec=archiver.kernel.org@lists.infradead.org Just checking on whether this will go via bpf or mm tree? On 09/02/24 6:05 pm, Hari Bathini wrote: > With [1], CONFIG_KEXEC & !CONFIG_CRASH_DUMP is supported but that led > to the below warning: > > "WARN: resolve_btfids: unresolved symbol crash_kexec" > > Fix it by using the appropriate #ifdef. > > [1] https://lore.kernel.org/all/20240124051254.67105-1-bhe@redhat.com/ > > Signed-off-by: Hari Bathini > --- > kernel/bpf/helpers.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c > index 4db1c658254c..e408d1115e26 100644 > --- a/kernel/bpf/helpers.c > +++ b/kernel/bpf/helpers.c > @@ -2545,7 +2545,7 @@ __bpf_kfunc void bpf_throw(u64 cookie) > __bpf_kfunc_end_defs(); > > BTF_KFUNCS_START(generic_btf_ids) > -#ifdef CONFIG_KEXEC_CORE > +#ifdef CONFIG_CRASH_DUMP > BTF_ID_FLAGS(func, crash_kexec, KF_DESTRUCTIVE) > #endif > BTF_ID_FLAGS(func, bpf_obj_new_impl, KF_ACQUIRE | KF_RET_NULL) _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec