Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp74516pxj; Thu, 20 May 2021 04:55:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAUgFUrf7yAd0AAnD7BavkbPNrqfwNvFHOspq9NnEJLAFZYAm+8ZkF2XCttHfmz0NtoiUr X-Received: by 2002:aa7:d413:: with SMTP id z19mr4601020edq.37.1621511720600; Thu, 20 May 2021 04:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621511720; cv=none; d=google.com; s=arc-20160816; b=SADfFWskyLYzeixo0JsrBiKf7N2e8a2/IBxelDDwaGm68SSRLjfJNZYpMRCRRapuVp XwdUwkDUcGtDIwwV+KjOajxytjh5RiYUH5NpPvkN68ydidsich/6wdHtc+8sQTy+9HHO lkgQU65F6HQPacWOSDntLVsU06+JksDPdHA90tnOwvLmGtJPx/5OWZcT7lI9qOZ5Z4zo o9vWgkeqmjiCWkyHFRtZB2kPquormmpdYdZeuVzyURBnHRBWL8bdJEkeOX+drBoUH8xz 8nD3fyM8n1zDj/XdrkjUDliF/mfq8WZgUfxRrMG3cplnulvyP54/5iJmFF9AlMJ8OeEQ YcYQ== 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=7aih/d9855v20nIT+U7ZGnplm0nKULD9g48GJ8t3Fc4=; b=Y5C/DSNLg1o+IplU2deDNhs2l7FonXp/jBAlTr2HdfugF5/JZlr3V0cRKBnVBIRcAM 8v1osPd7ZrwldYe1pS6REvASqKaICgjOmWPGGD8bNh7EMrsKNwqAe/46hPNTp7i5i4IV nNT0avVxV96AViscoHJcrB6t18tTuFZVlKGbKoIE4j0ZMF+K5WgtEKd99Y1t8P9iEh0Q xw66cLW6yMk7NsTtDe+TM40vXn1BuG+4UqLmvDv4/gCFDQ4PxVUvEkO3lGl3aGRyuUbo gMW++retWc3c8MGQNLPYi4rFxsaaIDXeXBL43WZc5YUt9D9+GN5jj5QI5lQjjX0YiW7L 01Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XpCvTFvk; 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 hp6si3016497ejc.89.2021.05.20.04.54.56; Thu, 20 May 2021 04:55:20 -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=XpCvTFvk; 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 S242713AbhETLw0 (ORCPT + 99 others); Thu, 20 May 2021 07:52:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242938AbhETLsn (ORCPT ); Thu, 20 May 2021 07:48:43 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C004CC06138C; Thu, 20 May 2021 03:15:34 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id z13so23688287lft.1; Thu, 20 May 2021 03:15:34 -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=7aih/d9855v20nIT+U7ZGnplm0nKULD9g48GJ8t3Fc4=; b=XpCvTFvkUZMZKmbL0+fpxbM24MMpjQGwQ07dN2rzc30AXj0c5XvZ1pBV9QSbA8JqcI gwkWFlIv1LIZPKaMNrRqARFzk1OmiqW5eepN9euCwKdEE7qxc+pI7Vigf6EHLp4zmQEq WX4rYZZrZF3hM0Oze7xDsFHR0eXL/E1XJmzgJh0JCLS5I+cVheSdk7xTuXs4gQt5/jc3 JH7W895ElWhxzggpWUs7DavKkRoY0s2X7F1kQzwCoYgTQnW9n2231qsmOH+2H9Zj4ntR 865bwangq/WyEnQmb3UM4S2bgAIZmZymg9vfin94XCNryEASAnWtMGrWvFOuw/nsjHLr Ihmw== 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=7aih/d9855v20nIT+U7ZGnplm0nKULD9g48GJ8t3Fc4=; b=V+hi0qKBy1kvR2rfnLAGjOOiKZa4SIP8CjzNDatDwnPaHRk3jowUAKI4T1wxvm96CG lSU909MHnK1Rurfu6iqNpEZt7RajcZlp7VRWo0qiR+DOFpVesH4fbhNrSjIAemEM2lGR tV2ojfhCtAk3tE+ugTkT3N19VYVZr8ZMy0Ni33Q7WA6E/+ckFnDTK91QYkp7HDexC620 CCIrqxjniDHOfQBkJslLArN79Stvi+iqi23Z8j/GzeyFpsTmOqs2TQEC4gS1wgGDfZ9K MR5evEt9qxTsPUGhcQ+zUkOjP/djnxoKsTUgRGc3R83198dQCF1heBvbIUHX5B75xs03 yT4w== X-Gm-Message-State: AOAM53068GF4wCbum/7Ghd/MQvVA0bVIFEYCOnl5GjOZnsEAGHbXEbQY ZM6IB2r+/Iz05pWJ2YJuEsIGKoXtyyVgOu8Eg3I= X-Received: by 2002:ac2:4ed9:: with SMTP id p25mr2856096lfr.576.1621505733022; Thu, 20 May 2021 03:15:33 -0700 (PDT) MIME-Version: 1.0 References: <20210520093949.511471-1-andrew@aj.id.au> In-Reply-To: <20210520093949.511471-1-andrew@aj.id.au> From: Dwaipayan Ray Date: Thu, 20 May 2021 15:45:20 +0530 Message-ID: Subject: Re: [PATCH v2] Documentation: checkpatch: Tweak BIT() macro include To: Andrew Jeffery Cc: "open list:DOCUMENTATION" , Lukas Bulwahn , Joe Perches , Jonathan Corbet , linux-kernel , openbmc@lists.ozlabs.org, Jiri Slaby Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 20, 2021 at 3:10 PM Andrew Jeffery wrote: > > While include/linux/bitops.h brings in the BIT() macro, it was moved to > include/linux/bits.h in commit 8bd9cb51daac ("locking/atomics, asm-generic: > Move some macros from to a new file"). > > Since that commit BIT() has moved again into include/vdso/bits.h via > commit 3945ff37d2f4 ("linux/bits.h: Extract common header for vDSO"). > > I think the move to the vDSO header can be considered an implementation > detail, so for now update the checkpatch documentation to recommend use > of include/linux/bits.h. > > Cc: Jiri Slaby > Acked-by: Jiri Slaby Looks good to me. Thanks. Acked-by: Dwaipayan Ray > Signed-off-by: Andrew Jeffery > --- > Documentation/dev-tools/checkpatch.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/dev-tools/checkpatch.rst b/Documentation/dev-tools/checkpatch.rst > index 51fed1bd72ec..59fcc9f627ea 100644 > --- a/Documentation/dev-tools/checkpatch.rst > +++ b/Documentation/dev-tools/checkpatch.rst > @@ -472,7 +472,7 @@ Macros, Attributes and Symbols > > **BIT_MACRO** > Defines like: 1 << could be BIT(digit). > - The BIT() macro is defined in include/linux/bitops.h:: > + The BIT() macro is defined via include/linux/bits.h:: > > #define BIT(nr) (1UL << (nr)) > > -- > 2.30.2 >