Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2313453pxv; Sat, 17 Jul 2021 09:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMtINquagOgwSYb7e1k+61xs1nJmx42k1/doWsfIIRdrg+ne5X2S5Azg0IvfyiSrxBel7W X-Received: by 2002:a6b:7901:: with SMTP id i1mr11823354iop.41.1626541167404; Sat, 17 Jul 2021 09:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626541167; cv=none; d=google.com; s=arc-20160816; b=Gyq6db6kk5KZDom0hL0Xpu+6F1rd2q202um/ngfdU66+kjTkUFqUouIHx8Lfi6TJs5 CN+XQHlKtsIs7XCTNUIVVCN+j4tQy8A2dck3kSwkY5OHTBNRIfldR4Sc9LszXmjAgSNO z84dLzd5zGZa/NGolGOe+acskg5QLeujMBJeDaFv0fpsDBReKm08aAAIjjMwTGMXUzQs Y0BLrWsKP/a8yxPEscJllg5LcQ50kPyJwr6IrdnUUEdLFsWQCyKs7m7KJjP1uWcZ9ybN ihfCdX35Nv5yqG02scdvb/VbhVTeKaDSF5xXfBOAAQaWvh9IJlHfNcQYtwv/gzaJYd1N 7aSQ== 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=9jbWRwx3vNpivElmMcM2Cy7N7lse3df9EYtEBR82SZo=; b=D1yCBmltUqWO53VscG04JHvGBPCFrZfoNI9GVoZvuyfbNfy79rraa0F+t8RRkroyXH L6gAQcoxg/3u6AJFh2bNYilwVlZ2ZkbxnX/kae2znCdxVN4ZkSIWGrGXzjgVKoG9fH+z EWjmD7nH/HlpfPxjOAYRn4qZ0bF4dk/6aKIzEGxRFe3fcTRLtFoUJBW521FChOyL/Vqf ocjjt7wo94gtk25kOiO8D/ySTnVZ7DXofHsIVWSTeUb57NVVVtOiKbdlgrUCryJ1H3mj FxCiAeSyDFdH1/VnBeekINKAphy9g7nXdYspuNs1QiFq6oAvkJIA0yvCY3U6EE9UD3cF pIWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TW00OElW; 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 s12si14533365iog.99.2021.07.17.09.59.14; Sat, 17 Jul 2021 09:59:27 -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=TW00OElW; 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 S232312AbhGQRBC (ORCPT + 99 others); Sat, 17 Jul 2021 13:01:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbhGQRBB (ORCPT ); Sat, 17 Jul 2021 13:01:01 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F01AC06175F for ; Sat, 17 Jul 2021 09:58:05 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 22so21279941lfy.12 for ; Sat, 17 Jul 2021 09:58:04 -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=9jbWRwx3vNpivElmMcM2Cy7N7lse3df9EYtEBR82SZo=; b=TW00OElWdldwhyck4ia1xSbAIrPzwakzZhTHlT/Wm7Rk9/2l94/pFpoLDmnvHTB7xq Xr6VkhHdreJ264xO8wQwtSE35BLr531jqX0D13715NJxc3Cd9oDDmqYCipRGHo03TZPS YkNM+jZo49wGSZtdvhgcUuYxGvG1QWoZG+nYbiuO7LojfNefn4nkuFsx8BTTfBklM/WC aLw3vkDkZOFUJANsX9YtHV9+5DyiDQdJrgHx7Z/tfyhNLqWLcs6HdXqtIXrlWn8h3v4O lGSngUm27yBN146gpT3syLh4UsNHXiU68U2nu94tuScpFpbjV3SynYF7r1gk8uFWSiNm YBWA== 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=9jbWRwx3vNpivElmMcM2Cy7N7lse3df9EYtEBR82SZo=; b=SuIYhlL5JVWQxkA8REDsihR6J8YQIyerl7ttJTc5wtcwMvYYeWRAw1c4MQjxO4TNqZ lZbB+rqdksPY/PCizhJVckjWpXikALBx20GdlUcNr6uJcfjMP4v8Eo7XqXeQ184D7tiQ vQjvKXt3+r03/7/pQUe6XbuQPL6BW8DYf1qSjxKd2/0KwNgZOP0pN5TlQEfV+tD/n2Pa qbT+9oQkOvaxpqCgHGKFCnoA26JMK8nhNUsWlNjk0vmFSaEeieV1hEhT6Xav8wqcmudW tEwtpCA314uaFC/T2w5h6K+uDzO5Cc+TTnLJn0YckvGmtGQB/N14SfP8+py6fuHoSYDq CjXA== X-Gm-Message-State: AOAM533S74f5mJrk0Q6RiqQzNFAWQiZYPahuXvSLgip0n75UIYNx0B5w fQcXkdXqOY5fFxC8dEXhTRl15SzP/yxIj3Y4NLk= X-Received: by 2002:a19:ae0f:: with SMTP id f15mr12291827lfc.117.1626541083299; Sat, 17 Jul 2021 09:58:03 -0700 (PDT) MIME-Version: 1.0 References: <20210716182126.4392-1-dwaipayanray1@gmail.com> In-Reply-To: From: Dwaipayan Ray Date: Sat, 17 Jul 2021 22:27:52 +0530 Message-ID: Subject: Re: [PATCH] checkpatch: remove obsolete check for __dev* section markers To: Lukas Bulwahn 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 Sat, Jul 17, 2021 at 10:02 PM Lukas Bulwahn wrote: > > 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 identified this one while writing the verbose documentations for that rule. I will probably get some more in this process. I will share if I get something else, given nobody has any objections. > 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. > I do have the checkpatch evaluation on the whole kernel that I did about last month on a cloud server. I can use that. And I have the 50k commit checkpatch report from v5.4. That should suffice for now. But thanks, I will share if I require any computing power. > 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. > That sounds logical. This particular check was added by Joe in 2013 when the process for __dev* marker removal was in progress. If he has no objections to it, I can send in an updated patch. Thanks, Dwaipayan.