From patchwork Wed Dec 6 15:16:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pintu Kumar X-Patchwork-Id: 13481941 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 616D9C4167B for ; Wed, 6 Dec 2023 15:16:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F26E46B0088; Wed, 6 Dec 2023 10:16:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EAFD66B0089; Wed, 6 Dec 2023 10:16:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D51DF6B008A; Wed, 6 Dec 2023 10:16:31 -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 BD2216B0088 for ; Wed, 6 Dec 2023 10:16:31 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 9B53D12014A for ; Wed, 6 Dec 2023 15:16:31 +0000 (UTC) X-FDA: 81536744982.05.10DB8A8 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by imf06.hostedemail.com (Postfix) with ESMTP id 50C68180028 for ; Wed, 6 Dec 2023 15:16:29 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=TbTj+H0Y; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf06.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.168.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701875789; 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=7dHkYh0E4m6Pm/XFmSNMkhHpihq4zaKnm5IzExN2Zc3POjYPiawkOTmRl+Gc1Bxa01/yR7 8Bdnjfaw7RPD6PYYSXdWpz+MesIFboF5aLSRXv5oivD0DBayBrimyukkV8iWaBKO9BtacK OrCVThiROcon7IurpN6cJ4OuRyrCGHM= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=TbTj+H0Y; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf06.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.168.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701875789; a=rsa-sha256; cv=none; b=C/72z6Xz3X6is0b89pZ89qqkHAFcqgi0i25pjXmbM+UdemlzLhyiie7DPEFsbGls7gi5h7 4dtRXE6zOS1O+PBgvu3yo9ujEmPJ7k7npVFuwxEmMxNq9LbSlyIhY7V7KY4RZWwT1q8Ukh /0th/pqiZP+63u6/fb73TLyth1n9dkQ= Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B6Emdux015892; Wed, 6 Dec 2023 15:16:25 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=TbTj+H0YrH8CJvfVXOaZCn4V8K4SgoIdPIDmqjcTwfxjgpbpaaB74suikR1eYjVLd1GH 2Ug7fgzzPMVs6bb8eZN2qvlGAPndfy91omGmdNc4cwXx49RWhi1vKgZPsGem/ZR0Oiaf P0SzA78LdIlOx45KBqFSho1hWH7UPzXmEQaxJMMIYyWDBZ7s9NjE8L1ZsAXDstlliEHv B7p49X0Hho61WDYdehuMs6nxNOcnAil+rruk+17R4KP86pqEKCtRM26rzg/oJ5rcyNDU oQZiwXUE0JQr0O4Vmkx4pHApmbKSQi6LYI3KNc1zwCMn/2Y7qMvRTrepJxpl77cxnR4K Zw== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3utd51267e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 Dec 2023 15:16:25 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B6FGP2K023959 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 6 Dec 2023 15:16:25 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:16:22 -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:46:00 +0530 Message-ID: <20231206151600.26833-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-ORIG-GUID: z48NGZs03K_8xD7IbWBylQ_-5fXUs4Gz X-Proofpoint-GUID: z48NGZs03K_8xD7IbWBylQ_-5fXUs4Gz 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_13,2023-12-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 priorityscore=1501 adultscore=0 mlxlogscore=473 spamscore=0 impostorscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312060123 X-Rspamd-Queue-Id: 50C68180028 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: t46f4ecg4sh68w97obafxioqwe1aqcij X-HE-Tag: 1701875789-393284 X-HE-Meta: U2FsdGVkX1+gL4xigNx3IoeGDnNmvuvEAvgkq7Oa+ePAKzJNCP3rMHjrqycIuKKwY44N6mi/uOAJWru32PBdeNwZ3DjxRqG3dhl0dfq9o7wY5O67rX4pTZEU8/R3beSq8qWFoD/CxDJNwybwEJXy0zUnfVlNJ0UKCVYFJIQkT8s18wIQjBWt4bCWxrpZjt2ooUkiqeuMeuTBr9gc1j7IQIpUHxGLS0NKi7GvjHTSaRxQ1L32I8xwpFi3xVK93b9lp8FEBkl9j6PFw/OpSDrP7j8adz5pGi+TRL57tZ+F5zR1Kx+ONiZSlMuuElWNQc/4/cZiJHAotrP5LVvHlm94y4aVeDa8801S55xJkQwTd0ySn5mTB/IEZHvODQ0QPS9mncxh0cXGPtMFJ2LdU5kMKmYbtXLplSAQeNUzfbO+FpUdUX7Fue/P/KpEuxSPntC+RKZUSMULWgAq4RedLnl+IbEyFuU30lxN5p0JWWN1wchyzblYLE8KEmNF3h5U2tXPP3HF9ETrvtzjqc4VbwScOMWaxO4cF98XY59EA0svYdIjB2Zgn6OMq2eWFAhfqr9V1Rt8QmYY4zx7U6Tlf83DkjiSHIvU2cgc2a6D3lkf7xq1yrNtf/S6Zsd12gWdDNNs+8Gjp+faut0KluNNWRX8hVkROSrwaY3wuqo+XRjr0qAIBtRGi59jr0F/OOLZL/SSo4P37NZn4GwBa1nMBcz1hMo0kWXRviC/fOCXAsvQdznkQuWXi/pq9/uZLfYskKMT7uivtIcPcjEMcx4JNo6p3XyvOpgd6FoLoWp0QmCTiNxsIFkU7MrkZMwCXE1VBl+7gT/fZUfM2HnRBgGRJxeJFX1feSZsvOM1PNexmoF7nMFGyU9F1Tg05o1NbNrZfFr9i97iYttyRRJNWIxP2m01/c7JAbY+pyChzWClCOLBA+O6m/FTy/J+y4dFYYeRUiPuzCAeBo1dg/gI907x09C TusjXhFl B5gftn0w5BPVMiadXvEoaaYeiakXaaYF9tw1wX1OxQpHXdVoYUQt3/LdezqLyWTBzBSxr4r04FV3MzbBLHpwRapW7MVKluT4gIabXY21ynfhZ9yAxVyg6hTdKPsFqT0LS3uUZkCcAPh8AnzsiAnvEvUlGE4vGwOjUng/vrfOSDVDPnlNKNra7xiAH65Svls/vt3znhS8sSWNfkDwWyEkkf6is84xy6dHl9SMgQrUaAaqAkfaxb+9nq8c3EgflpPtWv+anEIYZWA5YZganEw/OhCaqFquO7DKLdCQFellXZ/NSQvecDJgT/Rl6jfp+d5uIjVko9KnTsmjE/Yu7t3sLCgBcKn0IlU/um3wtzKDbXAH11IdTPyfZXfMJYA== 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);