Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4683314iob; Sun, 8 May 2022 21:53:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9jC7EE2l28rbHIKcRCWHVwbQxQoytxxUDzgMgkPyTwwityyzD8grLHlH2wnY96y7F6tL7 X-Received: by 2002:a17:902:bd4b:b0:15e:ea25:94f0 with SMTP id b11-20020a170902bd4b00b0015eea2594f0mr14104594plx.105.1652071996306; Sun, 08 May 2022 21:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652071996; cv=none; d=google.com; s=arc-20160816; b=XwMLyNtjV2KwLVE4sABfpAk+DqZ693BbBInjkDeJM0h+B+yWBJALg5QC0R+b7Es/kx ncsyft0gdOCqcux6ULs7ICwWOIp6vYVy6aSPDAIVpc7L/pz4BvmjxtLI0SllpWY/vbEK hhSwrrUqBIfo1WmHu7sdMlFvu62TETs4jYvb/KZ6/hFgLbnLXwmwuV4+pDsPk7bgtsEX 9q4rs43WkGDOLG9CzkS6MvcZMBd72dbELjZZSdk/0O4n79MjASUvWsI1K5o002zx/rFy 9UtXLOBPVz3zqUQ4jV5yTCQOT4BH7SDyENb5Xkc/iehJR1I/jepUERxvJDTBchyS+oU8 Dmeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=ngzmg5igyKP5SRm5Nirtc2N7ZkRfNlgKBnU08s44IJM=; b=pdPwXWrUWupyeKxOwZQQFpk/2iFgIVbn/uzeIYV6QxWt9IvL31uT1fCn6uwmf1nh55 /s5DkoRf0Y454xoSitG5c53HRaXJcGjhMYxOhwYs9klTeUkus84cjPxOp1Z3+426SyvS kYT95LDMgdXyTtGIwQzv/kPDbrfClHZaeoEsQ6HixfCPZYbctAMJIG+u7g3Phm4sVGjM YEf6hqnb/XIcUm1SShNHUk3hlTZEXyitb9JZbUzP7AWl7GvIn2n2O6SKI9wddX2eWlb3 oF5PxJgU6uZbr9RjRqMp1qdD8y7Le9OmLQS0Jr06MrlAHpdajg+rWWZFpYlb16aNB4iF uAwg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w6-20020a170902e88600b001567e872208si12370212plg.217.2022.05.08.21.53.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:53:16 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB390F74BB; Sun, 8 May 2022 21:51:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391983AbiEFMhK (ORCPT + 99 others); Fri, 6 May 2022 08:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1392081AbiEFMhI (ORCPT ); Fri, 6 May 2022 08:37:08 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 233D26928A for ; Fri, 6 May 2022 05:33:25 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KvqfQ4LZJzGpXY; Fri, 6 May 2022 20:30:38 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 6 May 2022 20:33:22 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH v2 -next] drm/display: Fix build error without CONFIG_OF Date: Fri, 6 May 2022 20:32:46 +0800 Message-ID: <20220506123246.21788-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 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 --- 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 -- 2.17.1