Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1563218pxb; Wed, 2 Feb 2022 07:43:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJyzR5STcJcNxDnmDhhFAdtRbBu9tDckRm/a3+BARD7WAx4FSROcLLJ1pE/LRUUAEJsqEL X-Received: by 2002:a17:90a:e08:: with SMTP id v8mr8786772pje.76.1643816600453; Wed, 02 Feb 2022 07:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643816600; cv=none; d=google.com; s=arc-20160816; b=M4TVcXp8j9Trq056VKAAuoa3wWYWUBwu5H5AU+ZmouybRCxOQWkZNQSs76eGFFrXQV nV7SHlbZCiHuK7I7/pyGiKywSpsf+ELOjE9em98gAfBNA2K5HUCeM/TZj4bL5O7PE1aW DPcaGVeIkvIu13xFoh169TzvO6MAfncD7SOX3BSAjlghH/xyJdfRerS5ucNFhYPxbKAu o2zbJ2fXV/QQ2sH2FmK+tYgGig0CGNw9+0DA+FMPlKrPuLXm8uAzkQ507pD0nKMFKg6M pRLtxZFM4fZICksnHaxpTM0pbtuklEGMLv9kRxxMKvmFOrb4NkWCLutuf503wiWGgy64 1JjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=ggtyUfHE+iCUj4tZLujrVI2bZS50yJJNZ1x1bmRTZ4g=; b=RSEWrH3XCnXBQoZOldGKig5aGcipRrETZAEPo//mRZTa2jB+VqEOwv3jFRvo92O0Bg 4BP1czYZ5YYH/dYu6yiyf/3TQvKPT8bepdQwc4J34A80kMd+Hc6gC1ApmnZBB7uWjZOQ cw7N8TKubVSAeST3cbo8yi3nL91FNdQGxpUt1u0V6WWvkjcr4Nmi917y0E/BUb6QELTo IbG9EniJwN+7Ky68gJmo9ESzPwfw2NlmiF9Vcnu9+FHuOuWAfu4cHFzXZPgVx8nBF9+Z HNjUTKva/wcd3maikg9qbF9iCRHeABdbDN5Cm7yz3/yt9GVTWwRaKeBFmn/cWS7c3Iyy k8Ng== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2si5282381pja.40.2022.02.02.07.43.07; Wed, 02 Feb 2022 07:43:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245701AbiBBJ71 (ORCPT + 99 others); Wed, 2 Feb 2022 04:59:27 -0500 Received: from relay039.a.hostedemail.com ([64.99.140.39]:33832 "EHLO relay5.hostedemail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbiBBJ7Y (ORCPT ); Wed, 2 Feb 2022 04:59:24 -0500 Received: from omf12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 41606120372; Wed, 2 Feb 2022 09:59:23 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf12.hostedemail.com (Postfix) with ESMTPA id 80BC22B; Wed, 2 Feb 2022 09:59:07 +0000 (UTC) Message-ID: Subject: Re: [PATCH RESEND v2] scripts/checkpatch.pl: remove _deferred and _deferred_once false warning From: Joe Perches To: maninder1.s@samsung.com, "apw@canonical.com" , "dwaipayanray1@gmail.com" , "lukas.bulwahn@gmail.com" Cc: "linux-kernel@vger.kernel.org" , Vaneet Narang Date: Wed, 02 Feb 2022 01:59:21 -0800 In-Reply-To: <20220202095225epcms5p271da4783d86cb7c51d12d80f097aea44@epcms5p2> References: <4ee87d70d5348949787b2d747f90ecffa3119d0b.camel@perches.com> <20220202071405.1872044-1-maninder1.s@samsung.com> <20220202095225epcms5p271da4783d86cb7c51d12d80f097aea44@epcms5p2> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.4-1ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 80BC22B X-Spam-Status: No, score=0.32 X-Stat-Signature: 83dafdtptao487u8pnz4gt1xg3nxk94h X-Rspamd-Server: rspamout06 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+lUGzFSr7Pg8vY7XOFeKjB1HBlTbeI2XE= X-HE-Tag: 1643795947-725066 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-02-02 at 15:22 +0530, Maninder Singh wrote: > 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.