Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9133737pxu; Mon, 28 Dec 2020 07:27:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJfET4/U1XwdDPuzm0tEvi9PiaZaIJJyd5+LVv/6usGcXBc4MRSZD44BGc19en9kiYJzan X-Received: by 2002:a17:906:52d9:: with SMTP id w25mr40954476ejn.504.1609169256862; Mon, 28 Dec 2020 07:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609169256; cv=none; d=google.com; s=arc-20160816; b=YV8xA/3fndLBjY8S1pc69qFmmOrU8vjxSY6EpIMD2m8J0C3+Rnsz5yLxb1VcSUkaOg +LRvJVbPXQnoBDMUxU/yqk1nH2cGziJFZvUwHlDvJNPbFJuf2igwjRMgItHjB5CnOTNd a5Fv5Jti9t59wC1Qqqq0tAGy9kBBwgkMOYocFnJEBikOAlPxKq8/RhopozrRzrIHRzqN d5Rw75Ljt/5E86psQruWJOZOaxMK76xxYB7QBPkuDx729n8DkZKlsb/mebblm7eYKSyZ jA9UVM/B8o0fcdSFTDRVDy88PyvN+CLPwPGEnxFGlKyJusLp0fDIviRBcy93yHaaDo0m iI7w== 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=L//mpJm923nhkeHdjc5yHKvn+Ak2kKWIQUgfnTNJlZo=; b=nnSBeEDypyi665M7ehMpkYERpud3TK+O5/i1qj7zkQ4EjthQDZBVp3Nv8ANF7jFaZp wgae55umA1fO8ryudrNCbnkTti2tOitlxkTuK4IoJp3RVb1tUA00mqPRjYAxMn84qpyV 7SYRMr8RyoiTkWZgWDw/69eqhsoR/XQx1d+zaKeskCKwnKF2b2f2e3s2xYcfYaj7GvAz w62w9/cHI8LPerssai92hPif/SN1/IycqoGiNkH0bYp6aKuZqmOs0jb/oXUQNTGzkRL7 FGCfJ7nWtNPxhZRlswaenMbJthzyCJHuqWsKeSC9SJdNGmp9SNpibJduj5CWH7nQ5sOJ q/tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nY93Ac7W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k18si20450557eds.42.2020.12.28.07.27.13; Mon, 28 Dec 2020 07:27:36 -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=@linuxfoundation.org header.s=korg header.b=nY93Ac7W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407771AbgL1OAG (ORCPT + 99 others); Mon, 28 Dec 2020 09:00:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:33656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407722AbgL1OAB (ORCPT ); Mon, 28 Dec 2020 09:00:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 310AA20715; Mon, 28 Dec 2020 13:59:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609163961; bh=EtrtNzjBt/6SdUvBKWT3J6QUlTOr5G5BUP1dzuw7Zzk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nY93Ac7W4mGNGW2Xg6V3aKrUAHKzHCzrmv6tIx+2EM6gwNC2vu7Mlgll2YKNl54ui hOsTVIZGt3OgHIqsohP8S3vStgQPvSlcuRtPKABvTr4SKw/+od1x3dxktqS9lG9z50 UuhBKquJmIJyJ63kPvl+zmbiyGywOuG3sV/GguGA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Randy Dunlap , Joel Stanley , Andrew Jeffery , Daniel Vetter , Michal Simek , Andrew Morton , Mike Rapoport , linux-mm@kvack.org, linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, David Airlie , dri-devel@lists.freedesktop.org, Sasha Levin Subject: [PATCH 5.10 004/717] drm/aspeed: Fix Kconfig warning & subsequent build errors Date: Mon, 28 Dec 2020 13:40:02 +0100 Message-Id: <20201228125021.199023747@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit bf296b35489b46780b73b74ad984d06750ed5479 ] Kernel test robot reported build errors (undefined references) that didn't make much sense. After reproducing them, there is also a Kconfig warning that is the root cause of the build errors, so fix that Kconfig problem. Fixes this Kconfig warning: WARNING: unmet direct dependencies detected for CMA Depends on [n]: MMU [=n] Selected by [m]: - DRM_ASPEED_GFX [=m] && HAS_IOMEM [=y] && DRM [=m] && OF [=y] && (COMPILE_TEST [=y] || ARCH_ASPEED) && HAVE_DMA_CONTIGUOUS [=y] and these dependent build errors: (.text+0x10c8c): undefined reference to `start_isolate_page_range' microblaze-linux-ld: (.text+0x10f14): undefined reference to `test_pages_isolated' microblaze-linux-ld: (.text+0x10fd0): undefined reference to `undo_isolate_page_range' Fixes: 76356a966e33 ("drm: aspeed: Clean up Kconfig options") Reported-by: kernel test robot Signed-off-by: Randy Dunlap Reviewed-by: Joel Stanley Cc: Joel Stanley Cc: Andrew Jeffery Cc: Daniel Vetter Cc: Michal Simek Cc: Andrew Morton Cc: Mike Rapoport Cc: linux-mm@kvack.org Cc: linux-aspeed@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Signed-off-by: Joel Stanley Link: https://patchwork.freedesktop.org/patch/msgid/20201011230131.4922-1-rdunlap@infradead.org Signed-off-by: Joel Stanley Signed-off-by: Sasha Levin --- drivers/gpu/drm/aspeed/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/aspeed/Kconfig b/drivers/gpu/drm/aspeed/Kconfig index 018383cfcfa79..5e95bcea43e92 100644 --- a/drivers/gpu/drm/aspeed/Kconfig +++ b/drivers/gpu/drm/aspeed/Kconfig @@ -3,6 +3,7 @@ config DRM_ASPEED_GFX tristate "ASPEED BMC Display Controller" depends on DRM && OF depends on (COMPILE_TEST || ARCH_ASPEED) + depends on MMU select DRM_KMS_HELPER select DRM_KMS_CMA_HELPER select DMA_CMA if HAVE_DMA_CONTIGUOUS -- 2.27.0