Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp208651lqp; Mon, 10 Jun 2024 01:08:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWw5/pxwWJY8QuxENaMXOQrW2ZaaCWhGo/GjrBYGfGX5PAVNc1Lce215mq600FlkzwmAT0SxxfGC68r1Mjs35p2YG4rv5NpOZ8d/JOIow== X-Google-Smtp-Source: AGHT+IH+h17Bbpu+1CdFYFzQV2vbEcx3PErbZHMJg2NhSUpstlue32rXYCf5ii/S8Pm6ZFS2La6P X-Received: by 2002:a05:6a00:1ace:b0:6ed:d8d2:5040 with SMTP id d2e1a72fcca58-7040c739b65mr11345680b3a.21.1718006916574; Mon, 10 Jun 2024 01:08:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718006916; cv=pass; d=google.com; s=arc-20160816; b=pp+6H4KNle5zZlXfQmo/DIFrli1wrDSyeQHZ7MFcWSaqv1V1pq9vRQniVprf331Jnj 0ef46sVWzJoWBSp5I0d7H1h0q9k12srByq88pey4A4wxesFKMkh90DakoMkn9CUxgg+G 6RUY8BUGfwFmlnc4rhjkK/8owHvzaeSv7dNPPXNa8+q0Jt/87hovZe1HVUWKbTEvcO4F PpypC+Hee3RJdR34BmQTN3OR9mqAYn3Im975xMiqGGVIUEfX6DsWROGd3IVX5QVvggb6 N6D58IQMDgrtvQHpDkX4U7hqO/Bqc3oG51d5LCfS0oCCOJPw+xKKH2uSoN3gXuT3YbQo hkvA== 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=/L5y1Dv6ivY3eszYnYmdXRYc401x9YYY2yBAmmyUG/k=; fh=hNoyRx8u3i82IDzXtkC3D7s76DJS1tTM76gytS5Io54=; b=09oAXo0lb2WeOag2xdH3vqj8xJaE+dxSn+Z7du0altlaaPaoE6Iq/Qa5sqVaewsDZB TGoySkUSnKPzODivL7vPGbBUGwwI8JayADqb0WDQq3Lm646j7SL1jDSNto7Lr7tYEuh4 y2lN/8z41f+CIs07zS0eVd4tb78qT/52d+Sgfsk0R0r7ucJw6rVfUkVBl21lGTkxlecx x3hbgFrZCbqA3HcLX8jLBFMAUQJrpL+uG6bOrIVSK7/aDYqbunhuMOJabM3Ev6j1DEeT yyFV8Kd+D1sK3R2mU+Wb7DMioIjBFyZHGcF1/K3FJ0jrsTtF0UThgSl2ngJDLeSEg+XV 5yvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tItSprwb; 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-wireless+bounces-8742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8742-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 d2e1a72fcca58-703fd55c9e8si3535628b3a.298.2024.06.10.01.08.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 01:08:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8742-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=tItSprwb; 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-wireless+bounces-8742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8742-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 45E55B218A4 for ; Mon, 10 Jun 2024 08:08:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7659A6F2FC; Mon, 10 Jun 2024 08:08:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tItSprwb" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 6CA5B69DF7 for ; Mon, 10 Jun 2024 08:08:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718006898; cv=none; b=E/mBaztFaO8oPjXdvOl0SvF6ndfZipSCud8GGUNjboZrC1/kZmctuJoHvJz6zqq58/cwO+kF0JWGNnxepBKlaGja4zA88ef5K35kaKAA5Qf71HpwT6+NcHKWIEqr5xyF1egw5zKXPs6KGn0PW9buaSWssk0Sf47nlpHlRKGQ5LQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718006898; c=relaxed/simple; bh=/L5y1Dv6ivY3eszYnYmdXRYc401x9YYY2yBAmmyUG/k=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LyTuFz3CBiGsrT5NwYdALRUXHBFE96lWetesquNsV+JGZQVPKQykjab45FFPrW8S6EJZoV2DDiaGyeaA8f3LZGoxjeUDKXxWaRBiKDfs519PouZl2ddTNO/5NLKTdgORe4V476Mvsutf5WG9MJVD2iDEx9D7+WmOX8rviJC3yAY= 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=tItSprwb; arc=none smtp.client-ip=209.85.167.44 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-f44.google.com with SMTP id 2adb3069b0e04-52c8342af5eso1190591e87.3 for ; Mon, 10 Jun 2024 01:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718006893; x=1718611693; 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=/L5y1Dv6ivY3eszYnYmdXRYc401x9YYY2yBAmmyUG/k=; b=tItSprwba3K4QyMLecq53N5fdeYk0yqdU6iiRAwdK2qV2NXSDXX/Kxh1EMKpIw12u8 lrb+KG7NKZPbrzHEUwJAfb3wOFidWhEPBS/OArUeODLYrgXaMHc9O/Q9Gt5nJ+j5H/fH meO07QkDV5R8IJfB0zAQ1VcpifJbJ/0xSMW5UccYF2QWajtKK6p3/7I6SxT0+nZMHqv2 88SGyooYkLjsUrf5LHxmPCTs0lzRZA2c6/TqQ4TZi68CZxMQ1m6VhPjc9Tsojgia7amY X17snbL0LKgx/pvlsV+2x5HXbcKtKVengcwIrG7akGM/nydwyZyv126Lh8HkDBVCU/7F a19g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718006893; x=1718611693; 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=/L5y1Dv6ivY3eszYnYmdXRYc401x9YYY2yBAmmyUG/k=; b=sQBM72/YknTdpG6rBaez34645taOf8bioBtv4f4i33aIgyz5vKW3XMe42XoCf1NwL1 +mDKB7Mb6d9y0lU4uuvUzWNDZH/5B3T0WQv43Sbz5mUmty9Sy9gevrsxMEgZ4a4dTA99 7eL3aig3dDai0I+AuCRYYxdRJnndzN/0rzOBO8MxQwQ5bjKP3zupCBqSF94170UKs1EN 77B9wsTR6p2D4FXoV/wgp/rkI4C2qSEpqZ36KDF+/jHMy/+empaHpFXgmhE6G7qDSKCy SNN+IspcPCbJXGXtycTjWSbKJzJYyX61qaOai0FIBh6W6aqFm+JZd6lOqEWcbJHBGhKp d6yQ== X-Forwarded-Encrypted: i=1; AJvYcCVHaCrxN1PoSrR6xK9JzvF8lKrUIdFCgs78rRkSCeRd9pYXUmQ1uzLco4uS75wZh0c51vtSDOEjAHxP4pfECSnf3Ik3v1oAsTXm8bZAr9M= X-Gm-Message-State: AOJu0YxhTybjZvTHDQMilNqJhJg9Cr72D6LRV23KHxFIEe403uLHvv5L Mtspp71RyZw5+8cZCnIXrRZX10TwDV+2rOwcW6lJZlUs+YLzggOZdvhymuiXHlJY7EisYWMCguk Sj7iU4YlUtSNddeO5Z3ilLSo4ok3yMjAJhw4spA== X-Received: by 2002:a05:6512:234d:b0:52b:be9b:cafe with SMTP id 2adb3069b0e04-52bbe9bcbadmr5940256e87.21.1718006892189; Mon, 10 Jun 2024 01:08:12 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240603211538.289765-1-andriy.shevchenko@linux.intel.com> <87tti9cfry.fsf@intel.com> In-Reply-To: <87tti9cfry.fsf@intel.com> From: Linus Walleij Date: Mon, 10 Jun 2024 10:08:00 +0200 Message-ID: Subject: Re: [PATCH v1 1/1] treewide: Align match_string() with sysfs_match_string() To: Jani Nikula Cc: Andy Shevchenko , "Rafael J. Wysocki" , Greg Kroah-Hartman , Corey Minyard , Allen Pais , Sebastian Reichel , Perry Yuan , Giovanni Cabiddu , Herbert Xu , Nuno Sa , Guenter Roeck , Randy Dunlap , Andi Shyti , Heiner Kallweit , Lee Jones , Samuel Holland , Elad Nachman , Arseniy Krasnov , Johannes Berg , Gregory Greenman , Benjamin Berg , Bjorn Helgaas , Robert Richter , Vinod Koul , Chunfeng Yun , Hans de Goede , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Nikita Kravets , Jiri Slaby , Srinivas Pandruvada , Stanley Chang , Heikki Krogerus , Abdel Alkuor , Kent Overstreet , Eric Biggers , Kees Cook , Ingo Molnar , "Steven Rostedt (Google)" , Daniel Bristot de Oliveira , Andrew Morton , Hugh Dickins , Abel Wu , John Johansen , Mimi Zohar , Stefan Berger , Roberto Sassu , Eric Snowberg , Takashi Iwai , Takashi Sakamoto , Jiapeng Chong , Mark Brown , Kuninori Morimoto , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-acpi@vger.kernel.org, linux-ide@vger.kernel.org, openipmi-developer@lists.sourceforge.net, linux-clk@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, qat-linux@intel.com, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-hwmon@vger.kernel.org, linux-i2c@vger.kernel.org, linux-leds@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-omap@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-gpio@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-staging@lists.linux.dev, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-hardening@vger.kernel.org, cgroups@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N. Rao" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , David Howells , "David S. Miller" , "Rafael J. Wysocki" , Len Brown , Sergey Shtylyov , Damien Le Moal , Niklas Cassel , Daniel Scally , Sakari Ailus , Michael Turquette , Stephen Boyd , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Heiko Stuebner , Peter De Schrijver , Prashant Gaikwad , Thierry Reding , Jonathan Hunter , Huang Rui , "Gautham R. Shenoy" , Mario Limonciello , Viresh Kumar , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , Karol Herbst , Lyude Paul , Danilo Krummrich , Jean Delvare , Alexander Shishkin , Pavel Machek , Chen-Yu Tsai , Jernej Skrabec , Tony Lindgren , Adrian Hunter , Hu Ziji , Ulf Hansson , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Potnuri Bharat Teja , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Miri Korenblit , Kalle Valo , Mahesh J Salgaonkar , "Oliver O'Halloran" , Kishon Vijay Abraham I , Matthias Brugger , AngeloGioacchino Del Regno , JC Kuo , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Sebastian Reichel , Daniel Lezcano , Zhang Rui , Lukasz Luba , Thinh Nguyen , Helge Deller , Brian Foster , Zhihao Cheng , Tejun Heo , Zefan Li , Johannes Weiner , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Masami Hiramatsu , Mathieu Desnoyers , Jason Baron , Jim Cromie , Paul Moore , James Morris , "Serge E. Hallyn" , Dmitry Kasatkin , Clemens Ladisch , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 4, 2024 at 9:46=E2=80=AFAM Jani Nikula wrote: [Maybe slightly off-topic, ranty] > Why do we think it's a good idea to increase and normalize the use of > double-underscore function names across the kernel, like > __match_string() in this case? It should mean "reserved for the > implementation, not to be called directly". > > If it's to be used directly, it should be named accordingly, right? It's a huge mess. "__" prefix is just so ambiguous I think it just shouldn't be used or prolifierated, and it usually breaks Rusty Russells API rules times over. Consider __set_bit() from , used all over the place, in contrast with set_bit() for example, what does "__" represent in this context that makes __set_bit() different from set_bit()? It means "non-atomic"... How does a random contributor know this? Yeah, you guess it. By the token of "everybody knows that". (Grep, google, repeat for the number of contributors to the kernel.) I was considering to send a script to Torvalds to just change all this to set_bit_nonatomic() (etc) but was hesitating because that makes the name unambiguous but long. I think I stayed off it because changing stuff like that all over the place creates churn and churn is bad. Yours, Linus Walleij