Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp266652pxu; Fri, 4 Dec 2020 02:48:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/2yYCvXKeQFJMy0G7e8nWTq+Dloh7z/TriahCJDzYpkexUIyNMfZdgJNkrHfBMMyDSA2o X-Received: by 2002:a17:906:8152:: with SMTP id z18mr6755012ejw.317.1607078938459; Fri, 04 Dec 2020 02:48:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607078938; cv=none; d=google.com; s=arc-20160816; b=VT45pRZHkMaSW9jx0ELNbD3E4O6hLZAoA/xNC/ZNTgVjxtydZKWjlh1M/hk4V6UXym dCK7BgVAGXL1uX4dcEftQR6wPUtVL+N3F8rCs4PRfX6mYmjuXPSDSyWS56KJTXYwaPdT 0gyVmJFN5NyUy1VpPTFVkAYhUzzQ/D8IuYTCWuar3s8fimmlybmdx0eHo04LyHiIRbQD vup40nuHwrZXAPbNeDcetxccsH0nJhtikQQXUF0nS4nn8pKnWnkFJb8vYFZS5VPnPrDQ cfKj8HE0VMy7Ap0Bqa7nEZCKQhluhKD89I8ID7M5TM3k5HgjVSew9Tx3tTnx0cG9wuXn 6xfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=wgguEBqafImf9o6Y2aHIaH0gNZEN6JIDNqaSQkmoP0c=; b=a0x094VfVKa4qZBSKmcXQZ08blMQGWpPKidGMpUkc56zWOJi7ZTxtueBd46JbAKojq +F2j8sGGIS5hbky1COJcTp9nNY4QvhXVCaSFdVg+IzhautigrAYwdU75fS7iWTvQcA57 6/YynuOzWCVEnb9gkpT99OC6CTTp1YI0rmh7fX9JnJsHHm4z8kUelAfP3CUOiuT/UJFs RPqgw6qlRP6NVfOcAGCHic5SEVmRpnDeTkswH4t7+99ZSPFTzj3YB7IMGOH/TXWg7KMC PJrirzJlmoqgriUNEkxmgQkR5PFLUOZxfsWCi51uMsg34G8VQq/Gag49Tu7dXTew6zR4 E8fA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dq8si1073409ejc.750.2020.12.04.02.48.35; Fri, 04 Dec 2020 02:48:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387758AbgLDKpf (ORCPT + 99 others); Fri, 4 Dec 2020 05:45:35 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:35499 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727977AbgLDKpf (ORCPT ); Fri, 4 Dec 2020 05:45:35 -0500 X-Originating-IP: 93.34.118.233 Received: from uno.localdomain (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 4544E601C1; Fri, 4 Dec 2020 10:44:49 +0000 (UTC) Date: Fri, 4 Dec 2020 11:44:56 +0100 From: Jacopo Mondi To: Arnd Bergmann Cc: Nicolas Saenz Julienne , Greg Kroah-Hartman , Arnd Bergmann , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: bcm2835: fix vchiq_mmal dependencies Message-ID: <20201204104456.hhu76as6ruf5vmqq@uno.localdomain> References: <20201203223836.1362313-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201203223836.1362313-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Thu, Dec 03, 2020 at 11:38:30PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When the MMAL code is built-in but the vchiq core config is > set to =m, the mmal code never gets built, which in turn can > lead to link errors: My bad, I repetedly ignored the error report received from the 'kernel test robot' about this. Thanks for fixing. For my eduction, why would the vchiq-mmal code not get build if vchiq-core is set to M ? I mean, that configuration is indeed wrong, as vchiq-mmal uses symbols from vchiq-core and I would expect that to fail when building the kernel image, not have the other modules (as bcm2835-camera) fail as a consequence when building modules. > > ERROR: modpost: "vchiq_mmal_port_set_format" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_port_disable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_port_parameter_set" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_component_finalise" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_port_connect_tunnel" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_component_enable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_finalise" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_component_init" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_component_disable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "mmal_vchi_buffer_init" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_port_enable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_version" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_submit_buffer" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_init" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "mmal_vchi_buffer_cleanup" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > ERROR: modpost: "vchiq_mmal_port_parameter_get" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined! > > Change the Kconfig to depend on BCM2835_VCHIQ like the other drivers, > and remove the now redundant dependencies. > > Fixes: b18ee53ad297 ("staging: bcm2835: Break MMAL support out from camera") > Signed-off-by: Arnd Bergmann Acked-by: Jacopo Mondi If you noticed this from the same error notification I recevied it might be fair to report: Reported-by: kernel test robot Thanks j > --- > drivers/staging/vc04_services/vchiq-mmal/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/vc04_services/vchiq-mmal/Kconfig b/drivers/staging/vc04_services/vchiq-mmal/Kconfig > index 500c0d12e4ff..c99525a0bb45 100644 > --- a/drivers/staging/vc04_services/vchiq-mmal/Kconfig > +++ b/drivers/staging/vc04_services/vchiq-mmal/Kconfig > @@ -1,6 +1,6 @@ > config BCM2835_VCHIQ_MMAL > tristate "BCM2835 MMAL VCHIQ service" > - depends on (ARCH_BCM2835 || COMPILE_TEST) > + depends on BCM2835_VCHIQ > help > Enables the MMAL API over VCHIQ interface as used for the > majority of the multimedia services on VideoCore. > -- > 2.27.0 >