Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp60347rbb; Fri, 23 Feb 2024 11:43:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW3W29rC+2niYJqwR/NTwUHcGE4aEELGYCuEMVE8t/eOEv1oGH3ORqbbJOFk+At756mSmxs2LM2OS5Pedb/ESK6dVxQanipC41vjKt66w== X-Google-Smtp-Source: AGHT+IFxfAwkDPF+orwOYx8PiWu8Cy4qv/QWWN7QzLDzi6bRrdOsomAR0AQ/T/LqNnFmJFp5eaZ0 X-Received: by 2002:a05:6358:530a:b0:17b:57a6:888e with SMTP id n10-20020a056358530a00b0017b57a6888emr1048682rwf.2.1708717386201; Fri, 23 Feb 2024 11:43:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708717386; cv=pass; d=google.com; s=arc-20160816; b=K9yw23JhmMk1CcDkc+jBSb61pORI9HgRPgZ9sZuPeB5PtN/bl0tiFCZP86f/VaCCUf i/vIFyoUBGb6sAXmOj7SdN1J8jVOslnC8beAhN/1NvaUG+GJgHj5CQR8UK0ubIJnV70p cWCQmJ5DzNYZnuohUNGPzoJy/OcQaxD9xQ1xlAbj8kNljHDbKgws04ZiklpYTXjGkOWw QbN6dq5rdYoT8qAtdkNbdiJhRp9umt8qvQWzDdb0vCoYPUxtjlBJZ/jkKCmJVBIx4iqf pABlIogbg6Sb6vuRalLvQOR0h2p703DPPnIrF7Pevb6wBG5ujM4N9Z453h31C4bmCWk9 S+rA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=+JlNdL9EgGVnJWuirBUTz09vxL3UyzgcwJYPKs+nBcU=; fh=6zH76305ZieXJvtQC/nXOFLqtl6+MD7xO9A1oQe0mg4=; b=mdfxtx/fk33aL3J+3R65FaRJ/3KlE6LUXjA+zClo7lSm7t2eoCfCi6+PxhZkKVYshQ ukkfTn00bRmAJGpdErUHmIo5zpfShLf1Ivge0GDh6FqJNfa4vsCERb21F+shX4hka/8j xlcFSarzVjyH3cY6QhyOeb4rM1dPqrjVYPl7E3veglKmJx2VqlWjTCHFfIfaCfv62iZb mrSLiw+/YLOXSg3midBLgoAD31wEau70PjxTayI+yHFJZK2qlrvxSoJzvN5ZME0uXsUs B8z+5b7l6EQ9qjmTvfQzT7pROFRfdSOS2k1txSDIk5HLbi62G5aFCBC3q/vrYzRhPmGU N0eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="bf/EeXLc"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-79046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 126-20020a630084000000b005dc34da7200si12415841pga.722.2024.02.23.11.43.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 11:43:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="bf/EeXLc"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-79046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 545D5B239A7 for ; Fri, 23 Feb 2024 19:43:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57CD5145FFB; Fri, 23 Feb 2024 19:42:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="bf/EeXLc" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 5BFFD1448FF for ; Fri, 23 Feb 2024 19:42:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708717359; cv=none; b=vEWr7CiDfFlDRyiqwGEZNu6vn4lJVJOjfM5Kqbl6saF7GoN2jXrfyxANpnsZtVUGWrkqU8ZnPMdDj30y/0F1TxuuIIz+NO6YdfkSr5zDSlAPTUcF+8hhcQACO/q6FnBo82GAcB58uTIe2t3lAHgh7+5NwsShL9cNEiT9HVDnwGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708717359; c=relaxed/simple; bh=8OxXWHAzXlBUP+dlP13J7itnoNWBwezp5JnB6Gnlsb4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EqcuHkevm+I7S3S92+7kiBIa8iweQJFqB+nH275EKo6jznWDU2CCnrkbhwyxK1T2maNtdZaCsiRPWdQ8TdxFDaqOFFU18dUGwtze1fXYDd/Jptnl8nVj9qZyRCyvgCQXjBKfc5k1mUk9GKxgXTijVshfCGzhtj1eXcU1lVBIV1s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=bf/EeXLc; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+JlNdL9EgGVnJWuirBUTz09vxL3UyzgcwJYPKs+nBcU=; b=bf/EeXLcrApq2LMdc6oFZJfUfW 57WDcwwVo5kOX0apDOtKySTGVLwSlCw8QPZpKgMggfFK6cZ0KayLDWGsAGqWAcWpboEzrLtk6BG+d Wh24fBrw0OYgiNTTfLIjk4VV/581DcAEX7ltQ/Pms5LbNRknHmuV/BMOpHZvwaQI8oDc6JfEogyjT EU9gwU14KDBQq5xQ87bVyFX+T/aPlRE39R9WDOaacey4ZkQYMPwYpQp9iu4asjhUTDGdSMWnid9GG jnxRxCskQIjH/1b8S3iZFfS6FY0XgCMyrdLqNQ/jFVy+B8Cxb2+Y7shsQN/FS9Xa744fH+5K4U5LF 5PBthYrg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdbRL-0000000B2mm-2UiI; Fri, 23 Feb 2024 19:42:35 +0000 Date: Fri, 23 Feb 2024 11:42:35 -0800 From: Luis Chamberlain To: Greg KH 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: References: <20240222180033.23775-1-quic_mojha@quicinc.com> <20240222180033.23775-4-quic_mojha@quicinc.com> <2024022347-ribcage-clench-37c4@gregkh> <2024022323-accustom-eradicate-8af4@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: <2024022323-accustom-eradicate-8af4@gregkh> Sender: Luis Chamberlain On Fri, Feb 23, 2024 at 04:33:40PM +0100, Greg KH wrote: > 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... Care to share a few examples of regret? > > > 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 :) Sticking to *any* convention is good, so longa as we decide on one, it used to be hard to have tidy rules to do this sort of stuff but with coccinelle we should be able to grow these rules and ensure we stick to it for the good for new stuff. Luis