Received: by 2002:a05:7413:20a6:b0:f7:18da:975a with SMTP id oo38csp255020rdb; Thu, 21 Dec 2023 00:07:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZ4zv9NzPxBkPa6zjxF3x8MxGNXp1rRdGk8lygmfErQ+Sb+33ifc/C1sfs/tvYXQ1ssFOX X-Received: by 2002:a05:6214:268a:b0:67f:6b08:ec2e with SMTP id gm10-20020a056214268a00b0067f6b08ec2emr4425340qvb.61.1703146059735; Thu, 21 Dec 2023 00:07:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703146059; cv=none; d=google.com; s=arc-20160816; b=zdp2F0WDTIDfeMLpZmKpnQe4ndVcf+ARSkWlLT5kM3lH7O71Uvxa9u2puRGnvtz0/J snpo+dGO5I4b0417X2y0fbNp1WaPQdF3vpS8ZfNAFkmTqznlkKa9u7mCBB6daRgyf6if PcT2W46IN9ZIwZRmDa42oc3YZwefTE908FfkxxYdvGexibqlF92wyJfZ+iXtLUZd8DH6 D781CZVNzEjuDEha6z9/3gJ4jY5prDNuVKT9chi+hwpERgL35ly5aAjl1RnSvT2qw3VJ 4DCG36tVfDt1DNWf6J+LDJBLL2OmnmJWoCmOF9zEZ6Ff56iifmIAK266y/Dt+a1ATpV8 Wjyg== ARC-Message-Signature: i=1; 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=jo82yy/NI26RX2B8cm7/n/9eD8xk7uwppuQDj5rYR4E=; fh=F+ecm0ORnMltoeNo2I8VylLM0k7Rsz8rNULrZi7evaU=; b=XPkdyVHyF3kj9MO5WC04Qoc0jFe8idxgroW5WCPOZmykCTF4LDzFVu1897rwxtZaEt V+m6wC5FiGe0NHmfWoPeUhwUO4FqM1At/cuHqD80y/25r3CSnIi1LbucZAiWhqogdh+c R7CPn5fZiFt+osnj/hrL5IzSu+edxp8p/Dfa9z32mMM8uI8FEubYrYDY+OWSajYJRJvI cravkxqAdYRlxm8KhaHAAFPieLhwmlCVq3/HKoItEtYvF+1u9j+fO1Jy7Myg6m4f/6dv nLAEAuMUX0IjVvbSOwASkdj9Uy7eugnpW/NNVC1EBKMSmMjJ0A5M/Uspl+pKmpWeSZin NF1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nrsOSS6O; spf=pass (google.com: domain of linux-kernel+bounces-7976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g9-20020a0ce4c9000000b0067a29d9f1besi1615013qvm.132.2023.12.21.00.07.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 00:07:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nrsOSS6O; spf=pass (google.com: domain of linux-kernel+bounces-7976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7976-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 58F701C23495 for ; Thu, 21 Dec 2023 08:07:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 954BA15AE7; Thu, 21 Dec 2023 08:07:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nrsOSS6O" X-Original-To: linux-kernel@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 BBE9C156DA for ; Thu, 21 Dec 2023 08:07:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC591C433C8; Thu, 21 Dec 2023 08:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1703146052; bh=Mj6bwpLgKCMRAIM7uI/538+bBUU8/byG9V0NRZN50Jg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nrsOSS6OEFI2QV4od2rUU31B2tzoPP+upoNHYQOVHtBT3DsIiAM4yHVYyLSYO16vn cpaYFBrwjTnmqMfMsEtCi+z0bN0Bwk2brPErUcrvlYIDmk8Z7vL8Ep3ou/X4REGTO0 rOY9ABN6Tn4M5n56aGxJc6JcmOZRePs5eFLMSWNQ= Date: Thu, 21 Dec 2023 09:07:29 +0100 From: Greg Kroah-Hartman To: "Gangurde, Abhijit" Cc: "Gupta, Nipun" , "Agarwal, Nikhil" , "linux-kernel@vger.kernel.org" , Rob Herring Subject: Re: [PATCH 1/2] cdx: Enable COMPILE_TEST Message-ID: <2023122142-huff-closure-d5d4@gregkh> References: <20231207163128.2707993-1-robh@kernel.org> <2023121551-uncommon-negation-fdda@gregkh> <2023121509-snuggle-lagged-1365@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 Thu, Dec 21, 2023 at 06:42:29AM +0000, Gangurde, Abhijit 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... > > I did look at this code. There are 2 issues here for it to be a module. > 1. There are many symbols in iommu, msi and other module which are not exported. > Most of other busses like amba, fslmc, pci are bool only. I only see 2 symbols here, what other ones do you see? > 2. As of now, iommu has static list on bus types (static struct bus_type * const iommu_buses[]) > which is initializes the notifier at init time. So, if we change cdx bus to be a module > cdx devices would miss these mappings. That static bus list needs to be fixed up eventually anyway as we are moving all bus structures to read-only-memory. So it's on my todo list... Anyway, for now this is ok, but ideally if possible, and if you all want more build testing, it should be made a module. thanks, greg k-h