From patchwork Fri May 8 14:40:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 186345 Delivered-To: patch@linaro.org Received: by 2002:a92:8d81:0:0:0:0:0 with SMTP id w1csp45725ill; Fri, 8 May 2020 07:41:17 -0700 (PDT) X-Google-Smtp-Source: APiQypLPNtmTzXBgxfXd+22blBf0hdVjwEJZ7+LCzG8ls4yBKSsudBq1BKgtDNm5xq848J1pixR3 X-Received: by 2002:a17:90a:a484:: with SMTP id z4mr6482223pjp.40.1588948877734; Fri, 08 May 2020 07:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588948877; cv=none; d=google.com; s=arc-20160816; b=m1ClC0ocfI3eK7mkJPmC91p/L/O8mhyHuvHLphojj6eAdhdqvpx7aWSG4eLHPFBnO6 welIjJprnZ1dsk0UuJp3V78h6rA1F5daxaBE49RiUYrVfmrTzaH3XNnYLwhe8m/Bz8Kt oi6CZ5wJ203nQfR3nogUXMyfY1SC1bsDDB2n6zEscWa/pzcvkI6ruPrV6oLw35BoodIV lygPV9QxkV4RCAnpq5fyQWQKMbx4gJ/0aWF42/kDDM+91o0p02Hf57Tj49yX19gT+I7V ZmnGwSBEGDgbpMxogn/NooKkqmDae3ZarsWwdIvWAA9q3T7QpcZXtqYWN9esKQeaEx7M HeCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to; bh=FyhuTPBzhgPn4tql7LNxQ8/RajmIagycpXzMXRRyTuo=; b=v4+oVuiVwO0Cg1ETnGodL+UrFw904ei0kQ2shqIz357XQRE6vhelSJf+NBK18cADrY noNHKYeum8QtlQaTrowllpzLdQYs0lRhJlF/fhgFCPOfRtAMC7hjcqpm6VDugJD5slmn YBrh6i5/+GWcT8JXadt9bstxxs8H+zOS7w3icnGfxOPE94KtWFPRsTjxnh9hJqsPDnc8 6x2/74E/9kOAi8LaSo98gJ08Js4jungjpag44MyGXdcKhnwgf2Xg3mlykaYfBvBKdmMQ 6b36a78i3BaVemI3Nv32gDtwhaVXIsAoiJ5WrvFm+e4ifnjBtlJAJdQu/yQYotS+Sc4h xZwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id d8si2382175pjl.72.2020.05.08.07.41.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2020 07:41:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 017C16E226; Fri, 8 May 2020 14:41:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by gabe.freedesktop.org (Postfix) with ESMTPS id 669BC6E226 for ; Fri, 8 May 2020 14:41:11 +0000 (UTC) Received: from localhost.localdomain ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPA (Nemesis) id 1Mr9OA-1ikEYX0EAI-00oG15; Fri, 08 May 2020 16:40:51 +0200 From: Arnd Bergmann To: Ben Skeggs , Jason Gunthorpe Subject: [PATCH 2/2] nouveau: fix dependencies for DEVICE_PRIVATE Date: Fri, 8 May 2020 16:40:09 +0200 Message-Id: <20200508144017.3501418-2-arnd@arndb.de> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200508144017.3501418-1-arnd@arndb.de> References: <20200508144017.3501418-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:JWVQOgOnHysetYBnSk3CKrV5svFn5O5bRyqndsTcxkwhAVFX33K 8QbP8gDLWPxaMFNAgd7F0Cl5FkzbK7UMEJIFy0zMaVqeRYEiRnApjKD442XntX1liV7tU8u +v58YzETQ9SV2Hp+cHqKt2yBzRbfWwCIKA6DW0+yHZ5CaJ628eVpggV+QV31QJGmJnChH1i vbw4Va8hrFgS/CW9ROAkg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:VzDQJ1Yexdc=:rlZgpEK/dFkEh64B04UQUI g+x10OM+ECzQzdguOSFhigUHOMdlbZFiI08PVo16y3npp77DmEsUma/AvaHcceM2m5b3I2o7L TNCu82db3goJxFTWsXeuL1ZexwTp0gb5JWPrscj83fsTSOZ/18VLYpONC2FctsWw9C/ZTKzgS K0HbBohnOvCR3/SHRUv1n1sX17ZLm6sZ7onWo54A55647knTetrzKq+aimZ3A3fEN/f1JRi2q Fz7PefVUE5BFdLOZfKP5PVlfwCyFKD6ePO31sczeohRvfZrfip4z6j5azwY53UD8A2la9VDMl yQ+zJZVhiTIEPExvx2yHPt8Gb4vD9nklM6omlVYpu0t7d4EINmaSrURvpa8jZGeYVMzuniupd GCC0Ui4hsMVN4O+BGGp4mzzSTdHxZNuUpUfZalKuY98GENhMiAjkN8T1/WrzIzIlYLjdGtodz i4ar0/wiV5tIOczUPF0P9sKJGaDYgVsNGNmzm403LzNNJzt1oxw6UMUJE4iRQ1Akef7DSocGP TPO/xZ/dimwT8pDNNP6hqgqxRCEPgk43rCb1CWF2rYxdcoPcQLVLwDgWV1VH9AhMabNUbojSm G8HmBR+fcLs6jSPX8Ls6tidrpGP6nsyMSNMLDV8lfryssOazCoAdn2ZG4RZJ1/o5BEegZ8I9B 80CzFDRI32YAgnT9uC1xB8szTuFOrz1fc+/kgtYCqSk3qr4O9buMmeCmRGHuM+5J8UOGznTD8 0YZ3ZZkh/Y2ymPOhW2NNuVL+0rXAFSSaH49WsYDVcyPjUerW4YuaddC4lv6dBUSeTDyQY4nLK NV8OCikn7NeFF6Uk7/uPXIkQYE5CSkZ9+DUpSoA+hw2rOqe68k= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , David Airlie , John Hubbard , Felix Kuehling , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jason Gunthorpe , nouveau@lists.freedesktop.org, Dan Williams , Ira Weiny , Christoph Hellwig Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" CONFIG_DEVICE_PRIVATE cannot be selected in configurations without ZONE_DEVICE: WARNING: unmet direct dependencies detected for DEVICE_PRIVATE Depends on [n]: ZONE_DEVICE [=n] Selected by [y]: - DRM_NOUVEAU_SVM [=y] && HAS_IOMEM [=y] && DRM_NOUVEAU [=y] && MMU [=y] && STAGING [=y] kernel/resource.c:1653:28: error: use of undeclared identifier 'PA_SECTION_SHIFT' size = ALIGN(size, 1UL << PA_SECTION_SHIFT); ^ kernel/resource.c:1654:48: error: use of undeclared identifier 'MAX_PHYSMEM_BITS' Add a dependency for Nouveau to avoid broken randconfig builds. Fixes: d2c63df2242e ("mm/hmm: make CONFIG_DEVICE_PRIVATE into a select") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/nouveau/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.26.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Acked-by: Randy Dunlap # build-tested diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kconfig index af5793f3e7c2..996ec5475908 100644 --- a/drivers/gpu/drm/nouveau/Kconfig +++ b/drivers/gpu/drm/nouveau/Kconfig @@ -87,6 +87,7 @@ config DRM_NOUVEAU_BACKLIGHT config DRM_NOUVEAU_SVM bool "(EXPERIMENTAL) Enable SVM (Shared Virtual Memory) support" depends on DRM_NOUVEAU + depends on ZONE_DEVICE depends on MMU depends on STAGING select DEVICE_PRIVATE