Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp339509lqp; Tue, 11 Jun 2024 06:18:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjsWYX+uxA48pQvJq901F9qB+Qtq2U5bQjpzsMupcZQRDUnn7y0zngIxJajDYrBRtgBU5oIFwIvG6pxv5GNefEHzYktPic6DiLqV1IWQ== X-Google-Smtp-Source: AGHT+IHlp2oaXtDlgRoLIh7h61Uv1E1C2QHfkxUPGxfHrpbG9Vs7FeIf0h7iisklTU7QjxgZYB5G X-Received: by 2002:a17:902:6509:b0:1f7:969:7e87 with SMTP id d9443c01a7336-1f70969804cmr66927705ad.35.1718111924536; Tue, 11 Jun 2024 06:18:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718111924; cv=pass; d=google.com; s=arc-20160816; b=JqIAUq8X500U7B2wDsrzzW4B1t+YKdGyzh9ykO5p7hg9O5o+kAnOu0HNUS8naORTpZ NEP7wVClSuozUdow+h1H00lcVIO6LIEFjP0wBlM1keZTErKKQSUlI15NWa/+EmZ5JuP4 LhEKK0yOJmo1weZfz/IQ8p0vcYYWiy/rMNIo8Erd4pmebApynl0g6wlJhMUhoC1FiO6T 6dQtLyirMn7QxIEaro8Ah1E0MvCukP5LnTbukVoNOhHD/+K2iohs3NCaoEPC5ervkv7c EiZ5oKmTFn/hGYNeubVELfE2wtwwTO7NDcf1R2ne8aj8coMAX/s4rIfMbLHCt7qXPrM6 KbIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=pf6/gT+Ewdw8uG06lDxtm/kv6Pnh+Q7yaLg/g7n32Y8=; fh=3YgDwQ+Kqubhx7mzJTBY2YDu8ZcmtD75oocZyjOvzfQ=; b=E3KteBL4zF1L1sXVJH5S8L+Ax6dftwL5udMWsaR7jKx5ByLmZe+1NWx9FA/2lvyJYQ oCWy6FXjEi6zXrC25EwuIvWcqsOBuAuh/KOUGGf/JfK8jsO5qqgP1/EBrshaWaEViuU0 CDGi0ML1lCuqNAn+Lq4OrzkdtGb7YFV6HFJ7wR8rrJf1y0rjECznWJW//6kpuEyNRAaX WCLsez25flrdpp4bB+dD+Dx7Cc5k7wo/5/Fu3aGqsDyIeNjdCHfakDhno0LEJ4u8x2xr 84mihqQQFwdIYKoq/zlNtNDqgzy3+OXSiKSFr/yl85UBM+oww3rVuvKkSEZae+iP21bo Y7hA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jufcDoo6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-209905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f7258c25fcsi18863835ad.162.2024.06.11.06.18.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 06:18:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jufcDoo6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-209905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1DAC2B24400 for ; Tue, 11 Jun 2024 13:08:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EAC117BB24; Tue, 11 Jun 2024 13:08:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jufcDoo6" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B17AF38DD1 for ; Tue, 11 Jun 2024 13:08:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718111311; cv=none; b=bzA/FQWJ0V2UK/a7fGQm4UFMJfECTTuLDKlB4raW/V+GL0wMs0XNkATYyqCf2fCIefJHPL+IXcDDuUJdtBNTwXsbJBV0RxbChxpGQVnFGwMf+MAFJ2B7K1Wu3k/H4A3ZNLTcilaHHV9SwWbnD1QeBQX2NEJteDNgypu+iIEjJT8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718111311; c=relaxed/simple; bh=qLXHl7HneB0ZAz2f7/+nFTx5F6LdpJLFJfWWnfw3aco=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NOBKSQu6zVmfWUjM19L3B8EWSUm4CySDM+SfBTton+3GKAOBbNxHCkvMhR35bxQsQVyal77ccaQQuk4yXDFuNqW4piAO1c1LWCxwio62XWXNekgvEC1FP5kRkOpWwTamKmAMPpzMp+kd0HxVm08DzmmltDsnO/uVRbxxprwdahM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jufcDoo6; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-52b78ef397bso6063597e87.0 for ; Tue, 11 Jun 2024 06:08:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718111308; x=1718716108; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pf6/gT+Ewdw8uG06lDxtm/kv6Pnh+Q7yaLg/g7n32Y8=; b=jufcDoo6WoFT2VX5NFQliniXHwypKEiuXTIsnRVicbCNqKCVTCoSMy6TEyqfDisRof Ch4FviWx7WPSB94YSRLTsFJa/yoGvXWMZ4mJasdeXBtARmXQl4nwgHTUNUUIp926fP9l byWmqqzJHSwrAxmhteLsviGXRONCNt5KhcOOJ6+ygsdZpRpOmyKH9l8RKFNVHHgXHmWx 9uOkRj+3uB9VUj/EkXO6UObtmrstbyQNRcbYZGQmew4r0XsYSgZBDo8Xy7f1y4u1BNMi i8ENgl+N9E6S6DRSVVFdjI1MGLgxhabxSP7r1fcBpwFmuyMq0r+agQMH2ajHdBae9vi7 3oOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718111308; x=1718716108; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pf6/gT+Ewdw8uG06lDxtm/kv6Pnh+Q7yaLg/g7n32Y8=; b=VIUvU8lFhYuyUUMaHcEcHBVzKkvw5wU2705CfrzO4YocyPZ66X0A6zn9DGq7ZfX0fV AyC3cQkL2sTMctB7+WOWpUSxeo/DINZJWHMbUoiBMG6SrAMOieJ79jQlhwRmxDvz10rN Kp118G+A/We1bKNy7lKwFF6XzDntPTIyvdRrrpMcrRm0sUWCv1WozgZLIJdsbwrkeQiI n4Uv0bMiKLID0I5n6kq5n4sSfBk80LekvcYjqpJHbKQz0L+nEnTJGZ/WuFJz0We1Q7C8 d3B8PLXrLWHgtaR1280woxOmI9AN1nAMRHoWZTGamwzw44l9KVK1R5s67iUeIZhc6mqW NEaw== X-Forwarded-Encrypted: i=1; AJvYcCW/PgxcfAmzGVzslQG2eBBGJu0+BnXVI9/po0rcNk3VyUA+HLymwWXBF4ybGo9ru3wlTf9+u48kcfg3Y3mpTZxiKFx0o4/n+B9Je7t4 X-Gm-Message-State: AOJu0YyhtgEHQvFEW+RDI9dcTnS/d7rHbBtvnGyi6hbo2XyuLwAr7/1j RyM4FbMT2j6RF7JA+QZxuE8VZ0qoGdjInm6WFUlsJgQdFelNiOu8wEkRF6hftpNHN1Vp4Cr6b7z HdT8jWXsUYXwI8BAbOh+h1/a+Ftcin39hM/mbGFDw87Vu01km2s8= X-Received: by 2002:ac2:5041:0:b0:52c:94ad:9b26 with SMTP id 2adb3069b0e04-52c94ad9cd1mr564889e87.30.1718111307827; Tue, 11 Jun 2024 06:08:27 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <5a970f32-25c0-4955-b480-a4738bf86153@kili.mountain> In-Reply-To: <5a970f32-25c0-4955-b480-a4738bf86153@kili.mountain> From: Linus Walleij Date: Tue, 11 Jun 2024 15:08:15 +0200 Message-ID: Subject: Re: [PATCH] bitops: Add a comment explaining the double underscore macros To: Dan Carpenter Cc: Yury Norov , Rasmus Villemoes , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 11, 2024 at 2:38=E2=80=AFPM Dan Carpenter wrote: > Linus Walleij pointed out that a new comer might be confused about the > difference between set_bit() and __set_bit(). Add a comment explaining > the difference. > > Link: https://lore.kernel.org/all/CACRpkdZFPG_YLici-BmYfk9HZ36f4WavCN3JNo= tkk8cPgCODCg@mail.gmail.com/ > Signed-off-by: Dan Carpenter > --- > v2: re-word the comment, put it right next to the macros and add a blank > line in front of the test_bit() macros so it's not mixed in with the > non-atomic macros Thanks Dan! This makes the kernel a better place. Reviewed-by: Linus Walleij Yours, Linus Walleij