Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2132627pxb; Fri, 25 Mar 2022 11:39:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6aXiljLdPV5LzLnDyGCpIMNMVWQEoHbZrKEh5HVDTcbTk+zGfmYnmFDgRWPEnOiZr2j1R X-Received: by 2002:a17:902:b202:b0:151:4f64:e516 with SMTP id t2-20020a170902b20200b001514f64e516mr13192838plr.16.1648233580270; Fri, 25 Mar 2022 11:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648233580; cv=none; d=google.com; s=arc-20160816; b=UmYDvuVRq383dM6rXIBuTGIEG3koAIlW5NdqqvVXvhr/s4ptXN87mUYvyNBhL1zIwq 8edmzQyPeo+num0QNw55xPHJRklLx0tQoVPt5PmjW4bBPSKZCQLSNvHhBjDqfGhxLrkm /o07hkQiJEzgwhhb9jb28/Dk3daXd3HV7EEf8nI7TL4i/zfNfVixzzBnTxsT7YBolPf4 wVo39ZotHBZYhSzNKnzyp86PcykwRpa+rqUVWMzkT1cRRut8fpF2WdvcsdBAXeiOrkz2 HmALYrvtAhAwtp9+UCuoM2ECFC1jx78uA2OwOnIM7YCSPx8M3eHFsYvRAavp2ZuK2uS+ Z/BA== 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:dkim-signature :dkim-signature; bh=Idy/YwK8Gz35JVHlk1OJlpdd3YjWzocHKKLo63P4k+M=; b=ZrKMHwzjxWFuF6/Xx+uhjXW0HYhSMLdrJJ5cfN8ZMtMVyb/FqE1Hkpooe5lySCWLuP olzdFXC0JA8djJOOvZHMt6SpW0xWp1xfjpubO/Yfx8YQQbDj8HCli5UaG91g7vrbJE/T MnmhM26+7S0IWSRShurseNBHJeUO7fArPJqkiMVlzwZctzNQM/px3H7e2YIWLqSWEfVm YlOAFOph5zPyMAD6BRWm6yBoILNl4E6jKHSlSCWKfLMNcWkVGvaGJpvPuf92JJvh94oy EGXkJ+n1XdLUvIOyWk6QqA/BLyMxOWPC9+Ge8ffDhORtpWEaAIiMMb0ktY5Yif9K1yBY yE3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b="S+A/SPYo"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="b/2mz8x9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z3-20020a170903018300b00153e6d033b5si3232788plg.31.2022.03.25.11.39.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:39:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b="S+A/SPYo"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="b/2mz8x9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2073B198941; Fri, 25 Mar 2022 10:57:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359223AbiCYNH0 (ORCPT + 99 others); Fri, 25 Mar 2022 09:07:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356447AbiCYNHW (ORCPT ); Fri, 25 Mar 2022 09:07:22 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1997B9A9B7 for ; Fri, 25 Mar 2022 06:05:47 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A222A5C0200; Fri, 25 Mar 2022 09:05:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 25 Mar 2022 09:05:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=Idy/YwK8Gz35JVHlk1OJlpdd3YjWzocHKKLo63 P4k+M=; b=S+A/SPYoZoZmYkUUHacMFVfp8njh6gNXVmftAtC+yPunyT9oMr74dg TNtdS9U0Jc2X+vrbgHUF+oHln6CGMBn1vZfihOv4cfWFn+ujT8sG/ds48FS3lz0Z 1JTxcrUYbZXABMYRK9B5VTpPkTvwyB5edyzA7TGW6AcLxaMEbKDULoeeKYQtN0cs 2431QaNMzHx9Ap2uw3rA/zfrNSUzKVLNZlr+EKPcG7Wm6Yp8EvfSsWjALSq5Ofb/ mJu6E828lrylR3jdbnzxdZNsk8majbeYdwB27temvRpuflH5eXY/0XYcFqQkX3eJ fEM4NqEjqpVRf+7Z1gN21TlXtIGTfatg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Idy/YwK8Gz35JVHlk 1OJlpdd3YjWzocHKKLo63P4k+M=; b=b/2mz8x9Q9REMUu01t2QR67KoMZ0MBhVP rW0QGd+0+GmeAzxTM3mJcgI26HHrms2K/X8i/dkoIrGo9EAh87PvzkCdlzU2qFtv Y5YbLJA3KNUWVs7FgbUtSL/sZE5t/nZg2WRNG1E2BDTyTZz66AoG6+4kX/7Ve/N+ cRFPlgae1THL7CdcRJZ/g2Ope5lRRtePDXDdpBOlaEt6HbVAne7iylTpubgsB9hh F5NWH2Jmy4g2M50WjnORppkSo0L6KYyHwUEBQvVnCg5KzXyo+wnD3AfB8l/FEG/T s3R2jns2X1LgZOVy+5eUoUuEDX2n7TsomSjOyCN8FgNDVIBhte6VQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudehuddggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Mar 2022 09:05:42 -0400 (EDT) Date: Fri, 25 Mar 2022 14:05:41 +0100 From: Maxime Ripard To: Zheng Bin Cc: emma@anholt.net, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, tangyizhou@huawei.com Subject: Re: [PATCH v2 -next] drm/vc4: Fix build error when CONFIG_DRM_VC4=y && CONFIG_RASPBERRYPI_FIRMWARE=m Message-ID: <20220325130541.tjxq4kjgmkaz32en@houat> References: <20220325021831.2812735-1-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cktuawm74fajoliw" Content-Disposition: inline In-Reply-To: <20220325021831.2812735-1-zhengbin13@huawei.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cktuawm74fajoliw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Mar 25, 2022 at 10:18:31AM +0800, Zheng Bin wrote: > If CONFIG_DRM_VC4=3Dy, CONFIG_RASPBERRYPI_FIRMWARE=3Dm, CONFIG_COMPILE_TE= ST=3Dn, > bulding fails: >=20 > drivers/gpu/drm/vc4/vc4_drv.o: In function `vc4_drm_bind': > vc4_drv.c:(.text+0x320): undefined reference to `rpi_firmware_get' > vc4_drv.c:(.text+0x320): relocation truncated to fit: R_AARCH64_CALL26 ag= ainst undefined symbol `rpi_firmware_get' > vc4_drv.c:(.text+0x34c): undefined reference to `rpi_firmware_property' > vc4_drv.c:(.text+0x34c): relocation truncated to fit: R_AARCH64_CALL26 ag= ainst undefined symbol `rpi_firmware_property' > vc4_drv.c:(.text+0x354): undefined reference to `rpi_firmware_put' > vc4_drv.c:(.text+0x354): relocation truncated to fit: R_AARCH64_CALL26 ag= ainst undefined symbol `rpi_firmware_put' >=20 > Make DRM_VC4 depends on RASPBERRYPI_FIRMWARE || COMPILE_TEST to fix this. >=20 > Fixes: c406ad5e4a85 ("drm/vc4: Notify the firmware when DRM is in charge") > Reported-by: Hulk Robot > Signed-off-by: Zheng Bin > --- > v2: follow Maxime's advise, add RASPBERRYPI_FIRMWARE as an additional dep= ends > drivers/gpu/drm/vc4/Kconfig | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/gpu/drm/vc4/Kconfig b/drivers/gpu/drm/vc4/Kconfig > index de3424fed2fc..92d74ba7c449 100644 > --- a/drivers/gpu/drm/vc4/Kconfig > +++ b/drivers/gpu/drm/vc4/Kconfig > @@ -2,6 +2,7 @@ > config DRM_VC4 > tristate "Broadcom VC4 Graphics" > depends on ARCH_BCM || ARCH_BCM2835 || COMPILE_TEST > + depends on RASPBERRYPI_FIRMWARE || COMPILE_TEST Why do we need the || COMPILE_TEST here? The rpi_firmware_get, _property and _put functions aren't define if RASPBERRYPI_FIRMWARE, so we need that dependency every time, even if COMPILE_TEST is set? Maxime --cktuawm74fajoliw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYj2+JQAKCRDj7w1vZxhR xY08AQDp0dejhhEhJ7JaH2YJjl3qWSNDo+WzUe0l0nhL7tLGwAEAj+WhPDpz4fdF WnLgjbtukPwaV0djbTrWfhCssxAFpAE= =EW3z -----END PGP SIGNATURE----- --cktuawm74fajoliw--