Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp343143pxu; Fri, 4 Dec 2020 04:52:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLPzh4bVF+yWBhi9dHanRVxeXfH5vMLT3Y2mz99ePBMYsk5nejaklG+DvM3KVBiKtOmvNI X-Received: by 2002:a17:906:1458:: with SMTP id q24mr7136935ejc.541.1607086368028; Fri, 04 Dec 2020 04:52:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607086368; cv=none; d=google.com; s=arc-20160816; b=owmCx8o96uvhpKh8aeyMFDLrjJ7oBNUiXOCzfrz+ytVPt/DkKmfqUXh26d+IuK9vmp 0aoAGcGWXgziBka8+E2K0F0ykv8zSIcrUTXF59K4PdrjqUbV/tnGGUjLiYwBUWHKo2oc uSqJj/Mf2BiN//Bnw/HJxWxlkgbZvqjNIfMuzY5BGBIKvtbVFx1tETvdaOnB3DPc5u/y NmD2VQwySBuzoyY29tsx4HlD8ZYuINCJ4yNNYqiuwyLAWWgDb4ZSMYVLl5Tz74ok/Nd8 3zeZlIeF5MJ0zc4vg15r/KXZUQ91F4E5y2xcDK80I1gD0JCBViZeU/7iFFRXhHWsa/nC U5PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eKCEE6U7MUOT0p1mFbhurWX184Yw9RNZS3WBlrguSrQ=; b=rbOl9MC2gVLlPux5T8mBxCn58X3O6wa6uTQYR4xMFaTb7dILvFes72QV59Ct+gVHat G2SDzwi9T7MO2znbiBe4LVqPkyr+PQ/Ot5unE9CoqwKNQuSXSVKXpSKHVTlot0TKgK0V JHEro+8hllY7feBO6lgjpvts+BnIv0c2PogPy4K6+ZoZYJQWU2OAUET8ELcrxisKO3JH CYF2xnOhWPHMzTyqKSZuta4Sl5gVV8eCa4zY8R0qu2JsK4diV6nO/aM1/vpgpcpMn3OJ xSAC5vq/1LRxbvvST5s7lD8DOg+RrKMVKvMFd3TyDlZ9uJN2VAkRCd9TAgULWhDvgK8y It9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k0tBhHt3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga12si573870ejb.522.2020.12.04.04.52.25; Fri, 04 Dec 2020 04:52:48 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k0tBhHt3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730044AbgLDMui (ORCPT + 99 others); Fri, 4 Dec 2020 07:50:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:53642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729522AbgLDMuh (ORCPT ); Fri, 4 Dec 2020 07:50:37 -0500 X-Gm-Message-State: AOAM532OB6EaSL94UApSkyKm+DwosENhWG2RFxpwgHjZGfSwRdMqmAmH 8vSjqmxAXo1n5uocfSp+KdD6ToYdeTOhsumc52U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607086196; bh=SCXDMZeVgXBiYgVyKgyRTs9OROoKgEN6O5lqo1xultU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=k0tBhHt37W64R82XOTYLCEOW9TKm5xlToou1Xwm2cwrHRSEXoM6KvQgU/47GquCYF AopO4nM/SfkQ3z4xBboop8Zvcyb8/nHmjv/HVhYsEtKS3qQ4U6C34ONZ6mPK79kYrJ EbHZm+25pnRs3x1DPYSpUE1k7DtbgPk6LGUr2kU/7AtSQmhVjCyefxj4dkxGy8DnWc tO8ZZjDtcHsERZdJdafwk119U15xwn5v1MCfimF85mvn0YxqdRoMd/jPqC++8GjDGF 4QJzR1TyPHS5VDklkNjv82Gh4hd2Z9Uki7KDhoclhHADFyy6YQ6Ce/fOxTZqyAzvKQ j3bkXS3h0A5QQ== X-Received: by 2002:a9d:be1:: with SMTP id 88mr3555296oth.210.1607086196167; Fri, 04 Dec 2020 04:49:56 -0800 (PST) MIME-Version: 1.0 References: <20201203223836.1362313-1-arnd@kernel.org> <20201204104456.hhu76as6ruf5vmqq@uno.localdomain> In-Reply-To: <20201204104456.hhu76as6ruf5vmqq@uno.localdomain> From: Arnd Bergmann Date: Fri, 4 Dec 2020 13:49:39 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] staging: bcm2835: fix vchiq_mmal dependencies To: Jacopo Mondi Cc: driverdevel , Arnd Bergmann , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , bcm-kernel-feedback-list , Nicolas Saenz Julienne , Linux ARM , "moderated list:BROADCOM BCM2835 ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 4, 2020 at 11:44 AM Jacopo Mondi wrote: > > 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. drivers/staging/Makefile has this line: obj-$(CONFIG_BCM2835_VCHIQ) += vc04_services/ when CONFIG_BCM2835_VCHIQ=m, the kbuild infrastructure only enters the subdirectory while building modules, but a built-in mmal driver is not a loadable module, so it does not get built at that time. When compiling the built-in code, the subdirectory is not entered. > > 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 I had not seen that report but found it during my own testing, thanks for adding. Arnd