Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2114915pxj; Thu, 20 May 2021 00:00:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/XPLKzjDDsJdT4ztanQyRGschFvO6/c10EM/+v5Ef+LGbzE2j2b5RqZewBXyE0ZL9BPOO X-Received: by 2002:a17:906:fc0c:: with SMTP id ov12mr3151041ejb.301.1621494036008; Thu, 20 May 2021 00:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621494036; cv=none; d=google.com; s=arc-20160816; b=d8CBhif0YaZ11Dgw46p8qISjPc+Mt7/AMDQ3KF7V0Ew+jJcEy+bZjlVW/eCDq0H1Lb dIeJWZ4MWp7u/xI1Nqq8BcxaAjtR5ZqyZGFex8z06wetqFbPcNgdbJE+Oz0BvoMYlbWt QATL3n4YShj7X6UPiwTqcDKUJa6NQQAVKEOkLu+ijukikM4Nyk+o49fdtVlV3C8qsDSc FmXFiFkZWCKBFFHsqyR9JuFatVOD2eh0Dz80mtkX5hmoYmDZt+9AbgELoBu6SGpx+Hm7 AcamHQiOEpx+ZWJiXQjapxHK4+RFcGhYm64LZquTNz68FRRQ4xV9vfU3Ms7eh8w00DFf evnA== 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=OOnCvrmBVmZJvIgFsTp0MHGvpgi/wTmOhJpH9VAETjw=; b=zCSy3GxXPnO18h++XwSgyb9S2CX4OAEzXMIcCAvvEeQrSbwzSNZKBkd2FkKfBsrNZm aOs1s5wikkTesGA+3jWjUZ+VsdwAiEBesai7ymholhD5jHHOmYpO7sZlJRN7kx87PRre sQEStTUHlk4g5tg2O/mKhiIBPGcKEmNwEfXC5OegjS+T0VcycsY/PnDeJFpu5pDXhbZ2 sjA7YZwKi4vxEpOiVFT1o2CXomyxcw5hn7P9FvntbKdPqjlvhc9Llt9zL1jcqGalFr2T eJnkFtrSgpQghSv2swxCvHAM8eolGH53/L+YEpy7P4IpKXKEWRqSwC/K/1QhOfrdwzIz bGzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lm4gDSJq; 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 b6si2382838ejb.158.2021.05.20.00.00.10; Thu, 20 May 2021 00:00:35 -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=Lm4gDSJq; 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 S230444AbhETG74 (ORCPT + 99 others); Thu, 20 May 2021 02:59:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230350AbhETG7y (ORCPT ); Thu, 20 May 2021 02:59:54 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3CD4C061574; Wed, 19 May 2021 23:58:32 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id b13so20013281ybk.4; Wed, 19 May 2021 23:58:32 -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=OOnCvrmBVmZJvIgFsTp0MHGvpgi/wTmOhJpH9VAETjw=; b=Lm4gDSJqG2vlLHYaqIzBqUjvv3o692GWvO3G47R0akkLAgEXRBwntlShNPZmt74ghm nws0+SLM+qiy4bca7mi2DahPnFGPuN9bXp1mjqJ7jTj0+9UJr9it1fikC0MT1RwXQyhf AvWFeQcfKcCTO26z3HIJWcScl5mkyPehCDMCQn3pn0z51W8UVPJgLoe7vu8zZXaQmO+W I6gCZEvmUBu7FwaAtgBiraaYHRTz/g6SjOAvTepYvn0pTMJXxgw+M+IIBN7g0EOH7ior +kx+EwuOgYjt2NRVY4oLlPESzbteXcaR+EA/VKD9F2X5dUf0Sx/FkDkZZ8uX5R34dsak /wxQ== 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=OOnCvrmBVmZJvIgFsTp0MHGvpgi/wTmOhJpH9VAETjw=; b=lD4xAaZnFEX/IOWz+mXAzCCUmr/fmxxXrX4DR5GXG4b35TqGTZSyRIj4FrSWZVfG2n KelCs0e0Oj4ffHenZlPJNZBKIE/qu4iSEpXHPRojJMcaq6CqiPaARl6WDsWCKEYaY8f1 80fKOjTN55CBb1JNl/d0iB0v52nbErpqUeJBz1Z5IMekIjqzPckH/kuqvqdTkSMxqIkn XwAkFWxTdqYfqdNGZT9YUDFAw1pgv5YB52CTgXfQi21d0gfvObOGiOrbKlRuCU1JDike aaGidBhz2DnoKftXVcsHFSVPGjah1ZbI7poiwEgpOQLT7EmevdpsSMBuytRHpheJrpFo V1ow== X-Gm-Message-State: AOAM531mcTlR6lBbnJe8MUAxb+nw/7R/dTJ73NlB9lh5tDI9QoBzgP9d zl30q4cmrDPdei5BkXHBi7rXQabOatO6BY1vadY= X-Received: by 2002:a25:5d08:: with SMTP id r8mr4651409ybb.464.1621493911937; Wed, 19 May 2021 23:58:31 -0700 (PDT) MIME-Version: 1.0 References: <20210520015704.489737-1-andrew@aj.id.au> In-Reply-To: <20210520015704.489737-1-andrew@aj.id.au> From: Lukas Bulwahn Date: Thu, 20 May 2021 08:58:21 +0200 Message-ID: Subject: Re: [PATCH] Documentation: checkpatch: Tweak BIT() macro include To: Andrew Jeffery Cc: "open list:DOCUMENTATION" , Dwaipayan Ray , Joe Perches , Jonathan Corbet , Linux Kernel Mailing List , 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:57 AM 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 Looks sound to me. I would prefer a bit of word-smithing the commit message by just removing the references: So: > 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 a implementation > detail, so for now update the checkpatch documentation to recommend use > of include/linux/bits.h. > And then drop references [1] and [2]. Andrew, what do you think? Lukas