From patchwork Mon Oct 14 18:35:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pintu Kumar X-Patchwork-Id: 13835389 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 CE8FAD1813A for ; Mon, 14 Oct 2024 18:36:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 50D6F6B008C; Mon, 14 Oct 2024 14:36:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4BE756B0092; Mon, 14 Oct 2024 14:36:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 385936B0093; Mon, 14 Oct 2024 14:36:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 196C96B008C for ; Mon, 14 Oct 2024 14:36:20 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id AD27B1611F5 for ; Mon, 14 Oct 2024 18:36:10 +0000 (UTC) X-FDA: 82673062710.16.2B56267 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by imf20.hostedemail.com (Postfix) with ESMTP id A1ED81C0007 for ; Mon, 14 Oct 2024 18:36:09 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b="bJ rZgMi"; spf=pass (imf20.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728930904; a=rsa-sha256; cv=none; b=eIqqQ0JC6d61AIBQIbD79iY1IxFzifvtlWInAPbPQun2QM+t+64LI1fizBHQTDloxBrmUp A7OhA/hG8OHFVdjTUk2uxq8MN1LccCc40m6HWBt3/O0k0yk7dDbw3eWdgpzO6tcn+UIbgT sRSqwxrJpxR5CzMoks1nUuWy31P0sXs= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b="bJ rZgMi"; spf=pass (imf20.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=1728930904; 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=rTQyTnwMYXVKv1XLuvOWrlzjFXJGsy0xy60jx4xy4vc=; b=3fWN8UM+JOw/Uu6C/cuNuoJkY14ofqATJdzUa+H6WxU592ziOw4T71epr/qVgk//jf6W+i 58edenicOS/h1709+0qr+fQWqNYgaG46VR+Pgz9FNjSP48FHVrVs3BC+12RrS6kLYrWvFb OUBV0b2IqTo2x0e+ACcfLShH4g9K1IY= Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49EAr1ke017717; Mon, 14 Oct 2024 18:36:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= qcppdkim1; bh=rTQyTnwMYXVKv1XLuvOWrlzjFXJGsy0xy60jx4xy4vc=; b=bJ rZgMiUFNKuvBmgxhzysyIPuzeGGqdn627UjMMP97OEprwQEDt0gt5fCcw+AwdNQM MiW6hjzeH2p82Qni2hUiWAPysAQHEUK8sPO8GzDLpRBiB+qDQUp1UEry6b2rmA4d s9lEDgVuI4RT1LEJaTO8E56D7AkOPu+xpb17wunngP0lUghIVv/rFxGJ/1Axf1xa qrzWy5q+4yjJc5jAxglrxPOVKm1HJEdJrtqHBQSqHMmVRsJV/sIvJ16EJ+oxQtiq cVoSJFVhJVsyVEC0vvMBL1eBz+f27mybA5wh5P5hiI0lwMzf7ksM67aoZwTO7wVC 1by3bFc8mYF7UQl5uvzw== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 427hvfw6ew-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Oct 2024 18:36:14 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49EIaE5v030762 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Oct 2024 18:36:14 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.1544.9; Mon, 14 Oct 2024 11:36:11 -0700 From: Pintu Kumar To: , , CC: , , Pintu Kumar Subject: [PATCH] mm/dmapool_test: replace printk with pr_info/err Date: Tue, 15 Oct 2024 00:05:49 +0530 Message-ID: <20241014183549.8898-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: ATUTi6_cuKWZcTfrKJyDwfoZKBZN51ps X-Proofpoint-ORIG-GUID: ATUTi6_cuKWZcTfrKJyDwfoZKBZN51ps X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 clxscore=1015 adultscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410140133 X-Stat-Signature: g6hn1xxs4u6ny989xse5yhtq435wje34 X-Rspamd-Queue-Id: A1ED81C0007 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1728930969-871467 X-HE-Meta: U2FsdGVkX1/s1EgRcQXF4Es4Ch2J6mZSmHUyR1uZXrSn+rpPnDrD+vgeBmWOHHCh4vhTgXL50PPMR/OF1rDFc7TvhJGH5Ra5vT2dFlEUP6/TUYJeaiDIzRzoWSbnJW6+qo/t165683cXKPiMyhcTdm+4Uh/mCKHmoZ7xwkD/jI0qanxjSTNB/Myr5kihPNWWl6F8+paPPPX6ft7PzgbWD4d0BH8qbvrzIxijzbQextsN3N8oGgGn/+w8WyqvYfe/llbHG6Y4gsYs86ImQBYyBfnQH/WM/9mQpEfao5h826YjRmUxkRDJfRAkHIE665RLUGA2JYgd/aID17082EcfWzxrb7Nx7OQ7EV+06ZhQQho1VmLIR3yVLkN5Si4t3YjOuHvyrZI2K1CN/ttUSerQ3kQfc4dRAnmTUsDkK6CD90DETWVpIO3vF1nFxagoGNT1Sxu0iLY8PA3A7nKRW5ZSlMdnG9EI5evMb/WVyfwyR9CvOaT0eyjHLeT57qpFuHWTFxNtDrw27YSim2ypfkDZnRmNp686s/CtoAxxYwbTaK/PIp2+zclbzBhehD8WsUxLFk29bff+A9UeH2PT4CUcsHOF7XQcP3purPEcRAX5Rhf2xOhgPSpFksF9JHF+jakxcKEW+yLgBZaBK8/Jao08EUhmfoelVavukw1F8jgTecrLgfhEjfpaSEMOZdAAUcl+GJ5LMxzHhl4Ayxxq7gl/SWa8Obnjgx5Pr4uwZ3XQd9e4f3TB24FFEIMDHpBuwZ/BGvh+aDfJlquo92ZwzrIOKejwiA2F4GaW0BaBwVOB9AUzTifC+MwNKSzvWhroWiyIMRqBUyhK57v/83uVGE67ozB4BsoT03Nbnwg8t61hbmp4byNZK6PjPZBIHPzxXSBa4DQtQ2rBLirk8vc2p3dwQ9pAXeNEU1STBtCLEWRAY40Ckeg64NnB7sIkayj1yclt+EBFihO4T9r3NBQkxGR R3gMDyCK FcYVfPHbl9kvToteF6z3tDlv//Ht62hCLP5wLztUBCF7/nkEfvKhWa+C03D3ArKQvy8Ly1bOxi1kFQiwaLq7jRdjYR6bz/9Mj9eZBPzBKy2TfNz0bY993/tswAeQJE908yeRpFbxN7w27u28NhUREVl6l4HtaVP800Qby99Y5nygTDhF6sk/n83K+fa7Df5UcpVvellIeJKf0XPH5c7D7HX/AnrsiK6A+kNRIz6IgKYTxm5V3HNsXkyfVUwgHM/gwT5t8iUYMFQY8fAkOLiv6IieqMgFIoea9h8AGqNur4lsSg+DWys74H2Taogfmh5R8fDonyD4ZMpI9Rc7828hMbV1KBQMj0Wq9piFGcaUw05LgIM3rJJJOKW9igN3qeH3EagBbNrd/InsbkLR3p2ruBE6uuQNp+ZDYGdZU7QL4oGb0MuE= 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: Add SPDX license header and use correct pr_info/err. These warnings are reported by checkpatch. This makes the style clean. WARNING: Missing or malformed SPDX-License-Identifier tag in line 1 +#include WARNING: printk() should include KERN_ facility level + printk("dmapool test: size:%-4zu align:%-4zu blocks:%-4d time:%llu\n", [...] Signed-off-by: Pintu Kumar --- mm/dmapool_test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/dmapool_test.c b/mm/dmapool_test.c index 54b1fd1ccfbb..99269e37ca59 100644 --- a/mm/dmapool_test.c +++ b/mm/dmapool_test.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: GPL-2.0-only + #include #include #include @@ -87,7 +89,7 @@ static int dmapool_test_block(const struct dmapool_parms *parms) } end_time = ktime_get(); - printk("dmapool test: size:%-4zu align:%-4zu blocks:%-4d time:%llu\n", + pr_info("dmapool test: size:%-4zu align:%-4zu blocks:%-4d time:%llu\n", parms->size, parms->align, blocks, ktime_us_delta(end_time, start_time)); @@ -112,7 +114,7 @@ static int dmapool_checks(void) ret = device_register(&test_dev); if (ret) { - printk("%s: register failed:%d\n", __func__, ret); + pr_err("%s: register failed:%d\n", __func__, ret); goto put_device; } @@ -121,7 +123,7 @@ static int dmapool_checks(void) test_dev.dma_mask = &dma_mask; ret = dma_set_mask_and_coherent(&test_dev, DMA_BIT_MASK(64)); if (ret) { - printk("%s: mask failed:%d\n", __func__, ret); + pr_err("%s: mask failed:%d\n", __func__, ret); goto del_device; }