Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp919401rbd; Fri, 23 Feb 2024 07:33:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWH6/826JzRkkmGmA0H6hukds4jQEIXsmw33AXzQ/MjHynSDzVUzRncbMvcZj/EVD6+QmuXV84QjAr9xLEcokEdlgwaTtj5dhwWTZIBdg== X-Google-Smtp-Source: AGHT+IHH9/somzZzTRP5s9rZdzSO19S2YoPgwO6gkAV1Tw/3OhQ+h0WdxOb7kvnu+5NJL0EF1K/3 X-Received: by 2002:a17:906:4493:b0:a3f:9c9e:d8d4 with SMTP id y19-20020a170906449300b00a3f9c9ed8d4mr79858ejo.65.1708702430502; Fri, 23 Feb 2024 07:33:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708702430; cv=pass; d=google.com; s=arc-20160816; b=rvN4lbnGQituMCh09dkLKYxTCUwzr3oyFHy7XQv8ewqIjsk/hHAWBbOcPCbwSaCHYN 5wUVgmDW3VU8Ls3wQw4mZSPcCyNNCbzeOLhJOxYR1tvaP/Rchc9f+DyEM7NnRgbaQtGJ NznTMOQJxcopVsvUZQBNEb+M7kkknL/MPhzG81qUWKOAw7w7BGZA6U3Wmu7OtT1xCljz gErbwvIaAVCMbIlXRRAz6YeJvLRD8rRXi6JRAMqJnJejt233tsbgEUdgaNNj6a/3foI5 mDEbXpgAemU4cH+psgoXSgSQv9u0E9oOGYBNgcp011r4uub5JQsHxN24Fw+EJBnHmciY 9AjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vXts3U9lEgGt7sSig4Ea2P4iNSf9zaKgftAJ6WLL9YQ=; fh=8P0qQ/0m5bE3KLKvgIHI9EmMdPU3P7EcrDOALjxFNxw=; b=jjACvau9g/XscjpO8badEaxl8B6NzcY7B/rBElcbyw7Zhwyasf4YJKJkNVy5eH0Pif sa1f4P6vs+QYOW32zxK4rmS6KZ8PWq5KwkbcX6hGQT8hFJcLXp2N1nqeBH3PfmsbeqU/ NxnxYW3YogUk55qWyHU3YvVSGtAzRkt0g5CHgDqBRnvXZgd6J42FMMrCV0Rr0fhnvJpu /IgsGnIyiKcV1MU2o9mSHO/SLjqo2vNTFKtPIy0V3JIeA0xFmPLMYDSUWgQg6Ax/rrZV kUUHsPQsFjMVbhL6Jc7igRou1bN+ZhLeqcGjPukpPSvKfvBd17UWG3xGh1VMA7NcU2QC MZyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WklkA4+A; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-78614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78614-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m25-20020a1709066d1900b00a3e8aebc196si4702454ejr.879.2024.02.23.07.33.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 07:33:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WklkA4+A; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-78614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78614-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 06DE91F24186 for ; Fri, 23 Feb 2024 15:33:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7C22823DF; Fri, 23 Feb 2024 15:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WklkA4+A" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF2EE10A3E for ; Fri, 23 Feb 2024 15:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708702424; cv=none; b=NwbMlPYUn1XNASNJf47B6kPWXlg0mrRZaqU011BYGzB4XBTNmNJYbzirTPVr0YjA0gQlp/Y/xKeiK5CAwMQd2BJgsptd2FcD8gtYhdYvHpFNsSJzGTDIdD5YbXvAS1NnS7vVuDecPO0gJd3kIcaZfmGAZ/FDzETJHqPwInD6rNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708702424; c=relaxed/simple; bh=KOyYNN4sawLmarmFXwEDwpnsf8VJet7cZEbLu6KFV6E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xe3eesYQ7sqXQkoj5Ij54/vDUhC3I04RS8hBRjulSmgG8oodCSxCsxBZQ69eSfRdhminaghBcUePW4lqN7V+u9aepWl3Iv6rJ2P0qYMlvIYryg0jxgUE6OZEFDc1fOfdets40hdGzu2bMVmhF6kkYV6lNnJ8l07wgrkf8TDgcLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WklkA4+A; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0070C433C7; Fri, 23 Feb 2024 15:33:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708702423; bh=KOyYNN4sawLmarmFXwEDwpnsf8VJet7cZEbLu6KFV6E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WklkA4+AxcwO46gmT3z1yG2l227y/JSWaLobbiHU7VJEPhujD0rz88AOb7ApI4OKa 6UJgzPc/UGSppjm7cMj1+gjzOclv4TQ9TTVThFjsoQLroDG/pCvtloym/U7RluTaLM GoWuxI9+2j79t3ttyL7uK1apZC9YL+1JO4bmNcBo= Date: Fri, 23 Feb 2024 16:33:40 +0100 From: Greg KH To: Luis Chamberlain Cc: Mukesh Ojha , russ.weight@linux.dev, rafael@kernel.org, linux-kernel@vger.kernel.org, cocci@systeme.lip6.fr Subject: Re: [PATCH vRFC 3/8] treewide: rename firmware_request_platform() Message-ID: <2024022323-accustom-eradicate-8af4@gregkh> References: <20240222180033.23775-1-quic_mojha@quicinc.com> <20240222180033.23775-4-quic_mojha@quicinc.com> <2024022347-ribcage-clench-37c4@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Feb 23, 2024 at 07:15:45AM -0800, Luis Chamberlain wrote: > On Fri, Feb 23, 2024 at 07:21:31AM +0100, Greg KH wrote: > > On Thu, Feb 22, 2024 at 11:30:28PM +0530, Mukesh Ojha wrote: > > > Rename firmware_request_platform() to request_firmware_platform() > > > to be more concrete and align with the name of other request > > > firmware family functions. > > > > Sorry, but no, it should be "noun_verb" for public functions. > > News to me, do we have this documented somewhere? Not really, but searching makes it nicer. And yes, I violated this in the past in places, and have regretted it... > > Yes, we mess this up a lot, but keeping the namespace this way works out > > better for global symbols, so "firmware_*" is best please. > > We should certainly stick to *one* pattern, for the better, and it > occurs to me we could further review this with a coccinelle python > script for public functions, checking the first two elements of a public > function for noun and verb. Changing the existing function names for no real reason isn't probably a good idea, nor worth it. The firmware_* function prefix is good, let's keep it please. If you really wanted to be picky, we should make them part of a module namespace too :) thanks, greg k-h