Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7929rdb; Thu, 21 Dec 2023 00:47:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEh9aHq5xvqoJ85AnC/LaTMlegIrbkH/jK+X/cTd9exkHhy6Sn8kQX6I0J/5NEXxB9IsJuI X-Received: by 2002:a17:902:850b:b0:1d3:485a:833d with SMTP id bj11-20020a170902850b00b001d3485a833dmr469690plb.39.1703148419783; Thu, 21 Dec 2023 00:46:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703148419; cv=none; d=google.com; s=arc-20160816; b=o6z2l4At9aqsVyI9Rme/oU5jSNnd/+fAY9Q9w4whW2Pq3pmdw46pbQn3VVAQqaZ4lb EqnMF7eYa240bPU39QIB6cy+3XaHtDSSDjARec4hVBJg2Ji3tuEGgRwWj8pbJAIoq76a 4Vyou6Jl67tPkkDP3Jfop2rCBCEpAox5Tw/VVa0QbW9NCq5u8iYrw6TPXla0c/R4DK1k ScQqfphLqQ4mq//lGEecU6Bn71cx3OmqAtt3CIHUyV0jEi2uvyu/NNzrNn4NKRRwDq04 Ru945DNDTRYW9ynV3YP1o/nAi75bdySwpMTYPxcUdceX4fMP6OlGnMI9tDHuIzTDORJL g+4Q== 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=47hNkQpNrPyyUKZTxHDvCSKWomYYBgkNrJRvMaV5jec=; fh=F+ecm0ORnMltoeNo2I8VylLM0k7Rsz8rNULrZi7evaU=; b=zmO8LCzyWJwXuaXMNeEhcDJ2AwH8V3pD/z+d8fKVlTmvxWDESPRjfD12CkQWXuiKFV nCqZOrBKof49lxKFWz1LJOAFFu9q5hrIB7o8vbXtDfn2RNZ+Z8qJ8PUZoFsOLMGf+eFT sRCrWlioQarl39aO3AusEYvC/w2eBkEC8U7Z0PW7ma20eLl6bFlKcOnr1x53cdr+QTDy RLiFonuVils2oSnu7HVS1+j9yQc31IGd5vq0SRlKroE47eInhIKRvPzpplvRG2URjuCl 9OKw2JIa4we/pUfoeFptTVl/xwp1Xjf3oNMv/ykeKC18/MWHUls4H2w7sHN+A+dzRPkP BN5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=quDhBRDL; spf=pass (google.com: domain of linux-kernel+bounces-8011-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k6-20020a170902c40600b001cc33933e45si1158134plk.42.2023.12.21.00.46.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 00:46:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8011-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=quDhBRDL; spf=pass (google.com: domain of linux-kernel+bounces-8011-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8011-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 709E3286850 for ; Thu, 21 Dec 2023 08:46:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A528D1775B; Thu, 21 Dec 2023 08:46:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="quDhBRDL" 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 CE8B31773B for ; Thu, 21 Dec 2023 08:46:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF5B3C433C8; Thu, 21 Dec 2023 08:46:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1703148414; bh=y1FNTAj8Bh/ZM8ACZhw9sMqYhwCvI+GD9lAYIihPqSs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=quDhBRDLlEnQK02arNaJ4xhU8o1T3meTTZ4uW3AJtFCqPgmEDRgPekTxR0IKGOpm/ 35UfE+LIM9Zaq4CELnRLqMTxW+p9kFhAH6jxopyzZR2rd9DIthUo7gAsKrQhx+6a4v EaEL/qUGCDQ31G8CrDn/xiGNcoNKkZxH0AU9jVAA= Date: Thu, 21 Dec 2023 09:46:51 +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-blandness-cortex-76c7@gregkh> References: <20231207163128.2707993-1-robh@kernel.org> <2023121551-uncommon-negation-fdda@gregkh> <2023121509-snuggle-lagged-1365@gregkh> <2023122142-huff-closure-d5d4@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 08:40:05AM +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? > > There are ~5 symbols from cdx msi patch That hasn't been merged yet :)