Received: by 10.192.165.156 with SMTP id m28csp555759imm; Thu, 19 Apr 2018 03:48:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+HmzavTkW8vkkLK30TkGikT1P/1lsZGe8WAzVeUd1mLVzNQ4DN3LO8sRAtJqEVpxNOUWK+ X-Received: by 2002:a17:902:6590:: with SMTP id c16-v6mr5650504plk.292.1524134896087; Thu, 19 Apr 2018 03:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524134896; cv=none; d=google.com; s=arc-20160816; b=puw8U0SZlZI6vrINmP+v/tEIqn+Mv89HzLePa/VgVPWwKX3qHwW9ZVv7Twad6ymaNS lDZRJO1XdC6AEoN0goktelJW0gtQqIYtix+cCk2lHqZJoE/uw+G3QGYAB7Js6bsnnPMh 3o/10hTNx9fPo65JKn7lc27wHI3gPIxMevLIkRikHCJvSuF1VFFXAyuZGX/sEHBM/5uv 3wcOdxWA6XJ+aSJTDvrAgNptnY8WdsKVjH2bxditYo8ZwAhOQ+OHCvu2RrflOGZIjjQI vWNvZNBOs4KE4bf4CI2ziknOyn9KvEU1S1CeTiQ42dKv7nLOscyQW6gHbAEhgRW+KFE1 VFZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=gHxzpVH803w2o/whDCGNbSmeTTkV2GtPhrrHRu28gZg=; b=J5p86tBUMCQhVGjjiXxsJTRvLmlKL7EYgAScF0JyGVEj7m6hKjBrXq+VSyAJJTmM5Q 0+dppwsskMIiJmfP0+MFZ5Zje6BF5qqEcW+Hsu7N2sgHS2kClWX7ayiLIbdti7o3Ka5s h3OCE4PunImyygBnwHHpTBD2TAoPNLV4MB5f2lO/NIquFHiJEecxjpE3LhS7/tNARlUT GpbO6udSuZbRjKl79XedsLyTZF9unLGw7zPI7fl3lEcrpNAlYh1gICTPBI0k7JuMjWCQ 7Isd7nBpPl2M0AfoqCgueBBi6hTFFJWdnZL15H8QnjKNXu5cPNvEz14BhOhxcPP4M8AE Qbtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AsgA7FYO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7-v6si3222787pll.132.2018.04.19.03.48.02; Thu, 19 Apr 2018 03:48:16 -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=pass header.i=@linaro.org header.s=google header.b=AsgA7FYO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511AbeDSKqR (ORCPT + 99 others); Thu, 19 Apr 2018 06:46:17 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:33256 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751822AbeDSKqP (ORCPT ); Thu, 19 Apr 2018 06:46:15 -0400 Received: by mail-pl0-f68.google.com with SMTP id w12-v6so3018457plp.0 for ; Thu, 19 Apr 2018 03:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gHxzpVH803w2o/whDCGNbSmeTTkV2GtPhrrHRu28gZg=; b=AsgA7FYOWDE4nD2lMGGraqNjahpqucy2kn4lE5WSuX+Iud7I01uLU4LQSOOfVNbonv mHccS837ZFcoKZ8Fcqab7VXk/TJTvhFfIshQHqtJzD1CkHu9qX+48jLuaXEyBzXKWbgC c9GhLwFXm8ZAaYeLyf1ng2+0GRLtmPY2nRSUA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=gHxzpVH803w2o/whDCGNbSmeTTkV2GtPhrrHRu28gZg=; b=PgEH299ezqZUceAghCGyBpuj6orwtzQ7Q6SJmNZdWzWeyFQVADi3KWn8Z5NRuW0Hhn haTxfOCMqTWSWXvI1Hr4tjn4Og/J0pgZUgKpD6xcIi7DqTRiuPQS8Sqpx8xJDQlX00Ll ZYOYZyh0CNvoQhsjZG42fpRN/MaF7hI/p/oSwhpLsZdq5OwPLM6sceKw8Q/Tn5sOijpk mKB2bNPeevP0aYyaqHQpfYq3ONGL5IaHqOYZkdx35B9vROvMcc7Tv1nhV6IM8LaVZSAy rKVmkmP68OJKmZmOytGM5Hqx5YfCe+tDhGIKkQR6SViwGj+n5MeslbNtLMNya/8IhTku vqqA== X-Gm-Message-State: ALQs6tC2gGuB4A5UeHL+oH7FE00UrGap0y+cZ3QLpTaVM3COzQvlagFl MrSXJcG0PMBlrfsk1JH7q8WU75Z+H+dXNX4lpoDtsQ== X-Received: by 2002:a17:902:b7c7:: with SMTP id v7-v6mr5789200plz.190.1524134774801; Thu, 19 Apr 2018 03:46:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.174.202 with HTTP; Thu, 19 Apr 2018 03:46:14 -0700 (PDT) In-Reply-To: References: <20180414002933.6h3S5%akpm@linux-foundation.org> From: Anders Roxell Date: Thu, 19 Apr 2018 12:46:14 +0200 Message-ID: Subject: Re: [PATCH] gpu/drm/amd/amdkfd: fix build, select MMU_NOTIFIER To: Randy Dunlap Cc: Andrew Morton , sfr@canb.auug.org.au, linux-next@vger.kernel.org, Linux Kernel Mailing List , dri-devel , Oded Gabbay Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14 April 2018 at 04:49, Randy Dunlap wrote: > 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 Tested-by: Anders Roxell > --- > 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. >