Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp23721lqh; Wed, 27 Mar 2024 13:34:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKjg4b+AzlTl1acI7OVsA9bEMJyxzCGpnNbRkxusANavgojchDKLYTNnAB7aPxnRh5/bbgvpXtjWaX2S8JkbANae9Qe1XsMlYDnGGolQ== X-Google-Smtp-Source: AGHT+IEQukEq4sLXtQKwSE35tsbMv9knS6ZRwVQNyFo61bGhqaveMFcJfGSM8gFeRo6SQI/3n6lj X-Received: by 2002:a50:99d4:0:b0:567:9306:5d0b with SMTP id n20-20020a5099d4000000b0056793065d0bmr632763edb.28.1711571641564; Wed, 27 Mar 2024 13:34:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711571641; cv=pass; d=google.com; s=arc-20160816; b=d/1Pd0BhGMkh/uXM1rx069AUTNN6LC2YV+oqDqhR5RiYWqRsA1JiQIVbuCmB48zqYk nh4Dl0zB78cDWSah9+pJyPWY7WaNQTExYfUhLl2cZ5mU2oUe/eKcvSFZuiG6AZSQ5eJd +U7st+acSI0btinduhB1hp70RqjXy2nsdxjIWZ9EX26kptY1ltnnLlfl7o5JSt5ojYWW LYQhrBNfhfuJtKmVlqjdKI0axQ9012V28G6zBOdXsa8JcJJYnfYctgD8ErypJXkhRg2g YPnP7loWQHE1Yqk3MmwVrL6UZDkFE2nloPqFISw/PHbjIrciCveQ2fjqtm1UOR+m76vP SRCw== 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=KhLnIiim7Ch5EPF2lzS6P+eHiR3nmEN+Vv9rccu2gbw=; fh=VfL6uBK30rODQowug2PXykJTyaqhZTHf+IntoZmqGd8=; b=RRJ5ibwDfs+52J7x8MR/IDl+IRvuTaPxMAHCUR/HT8nRabrzIT6jvSC1/uYg12B6Ws dsjlaCrYa2nO1b3U98cqTlTIFPMS5ZXZiA0oVeHqs5OPwvO3+PqO2CCxvlBYzSJFTgqd cCMd9uAC/RgZJqs3KgwS8ZYUi10BAsQH9KI4HwxLNlTyQUBHqpUbe6SLD0+45vMmCySH +tiEma4k8IF49AAHzJ4ycobm2qN3XY5RkgDfrW/5m8OUTxEjB6AWqTbt3qw2albF6JZX M7F8wLRkJyZcKKV/2ko6D63kQJ68RJiKPPj+iN0k9R8Nqazg+K1UpwzVyBDLZyIXVeNJ 0pSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dZ0g5Tln; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id et3-20020a056402378300b0056c465c3797si448827edb.70.2024.03.27.13.34.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 13:34:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2976-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=@kernel.org header.s=k20201202 header.b=dZ0g5Tln; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2976-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 47A171F32164 for ; Wed, 27 Mar 2024 20:34:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F51A152E1E; Wed, 27 Mar 2024 20:33:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dZ0g5Tln" X-Original-To: linux-crypto@vger.kernel.org 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 B043B14F9E1; Wed, 27 Mar 2024 20:33:54 +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=1711571634; cv=none; b=gUc4DOy6emzXt+AGJp2M8eDFr5rEtMhCmBIMLRJmDBMdhtxh3gZxjJC3IHbX8RNiYeafaHdKm9pT0qW7iEnz/t7ZyDC7j2xLCFTZBXKcasap2F/wii8vnPbHS+9ofsLFy85ceTkVFMzRjeQuNUd8mp0KrG480/q+8j2aChT+Fpc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711571634; c=relaxed/simple; bh=rRoyxu+FoVr32d7zvCeJuaO1U99AvdvpOp4sRPoaSLE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tcvHcy2og5tzxRwldjK874oG8ZlVfOQXeI3OmyuqdQ2R5zqsFkj7DnzXcEaEU6W1sRxYYLZWVLLD32FqcQ/RcuD779v6cyclLSm14eNI1wJEqen6t7EczwRCnT8M0lRmG+XZp0XdLaV1jOyEuoF+oSVrAujRc++C1+H/EvZ6kxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dZ0g5Tln; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9259EC433C7; Wed, 27 Mar 2024 20:33:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711571634; bh=rRoyxu+FoVr32d7zvCeJuaO1U99AvdvpOp4sRPoaSLE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dZ0g5TlnUCghieJAW72UqUaU2lIIa/6hghcAqkJRZAp+RAq+3k/cZrZ57l5R7MeS2 TydlAKSSQZUnX+2T5p1QS75hSb72ep8uZvS/x07UsQuKkRaXozLuiQ0reoMN09MVC8 AIK6Ya8Aa/GiLS6827G4A7k8iVR6n5FNoOkhGY6DIqxoyQnxgT9oM/f23Oobo45pBa WF66wSLY55QRYVhJdi8lQ1xKf9Ll6pqUD/1Abem9ZnyOidBaUuBaPLe5kxgZp4idaY mSVgD8WJLridM75HDggtZeiLIOBIWZlD7LDMZcPES6jUj0d8jxODqikoVKY0tFlHTX WAhfAy2yOWKcw== Date: Wed, 27 Mar 2024 21:33:50 +0100 From: Andi Shyti To: Krzysztof Kozlowski Cc: Russell King , Suzuki K Poulose , Mike Leach , James Clark , Alexander Shishkin , Maxime Coquelin , Alexandre Torgue , Linus Walleij , Olivia Mackall , Herbert Xu , Vinod Koul , Dmitry Torokhov , Miquel Raynal , Michal Simek , Eric Auger , Alex Williamson , linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-i2c@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 01/19] amba: store owner from modules with amba_driver_register() Message-ID: <6p4cdmbhrezm7fqbe3kgrkblqgrhaq4fgiw5x4n5dnptii7kjp@vmbj2pkjglp7> References: <20240326-module-owner-amba-v1-0-4517b091385b@linaro.org> <20240326-module-owner-amba-v1-1-4517b091385b@linaro.org> Precedence: bulk X-Mailing-List: linux-crypto@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: <20240326-module-owner-amba-v1-1-4517b091385b@linaro.org> Hi Krzysztof, ... > /** > - * amba_driver_register - register an AMBA device driver > + * __amba_driver_register - register an AMBA device driver > * @drv: amba device driver structure > + * @owner: owning module/driver > * > * Register an AMBA device driver with the Linux device model > * core. If devices pre-exist, the drivers probe function will > * be called. > */ > -int amba_driver_register(struct amba_driver *drv) > +int __amba_driver_register(struct amba_driver *drv, ... > +/* > + * use a macro to avoid include chaining to get THIS_MODULE > + */ Should the documentation be moved here? Well... I don't see any documentation linking this file yet, but in case it comes we want documented amba_driver_register() rather than __amba_driver_register(). Andi > +#define amba_driver_register(drv) \ > + __amba_driver_register(drv, THIS_MODULE) > +