Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp609713pxh; Tue, 9 Nov 2021 16:08:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDPRA1Ay1OiDz4oOFxI8fjPzVBf36u7yrozzWAEyzEz/mCpHDamS3PVEcp1F7fp2nzB95T X-Received: by 2002:a5d:8785:: with SMTP id f5mr7765852ion.110.1636502889996; Tue, 09 Nov 2021 16:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636502889; cv=none; d=google.com; s=arc-20160816; b=ssCSljIF/blEfby/ZJHoaYELY9E8mGYXV08GGJy2RsMBLBVfbImXjRs9sP0b33pOuR I2gM611YJInb7psn9qPohDt6RYM4rBXgB4sIEM7c2gG4a4HkJVRAMwjFsI2mX6OnZorc kkqfberG4qukwaFuizu/euZbEy1FCL9iR5535YXtQU9+EW7i+fEIMwREkq1AxmT8hRwa NRWeT7rsKAU+mR7yHFqeNSlUAx1h8XLkqfRLx2K5e60h+qzKI6yz/CGXwOjGT36e3+PS fnUb0hbU/kMMmKKL5+bd2MnGib4kVBCIGv6X8mRUmbZK0KxJO77yolBjDwjuFPhFFPMj 1q0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=XDU+9igmpCB85REE+/wNVC8TdK7iPyISbmV/9GyGl/0=; b=KsV/ZbvMsHRE2FOop4AqekC5qbq/kgGtTVz7FCQA+wBRA4dMU3iXq6RNEfw/InFVtE 8vNnmHq8uIHAi2mWYTygfxL4WNygL4Zq9hH4pdKRXSxJWHOh/JW0Fb8yGM2D5TCWcbX7 h/uS3vIZCoCiuEsQZtOUE4pk2uTA4HtBwXPAU06N8K7rzuJWoup4BrBYciJHXjwpZw7v j1BkKhfIcFrefn0gx44S1tG9kHx2ymVYjWo+ky3o8kjJpya/JASEKyYxvaJK0TwQog7s LCl0n7VXHY82H/TfWbuLN2SYVEdEytRqDtOMPKZhbPCjhUpxPNs97v/ZZoPciu4s2Lzh uGRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=HQCp+aPW; 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 h5si2185669ila.103.2021.11.09.16.07.58; Tue, 09 Nov 2021 16:08:09 -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=@infradead.org header.s=merlin.20170209 header.b=HQCp+aPW; 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 S240565AbhKIQyE (ORCPT + 97 others); Tue, 9 Nov 2021 11:54:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240354AbhKIQyD (ORCPT ); Tue, 9 Nov 2021 11:54:03 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1234::107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F417CC061764; Tue, 9 Nov 2021 08:51:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=XDU+9igmpCB85REE+/wNVC8TdK7iPyISbmV/9GyGl/0=; b=HQCp+aPWqoqcd+b68MG+H8KyYw 3c6plEJNlnVS3/4Ogml0JnIM822L3MIm8b+5SyCI2RdLmNz+bnzE2A56eSTJ2cvT81hw2EpufHUht 4aCky2r7Hsi+bsxjE6O2jrYCkIGYf3M/Y2RJ6KTBo8T+xiMR/rBklYEPChe3qXJzNVjNyXiXoxSup Xghqj0z+YAVwmZgSNrw+L2lJs9cLgLWsHermT9PjfuZ6LDhQgoSQ/CMke+sRt6KLt0zTtAd75Ap7H AdL83GRjdTtE+/U/wZeLFiWewFLXZTJ2SumfIyh1wnmVkUEND/HhCuf7EUkQW5Z+FGELolpImIvYO NyL+ZWgg==; Received: from [2601:1c0:6280:3f0::aa0b] by merlin.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkUL4-008o9f-78; Tue, 09 Nov 2021 16:51:14 +0000 Subject: Re: [PATCH] [RESEND] drm/rcar: stop using 'imply' for dependencies To: Arnd Bergmann , Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210927142629.2016647-1-arnd@kernel.org> From: Randy Dunlap Message-ID: Date: Tue, 9 Nov 2021 08:51:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210927142629.2016647-1-arnd@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/27/21 7:26 AM, Arnd Bergmann wrote: > From: Arnd Bergmann > > The meaning of the 'imply' keyword has changed recently, and neither the > old meaning (select the symbol if its dependencies are met) nor the new > meaning (enable it by default, but let the user set any other setting) > is what we want here. > > Work around this by adding two more Kconfig options that lead to > the correct behavior: if DRM_RCAR_USE_CMM and DRM_RCAR_USE_LVDS > are enabled, that portion of the driver becomes usable, and no > configuration results in a link error. > > This avoids a link failure: > > arm-linux-gnueabi-ld: drivers/gpu/drm/rcar-du/rcar_du_crtc.o: in function `rcar_du_crtc_atomic_begin': > rcar_du_crtc.c:(.text+0x1444): undefined reference to `rcar_cmm_setup' > arm-linux-gnueabi-ld: drivers/gpu/drm/rcar-du/rcar_du_crtc.o: in function `rcar_du_crtc_atomic_enable': > rcar_du_crtc.c:(.text+0x14d4): undefined reference to `rcar_cmm_enable' > arm-linux-gnueabi-ld: rcar_du_crtc.c:(.text+0x1548): undefined reference to `rcar_cmm_setup' > arm-linux-gnueabi-ld: drivers/gpu/drm/rcar-du/rcar_du_crtc.o: in function `rcar_du_crtc_atomic_disable': > rcar_du_crtc.c:(.text+0x18b8): undefined reference to `rcar_cmm_disable' > arm-linux-gnueabi-ld: drivers/gpu/drm/rcar-du/rcar_du_kms.o: in function `rcar_du_modeset_init': > > Link: https://lore.kernel.org/all/20200417155553.675905-5-arnd@arndb.de/ > Signed-off-by: Arnd Bergmann > --- > This was last posted as part of a longer series to rework the > DRM dependencies in a more logical way. The rest of the series > is still open, but this one is needed as a bug fix regardless of > the rest. > --- > drivers/gpu/drm/rcar-du/Kconfig | 25 ++++++++++++++++--------- > 1 file changed, 16 insertions(+), 9 deletions(-) > Yes Yes Yes. Reviewed-by: Randy Dunlap Thanks. -- ~Randy