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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06B5AC7EE23 for ; Fri, 24 Feb 2023 20:00:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229803AbjBXUAR (ORCPT ); Fri, 24 Feb 2023 15:00:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbjBXUAO (ORCPT ); Fri, 24 Feb 2023 15:00:14 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0A6D14EA6; Fri, 24 Feb 2023 11:59:43 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31O4dA7H007070; Fri, 24 Feb 2023 19:59:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=quW0laTGwLkdjH2tEZrvVdnRB0nR9k4yRR0RvQAxAg0=; b=KRIgPkjZxmTltVMY3txSYm/l+HZZZPranm6jM+mayltfWZ0NFyXgAzmY3SJz9Zt2rg2G 4bF516PPodOZIa9oiM0rx8cdpzGVERscXN9bhCTO0yZbgDg2W2eSlsYOJuGLKLW+ZtPu fuGEjsgqaCES0CK1ThIMchMWbWUsiTDUWlXwLkKzYIIIOOMZdJ0/LW5azUVvSf2JtGek ofBGh0MHsG6W9vB/06nvB0IU53EEDESd9VL1nN+43Z0MsxZwHLnKM4GPFFmQBqdpO13c QSfgislLyDpmRDV/57jjtiQmQrxsTlJPoHyG9NxMQAVkBCLNSyh1RD7hA/oCqrN/Q9cM og== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nxpcqtg60-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Feb 2023 19:59:16 +0000 Received: from nasanex01a.na.qualcomm.com ([10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31OJxF1T014545 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Feb 2023 19:59:15 GMT Received: from [10.110.32.28] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Fri, 24 Feb 2023 11:59:14 -0800 Message-ID: <43fbde3c-cb4d-6fb4-7f35-3ec660475f4e@quicinc.com> Date: Fri, 24 Feb 2023 11:59:13 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v4 1/2] remoteproc: core: Export the rproc coredump APIs Content-Language: en-US To: Gokul krishna Krishnakumar , Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier CC: Satya Durga Srinivasu Prabhala , Rajendra Nayak , Elliot Berman , "Guru Das Srinagesh" , Sibi Sankar , , , , Siddharth Gupta References: <20230224195731.324-1-quic_gokukris@quicinc.com> <20230224195731.324-2-quic_gokukris@quicinc.com> From: Trilok Soni In-Reply-To: <20230224195731.324-2-quic_gokukris@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: EikF5G3_N64y51UOBZd-RjJmWbmfU66r X-Proofpoint-GUID: EikF5G3_N64y51UOBZd-RjJmWbmfU66r X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-24_14,2023-02-24_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 clxscore=1011 priorityscore=1501 mlxlogscore=990 spamscore=0 suspectscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302240158 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/24/2023 11:57 AM, Gokul krishna Krishnakumar wrote: > From: Siddharth Gupta > > The remoteproc coredump APIs are currently only part of the internal > remoteproc header. This prevents the remoteproc platform drivers from > using these APIs when needed. This change moves the rproc_coredump() > and rproc_coredump_cleanup() APIs to the linux header and marks them > as exported symbols. > > Signed-off-by: Siddharth Gupta > Signed-off-by: Gokul krishna Krishnakumar > --- > drivers/remoteproc/remoteproc_coredump.c | 2 ++ > drivers/remoteproc/remoteproc_internal.h | 4 ---- > include/linux/remoteproc.h | 4 ++++ > 3 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/remoteproc/remoteproc_coredump.c b/drivers/remoteproc/remoteproc_coredump.c > index 4b093420d98a..e8f1b580d1d9 100644 > --- a/drivers/remoteproc/remoteproc_coredump.c > +++ b/drivers/remoteproc/remoteproc_coredump.c > @@ -32,6 +32,7 @@ void rproc_coredump_cleanup(struct rproc *rproc) > kfree(entry); > } > } > +EXPORT_SYMBOL(rproc_coredump_cleanup); EXPORT_SYMBOL_GPL? > > /** > * rproc_coredump_add_segment() - add segment of device memory to coredump > @@ -327,6 +328,7 @@ void rproc_coredump(struct rproc *rproc) > */ > wait_for_completion(&dump_state.dump_done); > } > +EXPORT_SYMBOL(rproc_coredump); Same as above.