Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2573483pxb; Thu, 3 Feb 2022 09:21:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPrFxsK/RN9z9+gE8YsVvivzTrNEdMJRNRn+RiBcKqcjy4gR/XuxKo0SoOITxo5y3pbDE8 X-Received: by 2002:a17:903:110d:: with SMTP id n13mr35706540plh.5.1643908865398; Thu, 03 Feb 2022 09:21:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643908865; cv=none; d=google.com; s=arc-20160816; b=fRUpxAgXWH3+U1hNlOKEvgQm5b50U7I/WNvkgozxBMePQiUDJUp3kWcgnmYjUsPmZt ksobjEQkg4c3HqVs1We+3ufMczBLyDw4zOVGY5e3r1tq4UCBGkHhnSGcleLuQXWzFHCC 8upztiM0dttYsKQNHJ53VlsOYtDkTqdb0zsXKLEF73yZF9Na0GHb/KsdJ2ljAHf02aFo EFnrt/iqFTQFD9+Zs0Cb38GGPqenwLK8dIKFMt4dviVnJQdmWEd3lI5Ljzrhx8/b759g vNEhSmIp3zZcaOfc4VCopjeUDPuNibey4h7tKXORy8D+eBY9Dl4fIM58WTaanB+Alu5A QWWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:in-reply-to:cc:to:from :sender:reply-to:subject:mime-version:message-id:date:dkim-signature :dkim-filter; bh=uXYenapP+M+skViYeaA8T3CFXnCpSivrd+hyp8bOTAA=; b=JZlw460v0fg+GdM4bpE6RaHS+8RPAc7kFTI+laQASKrOcbHWrjNKhIXjKtre3+43lr eueCFIruwSeEnOywxhSNw7GyidqgqPmOxUi3m72XnMvYbN0pOwcxywyvpVrjsMJgQNMG R8VB/A053fYQ2+R8AVrGFWH1EtXHp7nEx9X5Vk4aMgJ1YSE5vE8Mi5LQ3Tka7/h36Osz RfAb7iAtCp5KJiqc7mDPWC6QTr+NoJ4spgTwsN2teer3GQKm+p2J0fvZzdnKh5EqhqcY dIaDCZlhHLnwmdFuVLuZ7EXatDdedk7D76UyBPFCdhmKwOjkwiz4Ii6w2grDrR5nen/o u+iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sEhQFEMm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g14si2046772pfq.349.2022.02.03.09.20.53; Thu, 03 Feb 2022 09:21:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sEhQFEMm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232892AbiBBKXG (ORCPT + 99 others); Wed, 2 Feb 2022 05:23:06 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:49286 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245554AbiBBKXE (ORCPT ); Wed, 2 Feb 2022 05:23:04 -0500 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220202102302epoutp02d0dd5b72ea18e665b95f749caf8bc138~P8QKatU-w0454704547epoutp02g for ; Wed, 2 Feb 2022 10:23:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220202102302epoutp02d0dd5b72ea18e665b95f749caf8bc138~P8QKatU-w0454704547epoutp02g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1643797382; bh=uXYenapP+M+skViYeaA8T3CFXnCpSivrd+hyp8bOTAA=; h=Date:Subject:Reply-To:From:To:CC:In-Reply-To:References:From; b=sEhQFEMmeWQ+zSXvGJQxkgtZIuH2S7nW/DEiRBM44yzq7tsij5aeZDB230MADn9mb kM2d+EZ9LrEOeOkaSPQuRUoKibOqaUF32ahuEDucKZbxellg59QAcMDo0lZLZ71AFs lpY3NaoDgOBi3agplZcON766PJHuGcYPVBEiyrXo= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20220202102301epcas5p20f09cb35e779679944212bd076822a75~P8QJ3cZym0127201272epcas5p29; Wed, 2 Feb 2022 10:23:01 +0000 (GMT) X-AuditID: b6c32a4a-de5ff7000000b6e6-56-61fa5b1fbbdb Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 17.6C.46822.F1B5AF16; Wed, 2 Feb 2022 19:21:19 +0900 (KST) Date: Wed, 02 Feb 2022 15:38:16 +0530 Message-ID: <1167862481.1626207.1643796496590@mail-kr5-2> Mime-Version: 1.0 Subject: RE: [PATCH RESEND v2] scripts/checkpatch.pl: remove _deferred and _deferred_once false warning Reply-To: maninder1.s@samsung.com Sender: Maninder Singh From: Maninder Singh To: Joe Perches , "apw@canonical.com" , "dwaipayanray1@gmail.com" , "lukas.bulwahn@gmail.com" CC: "linux-kernel@vger.kernel.org" , Vaneet Narang X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N X-CMS-MailID: 20220202100816epcms5p53058dc6f44229f8052f332f2a9b83249 Content-Type: multipart/mixed; boundary="----=_Part_1626206_1445824588.1643796496590" X-Sendblock-Type: REQ_APPROVE C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mvtp37TbihwbiDshu6SPskuiU ncukISFDG/H+oPcJYluJ4wCM728d4ZnMfgeTXyWMVJZULxi57G+opIJxZRoVGYoplNRfXiwn Kc8DAAA= X-CMS-RootMailID: 20220202071414epcas5p1d329ae4f76c281c1f8f7f07bfb36a919 References: <4ee87d70d5348949787b2d747f90ecffa3119d0b.camel@perches.com> <20220202071405.1872044-1-maninder1.s@samsung.com> <20220202095225epcms5p271da4783d86cb7c51d12d80f097aea44@epcms5p2> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ------=_Part_1626206_1445824588.1643796496590 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" Hi, > > > > printk_deferred and printk_deferred_once requires LOGLEVEL in argument, > > > > but checkpatch.pl reports it as warning: > > > > > When did that occur? Please reference the specific commit. > > > When printk_sched (now printk_deferred) was created it did not > > > allow KERN_. > > > > > see commit 3ccf3e830615 ("printk/sched: Introduce special printk_sched() for those awkward moments") > > > > I think with below commit: > > > > 98e35f5894cf208084688ec0c7bb7b713efc997f (printk: git rid of [sched_delayed] message for printk_deferred) > > > > earlier it was passing hardcoded KERN_WARNING to all printk_deferred messages, but now it switched > > to normal printk behavior. > > > > - if (in_sched) > > - text_len = scnprintf(text, sizeof(textbuf), > > - KERN_WARNING "[sched_delayed] "); > > - > > - text_len += vscnprintf(text + text_len, > > - sizeof(textbuf) - text_len, fmt, args); > > + text_len = vscnprintf(text, sizeof(textbuf), fmt, args); > > > > > > I did not search that earlier, because we were fixing some issue in our local module code with printk_deferred > > and then checkatch reported the issues, so thought of fixing it, becaue without level > > pritk_deferred messages was shifted to default loglevel as done by normal printk. > > > > So I thought it was designed to pass loglevel from starting stage and checjpatch reports falsely. > > but seems checkpatch needs to fixed with that commit itself, because earlier it was not required to pass loglevel. > > Most of that should be in the commit message. Yes, Initially I thought it's added in checkpatch by mistake, I Should have checked history of printk_deferred also. I will send new version with updated comit message. Thanks ------=_Part_1626206_1445824588.1643796496590 Content-Type: application/octet-stream Content-Disposition: attachment; filename="rcptInfo.txt" Content-Transfer-Encoding: base64 DQogICA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT0NCiAgICAgIFN1YmplY3QgICAgOiBSZTogW1BBVENIIFJFU0VO RCB2Ml0gc2NyaXB0cy9jaGVja3BhdGNoLnBsOiByZW1vdmUgX2RlZmVycmVkIGFuZCBfZGVmZXJy ZWRfb25jZSBmYWxzZSB3YXJuaW5nDQogICAgICBGcm9tICAgICAgIDogbnVsbA0KICAgICAgU2Vu dCBEYXRlICA6IDIwMjItMDItMDIgMTU6MjkgIEdNVCs1OjMwDQogICA9PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0N CiAgICAgICAgICAgICAgICAgIE5hbWUgICAgICAgICAgICAgICAgVHlwZSAgICAgICAgICBKb2Ig VGl0bGUgICAgICAgICAgICAgICAgICAgICAgIERlcHQuICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIENvbXBhbnkgICAgICAgICAgICAgICAgDQogICA9PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCiAgICAg IE1hbmluZGVyIFNpbmdoICAgICAgICAgICAgICAgICBUTyAgICAgICAgIFN0YWZmIEVuZ2luZWVy ICAgICAgICAgICAgIFN5c3RlbSBTL1cgR3JvdXAgL1NSSS1EZWxoaSAgICAgICAgICAgICAgIFNh bXN1bmfCoEVsZWN0cm9uaWNzwqANCiAgICAgIGFwd0BjYW5vbmljYWwuY29tICAgICAgICAgICAg ICBUTw0KICAgICAgZHdhaXBheWFucmF5MUBnbWFpbC5jb20gICAgICAgIFRPDQogICAgICBsdWth cy5idWx3YWhuQGdtYWlsLmNvbSAgICAgICAgVE8NCiAgICAgIGxpbnV4LWtlcm5lbEB2Z2VyLmtl cm5lbC5vcmcgICBDQw0KICAgICAgVmFuZWV0IE5hcmFuZyAgICAgICAgICAgICAgICAgIENDICAg ICAgICAgQXNzb2NpYXRlIEFyY2hpdGVjdCAgICAgICAgU3lzdGVtIFMvVyBHcm91cCAvU1JJLURl bGhpICAgICAgICAgICAgICAgU2Ftc3VuZyBFbGVjdHJvbmljcw0KICAgPT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 DQo= ------=_Part_1626206_1445824588.1643796496590--