Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp815926rwb; Mon, 26 Sep 2022 06:16:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4OlJ2UZPMmhGm2klYwIzgpuq6ymmh/i6Xdo63Ay7EvzEHJh6ldF72uMMxHHqx8ZhYsbrUz X-Received: by 2002:a17:907:1c12:b0:783:a808:1a55 with SMTP id nc18-20020a1709071c1200b00783a8081a55mr2730962ejc.698.1664198219457; Mon, 26 Sep 2022 06:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664198219; cv=none; d=google.com; s=arc-20160816; b=ILNmuv/5ypd+GeAf1RuqsSlKOp2K+TbnpXzyYPBhBXrMAKd6ZDPbNB0jZpOoL5XVgQ Zs+/GrVKojANwocp/PO/FluIx0hWiiVe0LpNPPY0E9PmsbB0IAQBC/F1GFdCOtx/szzG KPDcTzYDe2GeyE8qLtCzmCgeyNcHRIeIrujBK6vHnw6hLFq9467Ov6rtbqez6IMZyaCQ JtoQEYYvZQU5wfk4V8fEdh/aiZFY9YycWTedZC+R4wAa2unRLcIycw/PK5U02N23TO6/ JrAo/fkcUPzgGzzJDUYgQvXb1qDhSDaOCdQ91azqu8xRfv+V1x7NkCFHDZRE1golhDpS i32Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=J4xdqBxwRo+XbRj61jZ2Acjg2OoW+WLA9dlai4QgnxI=; b=IVTEofEKjr8Cx2NsyiI2qvHZgCWvamGPOYrauRYeiPlsFvY1/unRFmMEB7+jNzKIlk Sz2hFf88IOs8oEjF9/yZRVTHGEhZF7SNJqNoW1gHSyLq9jphyVFao4a5ZVK2MYbQCT// bPQey6hcLKw8ub3KLEjn6VQLOfyl/RlpW+YzsM9dx7yLsLswJm8vuUVw+cYhAkBFno2/ gmlLHSjA/mblyvCrPDSwXqh2cK4g5/dAy+Cjf3pLpfkK9b7AR2YOH2wPpREJWTRW/NeH 5E7gZFpX/vgt8GNZ8Zfpi+XU1ewQHAWxLrq8YaXwYVYlWXpPX6wEGBIaTFUyjwp2R6Ww Cg/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DCdGcChZ; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a170906794600b007417c6edb0asi16544167ejo.402.2022.09.26.06.16.33; Mon, 26 Sep 2022 06:16:59 -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=@linuxfoundation.org header.s=korg header.b=DCdGcChZ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239521AbiIZMT7 (ORCPT + 99 others); Mon, 26 Sep 2022 08:19:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236937AbiIZMTb (ORCPT ); Mon, 26 Sep 2022 08:19:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDC4890802; Mon, 26 Sep 2022 04:02:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 08226B808BE; Mon, 26 Sep 2022 10:47:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38377C433D7; Mon, 26 Sep 2022 10:47:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664189250; bh=9Its7ESIwbnKfkGFB0GStUYtp3szj+6k5k8Re0jSq90=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DCdGcChZAFSKYkdoTiJgg//yjaz6Se3JhG+TM+m4rPMukUbKBtQbq07VSuE5qRdcG dvcE3AWVBDCnEyPdu5TLHBEO75/wrNwcyEaDR7jqF89LF5K5m06EHRHsrpSFHjwDV1 /4JET3cvXce6/p/MxCLKpE9tl4D/HshnyCYIICpM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Gerd Hoffmann , Thomas Zimmermann , Xinliang Liu , Tian Tao , John Stultz , Xinwei Kong , Chen Feng , Christian Koenig , Huang Rui , David Airlie , Daniel Vetter , Javier Martinez Canillas , Sasha Levin Subject: [PATCH 5.19 123/207] drm/hisilicon: Add depends on MMU Date: Mon, 26 Sep 2022 12:11:52 +0200 Message-Id: <20220926100812.080079054@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100806.522017616@linuxfoundation.org> References: <20220926100806.522017616@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Randy Dunlap [ Upstream commit d8a79c03054911c375a2252627a429c9bc4615b6 ] The Kconfig symbol depended on MMU but was dropped by the commit acad3fe650a5 ("drm/hisilicon: Removed the dependency on the mmu") because it already had as a dependency ARM64 that already selects MMU. But later, commit a0f25a6bb319 ("drm/hisilicon/hibmc: Allow to be built if COMPILE_TEST is enabled") allowed the driver to be built for non-ARM64 when COMPILE_TEST is set but that could lead to unmet direct dependencies and linking errors. Prevent a kconfig warning when MMU is not enabled by making DRM_HISI_HIBMC depend on MMU. WARNING: unmet direct dependencies detected for DRM_TTM Depends on [n]: HAS_IOMEM [=y] && DRM [=m] && MMU [=n] Selected by [m]: - DRM_TTM_HELPER [=m] && HAS_IOMEM [=y] && DRM [=m] - DRM_HISI_HIBMC [=m] && HAS_IOMEM [=y] && DRM [=m] && PCI [=y] && (ARM64 || COMPILE_TEST [=y]) Fixes: acad3fe650a5 ("drm/hisilicon: Removed the dependency on the mmu") Signed-off-by: Randy Dunlap Cc: Gerd Hoffmann Cc: Thomas Zimmermann Cc: Xinliang Liu Cc: Tian Tao Cc: John Stultz Cc: Xinwei Kong Cc: Chen Feng Cc: Christian Koenig Cc: Huang Rui Cc: David Airlie Cc: Daniel Vetter Reviewed-by: Javier Martinez Canillas Signed-off-by: Javier Martinez Canillas Link: https://patchwork.freedesktop.org/patch/msgid/20220531025557.29593-1-rdunlap@infradead.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/hisilicon/hibmc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/hisilicon/hibmc/Kconfig b/drivers/gpu/drm/hisilicon/hibmc/Kconfig index 073adfe438dd..4e41c144a290 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/Kconfig +++ b/drivers/gpu/drm/hisilicon/hibmc/Kconfig @@ -2,6 +2,7 @@ config DRM_HISI_HIBMC tristate "DRM Support for Hisilicon Hibmc" depends on DRM && PCI && (ARM64 || COMPILE_TEST) + depends on MMU select DRM_KMS_HELPER select DRM_VRAM_HELPER select DRM_TTM -- 2.35.1