From patchwork Wed Dec 6 15:11:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pintu Kumar X-Patchwork-Id: 13481940 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F9E1C4167B for ; Wed, 6 Dec 2023 15:16:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BCB2D6B0085; Wed, 6 Dec 2023 10:16:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B546E6B0087; Wed, 6 Dec 2023 10:16:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9F4E56B0088; Wed, 6 Dec 2023 10:16:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 885676B0085 for ; Wed, 6 Dec 2023 10:16:01 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 3DA5E1C033B for ; Wed, 6 Dec 2023 15:16:01 +0000 (UTC) X-FDA: 81536743722.24.6CFCE08 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by imf09.hostedemail.com (Postfix) with ESMTP id C65BB140032 for ; Wed, 6 Dec 2023 15:15:58 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=IQw778g5; spf=pass (imf09.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.168.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701875759; h=from:from:sender: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:in-reply-to: references:dkim-signature; bh=jeL3QT7o0mBxKNPJeUdUZqEhxWca9D1K5PSNHaGGlqE=; b=lcM4lloRahozfqgCKuVgKl58ccvIUUbqqBYgaBWR3+igDQbi0AT0uJorK9FXvY0SVxu+DC w9BRSukW99gMGyGip4YK0esswugn6negg40zFrQXlxBzeuGsX8OqpjaghrIBn3aFx5wfaA u6PVHi3pEKEDZatWqu7rcIeyoqkzAJE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701875759; a=rsa-sha256; cv=none; b=4et+3wK3baKAuGmCxXJLvaxImJSWcWBzBJdU224C0ZVGcxrTzn09F4gq1MemIIU5L/cufS CItgi6Ss0fsiPp66IllxPyr2++AdjgaKbKBz4VfqbzLobiI4A2Xn/65kPjgKLdW81FT4gC +IC8dH1USE68+OCKGJ5EmfH7uFbFFrw= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=IQw778g5; spf=pass (imf09.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.168.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B6EljRB026153; Wed, 6 Dec 2023 15:15:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=jeL3QT7o0mBxKNPJeUdUZqEhxWca9D1K5PSNHaGGlqE=; b=IQw778g5OWQaY/awLaIuJkBIyb8onLElvOKPP30GUm8t1Arc+Z/kGLLDetvmiRKsTENg ksIIww1p7RqAY8kB6eQb49PdJ2okmmNrdeueGMiWPlwFvcqBO+ZC8e1uuCTC2s+GI55v uG/muuLql0nfgT1BoDdsAVb37FJwNZ4SLQL8GF9wKXLscJGMiwcgqD5ZR0c3GKmdnJAh G2YRaTyHmakvXo5mw/JuTEZCzMhXTZRMlaQnY9TGB+Wx0+rhrzPddGyKOUaBqZRqDdtt M3Q1XlUnTMw1mF4FnedzDeyzP+/rEmXgMln/tmsloyq8tChmWrFZ9cK5EPR71kuZGsJ/ aQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3utdcat48q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 Dec 2023 15:15:52 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B6FFpgj020746 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 6 Dec 2023 15:15:51 GMT Received: from hu-pintu-blr.qualcomm.com (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.1118.40; Wed, 6 Dec 2023 07:11:58 -0800 From: Pintu Kumar To: , , , , , CC: , Subject: [PATCH] of: reserved_mem: fix error log for reserved mem init failure Date: Wed, 6 Dec 2023 20:41:34 +0530 Message-ID: <20231206151134.26052-1-quic_pintu@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-GUID: F5yJi9knaKgY9pDcY_Rx8AW0R4VWeo9f X-Proofpoint-ORIG-GUID: F5yJi9knaKgY9pDcY_Rx8AW0R4VWeo9f X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-06_12,2023-12-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 suspectscore=0 spamscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 impostorscore=0 mlxlogscore=473 clxscore=1011 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312060123 X-Rspamd-Queue-Id: C65BB140032 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: t46f4ecg4sh68w97obafxioqwe1aqcij X-HE-Tag: 1701875758-942963 X-HE-Meta: U2FsdGVkX1/lX6rWqWdzLCEKuebtNH0akFanCGgZART7oF0XhemIkqaIlxr+sguIWZjSWzEODE55r4I1ApfB1bWpMn1cVCXnbMeb1vH5FixYKiYGvgITO9mNtlMJ2dBQhUvr26racoCJEhEkLvSLwhvz3gytsD/NMMjP1NSlUeabINSjsmPauLHpkblfFGA+VwILspabLSRhDJ/8+Nwl1ucBrnjzUGse0ntVd1+IZRlSSFsgJOTKtxSxhwfmKOn5dwoLjC8xPaxeKhvPt7mMrBZBlUTLRCj2HsqaTgNHBn5mNO5w2onfx23xSSsPhbgckSL5J8BF+1CnXXTV2ZyOeidIGPAn1WXKUNVTrT1KXW53NKxRRgPXQv1X4ViXQAryOTa4Ss4XsqNOs1H0XztpaL7yKqQAeuoHmdO/u5pxmbf5A3laMi1s4GZv4QZ6rJ1gGnWFTYymEuK+A2d4v3CYy73KdfoI7Hz9rbuBtSQHq55wFM/AsssOA6Op8R4aEjuiq7WLwDEKi3x6caN9cdEBds4C7hyWwjiVBr4dX5VwnCdi7i74IC5WNnsrNZV6MC4qefuONd225UxN3BzxEokObEZBKoH9/WZI3vUfT580bKFyWfuModHzAD8wl1Ktdsf/wMNu80hlhKWMqIlniAM7W+rpME7WmFLWhT+WZlnuN/mTIr3xYiILm6neWU7Tm/j3dyWdSHNSq4hRjq2v+OitZ/JhLRBUY+qqa5ZU7M4EPQQFnSaKHB26PUt8ym6QEx3+o11woFF95PR3F8tuh6MYYcWsvrcYJTx+BTMwsyd10Q2kSHaMoiCElCDETSblBdlDwEU7Cf7N2SEfIykESLf9icVIikzp2SDe6QyiByfIcp6JCyMh0r5Jfry5/5Hz9pctyNUHLzNR7X4jOW/qEhKUmTOG7851Qz4TfL7/oZWaLEZC0aLGebc5BHjVp9P/Wt/uWs5ZswRJoCMciKaWwGG EiJN63Vg XQ5mYBOlvpqe1VQL0EqheoqyHRytgFCBs0BN1Ga845R3oJ702XDGI21JrpcawnPJoIjUtwT0WVWcm2KvDBxbVBrNw4gvMF2woZWrH4VP5VA0m9pudBoU8v0aaEFJ/wnl6i/BnYVS8ZPvsa2FF95x/aeeeXdi1rRdKJFtvLcSfwsbaKb5OsIPAjBStIR7a/XJE8ZmPeteEV0sT2ABfbaGYEuPJFxUDBkgZ+buZY4yJmoyJw2BXYj1mUpGXsOmxlRoIiqJ9amkkFxT8bWm5QZS9Na6QntKZoPeAlXX/2hqL81IWWIovpUd7A0EvtPgxcfSFTPLSkTLgy40Mj7n/pgz/MS/X5WkCKyzugJldlMkQLd1UWrfndwNxTJQKcw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: During fdt_init_reserved_mem() when __reserved_mem_init_node() fail we are using pr_info to print error. So, if we change the loglevel to 4 (or below), this error message will be missed. Thus, change the pr_info to pr_err for fail case. Signed-off-by: Pintu Kumar --- drivers/of/of_reserved_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index 7ec94cfcbddb..473665e76b6f 100644 --- a/drivers/of/of_reserved_mem.c +++ b/drivers/of/of_reserved_mem.c @@ -334,7 +334,7 @@ void __init fdt_init_reserved_mem(void) if (err == 0) { err = __reserved_mem_init_node(rmem); if (err != 0 && err != -ENOENT) { - pr_info("node %s compatible matching fail\n", + pr_err("node %s compatible matching fail\n", rmem->name); if (nomap) memblock_clear_nomap(rmem->base, rmem->size);