Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3624675iob; Sat, 7 May 2022 10:05:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuOqxELXxF0rfsAXVcpsh9mvvvYEVZf8HYPc61dvDuF+yp2plzgn7nDiUJjlsCtV2/a9pZ X-Received: by 2002:a17:907:8686:b0:6f4:b92c:8ef7 with SMTP id qa6-20020a170907868600b006f4b92c8ef7mr7904971ejc.651.1651943131130; Sat, 07 May 2022 10:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651943131; cv=none; d=google.com; s=arc-20160816; b=eY8PfXmzLI1EGUr9JtMqx8S6rIrAMpMaYKmnxGKG0u6wRVdKZhfkdj5uDzdbGT2M0H IGkrl4o1T0aAL2tuTU3bWcpRD3sTkoDENVVy+fZ3CdqRSYb8Fodf29PKyZaRy3/2SK6K x2lm5UdVF5E99fEMYjEUFqFEp4SdArir8ky/XMFvpQU6YL8uYzcU94aP+8mtUlP13zsb 46XQuSp6s5nwMA3iYravWqtderEJQmjHakGXT+roJk9Pk5bM2eYLLsI5HdH3rUWD2O+N TbR0jUWD8W4nb7V0T4gpMVwj4H3JzWmODIGandYiR5VC5gMqJhVkvqteR3xuq4T+aZUI 1rpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wcCqtZEPwF4j+NJY+GsjG63IidZrMrfgVo1P2Q6mh+Q=; b=InDkA76S4KW3weeaYUvJt9Pi4SLLYKGzmj9JghAsaXp8lHkCWnXCmOcfAFsh5CpkMH beMoMGHTuaRcvVt9X49g/VyYYg9Tc7KsQvGErVQDx5OvcUWEvBr+2R9ijvY8V5CKpBfu nLxTriQxJtY87Haw3EEOOvdjLnBqojs/og8VxYDkskz4ww9/vdKL7RBY8FkfH18iLvrj I7IfEQZTV0qrdG+ER4hnoZ5Hd0wI4IbA7wONqbWZuDE2+pEJW7JAMGBUN+BmV9leNIG/ xbKru4KWqBlnvc4gJA7v/6iyVeRfJFOwasjFeTpgxOrXOBvxIei7dOeGRxuisa5ERdK9 yTnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=OfqlgN4r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a50e3cc000000b00425bde45124si7325710edm.108.2022.05.07.10.05.04; Sat, 07 May 2022 10:05:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=OfqlgN4r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443200AbiEFP4B (ORCPT + 99 others); Fri, 6 May 2022 11:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443087AbiEFPz7 (ORCPT ); Fri, 6 May 2022 11:55:59 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0F2B59BAD for ; Fri, 6 May 2022 08:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651852333; x=1683388333; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=wcCqtZEPwF4j+NJY+GsjG63IidZrMrfgVo1P2Q6mh+Q=; b=OfqlgN4rNvF+YeU9HhYU+8NiQsjoOV2aCXPJXIQErrFCLSgnZm/zKOsp 2XimRXm/R6rbraWsoMEQKY2tC9t+ier+WKdok10pkKSK2Cw0GtDNddCrt bh2nbUKXUX0iZiXOlzpz8i6z9KVLgus6b24NsrYHyNL720T+oPuFpl8Fs o=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 06 May 2022 08:52:13 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 08:52:12 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 6 May 2022 08:52:12 -0700 Received: from [10.111.168.240] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 6 May 2022 08:52:10 -0700 Message-ID: Date: Fri, 6 May 2022 08:52:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH v2 -next] drm/display: Fix build error without CONFIG_OF Content-Language: en-US To: YueHaibing , , , , CC: , References: <20220506123246.21788-1-yuehaibing@huawei.com> From: Abhinav Kumar In-Reply-To: <20220506123246.21788-1-yuehaibing@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 5/6/2022 5:32 AM, YueHaibing wrote: > While CONFIG_OF is n but COMPILE_TEST is y, we got this: > > WARNING: unmet direct dependencies detected for DRM_DP_AUX_BUS > Depends on [n]: HAS_IOMEM [=y] && DRM [=y] && OF [=n] > Selected by [y]: > - DRM_MSM [=y] && HAS_IOMEM [=y] && DRM [=y] && (ARCH_QCOM || SOC_IMX5 || COMPILE_TEST [=y]) && COMMON_CLK [=y] && IOMMU_SUPPORT [=y] && (QCOM_OCMEM [=n] || QCOM_OCMEM [=n]=n) && (QCOM_LLCC [=y] || QCOM_LLCC [=y]=n) && (QCOM_COMMAND_DB [=n] || QCOM_COMMAND_DB [=n]=n) > > Make DRM_DP_AUX_BUS depends on OF || COMPILE_TEST to fix this warning. > > Fixes: f5d01644921b ("drm/msm: select DRM_DP_AUX_BUS for the AUX bus support") > Signed-off-by: YueHaibing Reviewed-by: Abhinav Kumar > --- > v2: fix this in DRM_DP_AUX_BUS dependencies > --- > drivers/gpu/drm/display/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/display/Kconfig b/drivers/gpu/drm/display/Kconfig > index 1b6e6af37546..09712b88a5b8 100644 > --- a/drivers/gpu/drm/display/Kconfig > +++ b/drivers/gpu/drm/display/Kconfig > @@ -3,7 +3,7 @@ > config DRM_DP_AUX_BUS > tristate > depends on DRM > - depends on OF > + depends on OF || COMPILE_TEST > > config DRM_DISPLAY_HELPER > tristate