Received: by 10.192.165.156 with SMTP id m28csp1376154imm; Fri, 13 Apr 2018 19:51:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx49jLPcwDtOLtUfAqBBHkvWzLT3AWL1uR+KXs5EkHeRHfbj8wvA279JLv3CPlFTrjxRTZENa X-Received: by 10.98.194.133 with SMTP id w5mr13754994pfk.6.1523674307227; Fri, 13 Apr 2018 19:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523674307; cv=none; d=google.com; s=arc-20160816; b=qJhmqAb2D+O2gAtjhKZP+PzeN1tflgukMuT5aV2monQOFIfZKkb2y0AyUJuUnar+ei f9dAoW1w8jgCvCwQf8hJlrilPypo1LkmjY8sgBWBQi1deanaLkg/NFYzTxa67N1+GhWA O8m7SywQiAJK9pr5nD3a9y+jb0s8bHiktPJ0Znejrh6V18mf5HuledpOWjKnz8OlVJcY 513Xgot6Sb1VJTM2/KH9W9Y/dpPkClq36vTz3riRTteazEnDECQZQDri+ET3AP5G0W8i gz0jqCVxb9c3M+yO6TT0m/Exv8AGpYY31v20Es2ObzC9vxkHi53/rZ/QWt0YVefgA/Cu 0DGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature :arc-authentication-results; bh=KBU60zAu/AJs/647wCN+zbULWrh1CKMtOmVTlelh3lA=; b=mxlTL3JpaP2GG9pY28Dem22PtmYKkBjsGvjG3Q4jnrKIGUEkz+np2cFSFiyvHVuFXn OGfsrKvEqrqPqtfkPZpFlikp3pqZ3xVs27PLpA79W+dxxt0+vzN9kcbVmVqKVGOWBXYe hCer/8to6SE3RFrfVwko908q+tV5lN5Uyk7zY6WdZJDmK2oOBR62wgYu3/bREGtMfRcz zvJWjlqhSRYGrBPA25YWdFhK/VwLEVoTOE6Mt70eR3DYU6YI2aJaDpo5JXtdx8Po4tSU ZBSL99SfDnXoH7EgVMjJjfZuJtX4FQkhBzwNZpzWet3daplJ74ijikb4ZvyY5jSN/oZF L1qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=DkVdkWwT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si5994533pfh.354.2018.04.13.19.51.21; Fri, 13 Apr 2018 19:51:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=DkVdkWwT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751148AbeDNCtd (ORCPT + 99 others); Fri, 13 Apr 2018 22:49:33 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45970 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbeDNCtc (ORCPT ); Fri, 13 Apr 2018 22:49:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Sender:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=f0Sm8O7IVsMavqKi+EOyZfRNyU4YkmE2MpdCb1e5O5A=; b=DkVdkWwTgu+9PmG7WAoJo6BFX n1v6MIXo+GmdtASDWguw1MnbAvcGVZtTXJI6K1792BL87l4c9wOmwwaH3QjNWWnOdfwownW3psYJL 84AJBdbu7qM9E74OwYmD5AVYRG/42i8XG3KnFnDemZtPs1aviUgjNx9/fCfXgW5Mwlvu+vsOPnS0i +HdXsVd2bZitPiQoLkf3mzDML1ewRZyp5KXGrSP770Y1996w7ePhF4nOmAgUUTSHRDHBb80/Fq2Qa 62mVILqUNPRcVKuSMGiGN0irHtwgUb5+RWXibbp4m/cTJvW7VoSimkemayur6+oK1L4Vwyy2bgpsk QkJ4QWuuQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f7BFq-0005qF-Nl; Sat, 14 Apr 2018 02:49:30 +0000 Subject: [PATCH] gpu/drm/amd/amdkfd: fix build, select MMU_NOTIFIER To: akpm@linux-foundation.org, sfr@canb.auug.org.au, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel , Oded Gabbay References: <20180414002933.6h3S5%akpm@linux-foundation.org> From: Randy Dunlap Message-ID: Date: Fri, 13 Apr 2018 19:49:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180414002933.6h3S5%akpm@linux-foundation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap When CONFIG_MMU_NOTIFIER is not enabled, struct mmu_notifier has an incomplete type definition, which causes build errors. ../drivers/gpu/drm/amd/amdkfd/kfd_priv.h:607:22: error: field 'mmu_notifier' has incomplete type ../include/linux/kernel.h:979:32: error: dereferencing pointer to incomplete type ../include/linux/kernel.h:980:18: error: dereferencing pointer to incomplete type ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:434:2: error: implicit declaration of function 'mmu_notifier_unregister_no_release' [-Werror=implicit-function-declaration] ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:435:2: error: implicit declaration of function 'mmu_notifier_call_srcu' [-Werror=implicit-function-declaration] ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:438:21: error: variable 'kfd_process_mmu_notifier_ops' has initializer but incomplete type ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:439:2: error: unknown field 'release' specified in initializer ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:439:2: warning: excess elements in struct initializer [enabled by default] ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:439:2: warning: (near initialization for 'kfd_process_mmu_notifier_ops') [enabled by default] ../drivers/gpu/drm/amd/amdkfd/kfd_process.c:534:2: error: implicit declaration of function 'mmu_notifier_register' [-Werror=implicit-function-declaration] Signed-off-by: Randy Dunlap Cc: Oded Gabbay Cc: dri-devel@lists.freedesktop.org --- From linux-next, not mmotm, but found in mmotm builds. drivers/gpu/drm/amd/amdkfd/Kconfig | 1 + 1 file changed, 1 insertion(+) --- mmotm-2018-0413-1728.orig/drivers/gpu/drm/amd/amdkfd/Kconfig +++ mmotm-2018-0413-1728/drivers/gpu/drm/amd/amdkfd/Kconfig @@ -6,5 +6,6 @@ config HSA_AMD tristate "HSA kernel driver for AMD GPU devices" depends on DRM_AMDGPU && X86_64 imply AMD_IOMMU_V2 + select MMU_NOTIFIER help Enable this if you want to use HSA features on AMD GPU devices.