From mboxrd@z Thu Jan 1 00:00:00 1970 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 5437F3BB35 for ; Fri, 15 Dec 2023 16:10:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kaIDu23v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6473EC433C7; Fri, 15 Dec 2023 16:10:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1702656640; bh=sPDbMX45qE3aG47Wc5EgbyBMNnm7PcXQ2gS1xKj3cyI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kaIDu23vT5XDbOfdWU8bkKYWls9TpTfpUFKVLg2zKzTOOJGdfyr8B0vjkM7s3Spq5 rI2ShCctUh7k+CPs91koVeG2riysP3SvEo4ZdR9QYofgrBCFfO+3+F48xNPHm4/cRy OaJBx4blXfQiSfUrgQMrV70xTOrBP9YQs0Rw0U7M= Date: Fri, 15 Dec 2023 17:10:38 +0100 From: Greg Kroah-Hartman To: Rob Herring Cc: Nipun Gupta , Nikhil Agarwal , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] cdx: Enable COMPILE_TEST Message-ID: <2023121509-snuggle-lagged-1365@gregkh> References: <20231207163128.2707993-1-robh@kernel.org> <2023121551-uncommon-negation-fdda@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: <2023121551-uncommon-negation-fdda@gregkh> On Fri, Dec 15, 2023 at 05:09:15PM +0100, Greg Kroah-Hartman wrote: > On Thu, Dec 07, 2023 at 10:31:26AM -0600, Rob Herring wrote: > > There is no reason CDX needs to depend on ARM64 other than limiting > > visibility. So let's also enable building with COMPILE_TEST. > > > > The CONFIG_OF dependency is redundant as ARM64 always enables it and all > > the DT functions have empty stubs. > > > > Signed-off-by: Rob Herring > > --- > > drivers/cdx/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/cdx/Kconfig b/drivers/cdx/Kconfig > > index a08958485e31..7cdb7c414453 100644 > > --- a/drivers/cdx/Kconfig > > +++ b/drivers/cdx/Kconfig > > @@ -7,7 +7,7 @@ > > > > config CDX_BUS > > bool "CDX Bus driver" > > - depends on OF && ARM64 > > + depends on ARM64 || COMPILE_TEST > > Ok, good start, now we need to turn this into a module, what's keeping > it from being able to be built as a tristate? To answer my own question, the following errors: ERROR: modpost: missing MODULE_LICENSE() in drivers/cdx/cdx.o ERROR: modpost: "iommu_device_unuse_default_domain" [drivers/cdx/cdx.ko] undefined! ERROR: modpost: "iommu_device_use_default_domain" [drivers/cdx/cdx.ko] undefined! Would be great for someone to fix this up... thanks, greg k-h