Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2300066pxv; Sat, 17 Jul 2021 09:34:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5rodUfb4Ph/7tqwSGCwn8M1E0nA/q3XNF+02BlQU42qP+m8gWUoqLIOWrLpN9oPnA6N+n X-Received: by 2002:a05:6e02:d41:: with SMTP id h1mr9912671ilj.191.1626539645217; Sat, 17 Jul 2021 09:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626539645; cv=none; d=google.com; s=arc-20160816; b=RKfptEROauf7mWX7L7W91WLWNtvqT3NTLuU2efL3o2DgaD6Xkd5852/1k6+CymvOQI 1s+BrD6GnRNb4PtZCmcCLftLkeUKtBXBIuHh0cOUtixWDxEX2hnex6aBzJyIUdEbRigC +FQAUIf4f0ukuaw6JK5OsjqrP3xpRDg2rSnxIFFJTgXry1icJfiJCOIyLAnn+2+pctCd 2oijqOVEboXpQNs/kA2Yq3KwX2RYdmc4vxdktIVux1cFhJH763VES22a6+zyGhEqq/xO mDrqutAFgIHe3+SiiVOrMCye7BadIUCFzOoXRJZZaNLQaqtGPDqC1EMVhviMmYVwc5Kr VFFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=p3Jr+ib7KAhvoedwM1ypkCaUCOD91JhpXCt/GOvedbI=; b=0gdjX6g+/ESmOoYhSHsqxk7prk82ctDM2vgwUtihlw67pXbEgM45RqhLKGyfa5re/1 8ffGXqKn1oxmNy6g+/Dd0VJFu9/9CrNHU1zTLdhQVPz6Ejvu1OB7vEtknKDmSRSKvroK FJcW2OLWsBBEvo+e8i9RRwc3vyiqRCydyxKfwC1OIgBQ/QlsThfoj5NesPT0QjEFKkYv /AkpTTR0KmDObjCy5kykSHBCycRUZNNOt5kAIiVFAAhTLtdNNLSzAt0tTdrblZ4qAfdV +QBXGycOI1LAHkPMRo/QjutMimqemTK0JbH/VnpTQfLP3eJmkWUg9w8/WD8FuqJDdFKE +0sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=skh7E6t7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si14761458ile.109.2021.07.17.09.33.52; Sat, 17 Jul 2021 09:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=skh7E6t7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230386AbhGQQfP (ORCPT + 99 others); Sat, 17 Jul 2021 12:35:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbhGQQfO (ORCPT ); Sat, 17 Jul 2021 12:35:14 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2163FC06175F for ; Sat, 17 Jul 2021 09:32:17 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id r135so20104250ybc.0 for ; Sat, 17 Jul 2021 09:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p3Jr+ib7KAhvoedwM1ypkCaUCOD91JhpXCt/GOvedbI=; b=skh7E6t7kNc+3aF+lFWBqBovhj5/eyxbXgejBsa6aN5gtd0QTgL7+egN6tjTxFlmN1 xs/9I9gNJ1mZtOf46A/WZsIRaS3+lsV8WjDcc4HQDv4a5pAbx3st+2abdQBE/dAevheU XdtQrJiNjfmWd97HwDGhG36WPrRb/m/X6sQr7X+wePJgbLFUJNf7ZI4D1RVWqpBS2YXX DT/Os1rv7HCgMMoubp35V4MFmiOKjmjnUHI6XOBhUR/c31HpwkjBPLjixFvgc8KhFIX0 5G1BrkdTkN3O/SvELkUGGpax2fCERWoEPmDh1/p45gOB+PavPoPYa08DZV+ZGMS9gyi3 twIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p3Jr+ib7KAhvoedwM1ypkCaUCOD91JhpXCt/GOvedbI=; b=id1S+EWdFUgHFoYSkFWxQvMXi6hu94f3EHe4tzJyIhb1qu5Mwwdsa92mAPGI6YnpO6 SwLZ8gT3yWeYfOXOS0L4YBCbeTllFXIlnLmuCDolXvT3SAhrd6bbVtIMWr/69GdCHV7k G9JsZGTifi7fsVpySGXhi8RzXhCXLbd2qjsSBkyJtQQVGCC0bTL7CMFp3KsnyXClbN6v jAToGN5zOgZF38UuZ5H5BqHrI5IV7wuJlQYJMiID3t/0JhXP/MyAvPBlRXVYbqC1F64W H2GAjX6izbvCUwRKCcTQE4e0EpTJxVj4yrfz4S8VoM766CH4KDqU8ASi3jhd5Q4M8Yl+ 6baQ== X-Gm-Message-State: AOAM532v8wzC6dqGNSr5lJigzRERwUnp37KCdW0z8hoElob5QphCIl6i faxg6AtOPq9jO4oXxe2ZyIxvmU4dOwZonqnSwCc= X-Received: by 2002:a25:b948:: with SMTP id s8mr20210430ybm.281.1626539536206; Sat, 17 Jul 2021 09:32:16 -0700 (PDT) MIME-Version: 1.0 References: <20210716182126.4392-1-dwaipayanray1@gmail.com> In-Reply-To: <20210716182126.4392-1-dwaipayanray1@gmail.com> From: Lukas Bulwahn Date: Sat, 17 Jul 2021 18:32:05 +0200 Message-ID: Subject: Re: [PATCH] checkpatch: remove obsolete check for __dev* section markers To: Dwaipayan Ray Cc: Joe Perches , Linux Kernel Mailing List , Andy Whitcroft Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 16, 2021 at 8:21 PM Dwaipayan Ray wrote: > > Commit 54b956b90360 ("Remove __dev* markings from init.h") > completely removed the definitions of __dev* section > markers from init.h. They can no longer pop up in the kernel > and hence the check for those markers is unneeded now. > Generally, a good idea! I like this commit of removing obsolete checks in checkpatch. Can you identify more checks in checkpatch that are potentially obsolete and share them with us? I assume: If you run checkpatch on the whole latest kernel tree and you run checkpatch on the last 50,000 commits or so, all checks that were never triggered on those evaluations are potentially obsolete. I assume that only a handful of checks would qualify for that criteria, and then we could dig deeper into the history of those checks and see if they still serve a potential purpose or can be removed. If you need a powerful server to run such checkpatch evaluations, just let me know. Just on the wording of your commit message: The first sentence reads very strange, because you are just repeating the commit message. So, you can probably just combine the first two sentences and make it much shorter: Since commit ..., the check in checkpatch for __dev* markings is obsolete. Remove this obsolete check. Lukas > So remove __dev* section markers check from checkpatch. > > Signed-off-by: Dwaipayan Ray > --- > scripts/checkpatch.pl | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 461d4221e4a4..e29c0961b25e 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -4023,12 +4023,6 @@ sub process { > "CVS style keyword markers, these will _not_ be updated\n". $herecurr); > } > > -# check for old HOTPLUG __dev section markings > - if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) { > - WARN("HOTPLUG_SECTION", > - "Using $1 is unnecessary\n" . $herecurr); > - } > - > # Check for potential 'bare' types > my ($stat, $cond, $line_nr_next, $remain_next, $off_next, > $realline_next); > -- > 2.28.0 >