From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E963FC433ED for ; Thu, 20 May 2021 09:42:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C93296195D for ; Thu, 20 May 2021 09:42:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233690AbhETJn6 (ORCPT ); Thu, 20 May 2021 05:43:58 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:54705 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233418AbhETJlZ (ORCPT ); Thu, 20 May 2021 05:41:25 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 62A861AA7; Thu, 20 May 2021 05:40:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 20 May 2021 05:40:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=x2k0UiONZCObGpvODgZnHAg9eN EhLhqxabKrZsSDvjI=; b=slOL6qNSXs7we0zun5eCgQqDc4sDuaCxRsZDYeo4zh nvEfSxtYRo8mE/7Mgvb3uO4GLFSNk7rvmUuqsKj5XHpUg5LQ9B3Zy/Q1ZwVh5NZX NYNagULLZMVlQALqNZlxfHXcJex7KnQpkf921f9SlfQdXsxp+UUKHflC34C2MUJy ytnwBjdOoMVlCMaSXkTCTfZ8S5WkG+ViuDVCa9rIwwq36TRcnkLZ7GylXmZVDiEh 8Qw40I3vtyLd2usEU5n8Ctfw576Uc1SfaeylFrcsdJtC5ycPrmFghhS1ejPVLVSG 0qa9aL5ZTxOJLzRGovh55IHZH4odDYrSBMxLfaEEk2GQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=x2k0UiONZCObGpvOD gZnHAg9eNEhLhqxabKrZsSDvjI=; b=IyGn/yUXBB4Bpz5cZSmPcI0f41zN6l8Nv URV5aWiFPa62Qk+CbttH+aVLnE0BJAtPXcbSppwFOfoPQ9ancllnaQsj5GO5gow3 gFo0wEjnAx4oYv4YxRILCteMksdHyFG2Irf+IGwhr0lMD3sMa0Evt1u2mJkrJCWT oiHTH1NTDgM6EIbPeejn9M0DfeEqbYhnVASN66cYcbfbd0cpwc1q7DHtLlziLhQ1 5C3AoRHQ8RZ98sT3EP0essqX1/2uxlCa/1+4cWqvkS7YMt7nacFYS842vDpcAyKY nJDr2gjDnXU4WWQ/v4Bqg1+K7/0LCvCat5ldj1KNZdlyqoox+0CkQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejuddgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeetnhgurhgvficu lfgvfhhfvghrhicuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucggtffrrghtthgvrh hnpeekhfeiffejveefveehtdeiiefhfedvjeelvddvtdehffetudejtefhueeuleeftden ucfkphepvddtfedrheejrddvudehrdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruh X-ME-Proxy: Received: from mistburn.lan (203-57-215-8.dyn.iinet.net.au [203.57.215.8]) by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 May 2021 05:39:58 -0400 (EDT) From: Andrew Jeffery To: 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, Jiri Slaby Subject: [PATCH v2] Documentation: checkpatch: Tweak BIT() macro include Date: Thu, 20 May 2021 19:09:49 +0930 Message-Id: <20210520093949.511471-1-andrew@aj.id.au> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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