Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2065058pxj; Wed, 19 May 2021 22:26:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9ExXdL83frZlO1V3xRtyO8KcLstl4njtlRtikH/okHMPM68jyLaWMOj7cWtl5FtwcIXG9 X-Received: by 2002:aa7:c4c2:: with SMTP id p2mr2929610edr.144.1621488368063; Wed, 19 May 2021 22:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621488368; cv=none; d=google.com; s=arc-20160816; b=NNTgd2lpKts+erFLb32iYl8eS4hdEPY4yy0X2zkoxdDiyaC0v7PTgvmvozGs0wK0zQ Z+lNPBJQlXV4/ygHVniEsWXif+aqYY4okcN+OWYLetcgxTmJW8hZd4xReG+AZqlyQ8Nc guKzC9T+NMPaZHk+fENJATicOLhw0BpXYAL4Q7cuOQX1cv4W+DLdGUq2H/3VHI2uGsyJ XTFD4PAmmmTFua+OZq1nV5Hb0TmWoF9k8w5kHiA5x1baJJcbuuVLHOzKDbWpwNbXKRaX Kva75pX9A4+eHEPgrm4bNPLY25eQ3RzQz91xerTbKSmCJRrvtaPaQzixE2ZJ9mqcyvk8 4leA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=lFsvoCkU9zQjo7Svj5G5k4DUPYp2NU7fos0X3OEtvpQ=; b=ku0ZkLeU6eoivIjMPyJIUx3ybxcSqKJqHTzAEgY2ZY2BQnOWb1cZ44re/YV4Ck7cSE DuNnrcuMgjgF665LtUT2Y7vczgAdfb7hgbyNxN2zBCj84UfsYWt7sp3yocDKAK1anTHO Plgjo4tX+QG6sIa2FpUzJgHkXKslAxUOICRpUi+Rr1xXxEpQcd02VZ2rdhD6P5GT1I1n 9QZdJW3tw/S0x88O6eVkQk7WkHhv70vDXCcsKtykIvjPkiIr8jCgUSnt31yW88aj31Oh c3k4KxIGPtl4XvmjmtDXeuQES0dy998oxoR8u9mAXDha3Vl9jR1cXEgZslce99dscLKm JrDQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg25si1781154ejc.302.2021.05.19.22.25.41; Wed, 19 May 2021 22:26:08 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229676AbhETFZj (ORCPT + 99 others); Thu, 20 May 2021 01:25:39 -0400 Received: from mail-wm1-f48.google.com ([209.85.128.48]:37396 "EHLO mail-wm1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbhETFZi (ORCPT ); Thu, 20 May 2021 01:25:38 -0400 Received: by mail-wm1-f48.google.com with SMTP id f19-20020a05600c1553b02901794fafcfefso3950770wmg.2; Wed, 19 May 2021 22:24:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lFsvoCkU9zQjo7Svj5G5k4DUPYp2NU7fos0X3OEtvpQ=; b=NWTNLA8psn359D+d8i94TFdHpY2QtJlfmw4Yvt20OVIlGgJzQVV02XM00nFj1T8Pvr 3ThjwfFWFGULYE7rAK+Vr3Ap/z8u+2yUElxrWvg+qcbgHWqR4gNkDlb4o6G6uOy7WK1f ncn9QoguChn35rAxYB4/sIeDsY+ndS90i8q5/+O1s3sBc7ZGxO2TFLwjCWIVnTMkDwlF LRFNTmU0qdx4cvZEz1oxVdwmRgUFwiEHSaE1uVbym5Zq6Q0GD0uxvNJQzXCja1D4mC7V TH+nhVFcJrrUb6mX8R3ZyAAiJi2S/q6UvdeI1D1d4S6oSxJAKY1VyK9gOzA/lYFZXFCU d+UQ== X-Gm-Message-State: AOAM533UCJXbLyPSmsyD6GtvgHDIHkMeVr+QqYvTCTllfmT6q6uwANjU kAm3zfCIBBcvKiqNUI5a/7I= X-Received: by 2002:a05:600c:19c8:: with SMTP id u8mr2149681wmq.25.1621488256924; Wed, 19 May 2021 22:24:16 -0700 (PDT) Received: from ?IPv6:2a0b:e7c0:0:107::70f? ([2a0b:e7c0:0:107::70f]) by smtp.gmail.com with ESMTPSA id g206sm7863810wme.16.2021.05.19.22.24.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 May 2021 22:24:16 -0700 (PDT) Subject: Re: [PATCH] Documentation: checkpatch: Tweak BIT() macro include To: Andrew Jeffery , linux-doc@vger.kernel.org Cc: dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, joe@perches.com, corbet@lwn.net, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org References: <20210520015704.489737-1-andrew@aj.id.au> From: Jiri Slaby Message-ID: <7a14c4ea-46ef-a615-a109-1b9777c507cd@kernel.org> Date: Thu, 20 May 2021 07:24:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210520015704.489737-1-andrew@aj.id.au> Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20. 05. 21, 3:57, Andrew Jeffery wrote: > While include/linux/bitops.h brings in the BIT() macro, it was moved to > include/linux/bits.h in [1]. Since [1] BIT() has moved again into > include/vdso/bits.h via [2]. > > I think the move to the vDSO header can be considered a implementation > detail, so for now update the checkpatch documentation to recommend use > of include/linux/bits.h. > > [1] commit 8bd9cb51daac ("locking/atomics, asm-generic: Move some macros from to a new file") > [2] commit 3945ff37d2f4 ("linux/bits.h: Extract common header for vDSO") > > Cc: Jiri Slaby > Signed-off-by: Andrew Jeffery Acked-by: Jiri Slaby Thanks. > --- > 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)) > > -- js suse labs