From patchwork Sun Sep 10 20:44:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 812179 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=sparclinux-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Zqagd5D5"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xr32q5smVz9s5L for ; Mon, 11 Sep 2017 06:44:51 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702AbdIJUov (ORCPT ); Sun, 10 Sep 2017 16:44:51 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34915 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751613AbdIJUou (ORCPT ); Sun, 10 Sep 2017 16:44:50 -0400 Received: by mail-pf0-f196.google.com with SMTP id g13so4085520pfm.2; Sun, 10 Sep 2017 13:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=DhEciPyX8gjtyPp7USB5O57cU9iRhJQcggXHWC/bDbs=; b=Zqagd5D5osA9WdHdSFcvwJ8Rj9sVueBR1BgFaGf2Fea07jT+LkSSAKaUbom0YLB0t/ Ni0oZNRcZSRtG2jShwMwxN3YSuLcCgpd1+AEUbq/xWWEKlHeJxJpd+XCiXd2PNDYBlbr mHbaP1q1xMYx+v+MF1esdYzN6VivR2TXC+llBabb/LF9N3s/WQL2UiSeOcJ8eA5mt0BK 9720lFsY9kkDWG+nel6eXdJkiac0s45wL1ijmee0fkGNFjnAffLu1gY5eSk2sYvpnoIJ F1fwl6RUlraYdUiIAWenpej7A2KD9i35aLIKO+RAFPft1O0bwGM+wji8TQN+dkaj5YMZ C1Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=DhEciPyX8gjtyPp7USB5O57cU9iRhJQcggXHWC/bDbs=; b=KCtKSw1QX6KjBLL6wT3sKSVCbc6+ieaj0vlOmGypL5GqHbguE4ZPZAad2Fh0A1mX/C RzmaeBM34T7K2vjAg2kHQxSmN+8AEXC1+eBnN8ZRyl8oCbt8AMkekAu8vobDU5MLSHAo TAIqDmOWU+n3fN0NgSM8yzss+u5dcPd78g8CHBNcXNIrjFMkxVigTCIU5qxWaf1fXiX2 W3JUFObdrn6z/DNDDbdVHShXA3/urhqnUxEHNygd3Avn1tkXvFouAkOJrln4E7DRweZ2 Ok37OUo9gOisdDaF/8fxJbi8TYmjjiMdZhmKI898H03Ay8Jvw3Ks4apj57HFCf4ePT0e qR1w== X-Gm-Message-State: AHPjjUgOqyk9CtUwpNlzw7zRSWtYRepY9Qv7U6f8/xFfqt9eh7g/yuxS +cxTmT0hNxbrWQ== X-Google-Smtp-Source: ADKCNb4hkwU96c5MzBRQ5750AcKXYRLdASDMQ5Bd9oxnbeLE0TAOxGQJ5dz+ezvKvIiIsxdchlPWVg== X-Received: by 10.101.92.6 with SMTP id u6mr9841070pgr.198.1505076289824; Sun, 10 Sep 2017 13:44:49 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id x8sm9823113pff.104.2017.09.10.13.44.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Sep 2017 13:44:49 -0700 (PDT) From: Guenter Roeck To: "David S . Miller" Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, Guenter Roeck Subject: [PATCH] sparc64: mmu_context: Add missing include files Date: Sun, 10 Sep 2017 13:44:47 -0700 Message-Id: <1505076287-18401-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org Fix the following build errors. In file included from arch/sparc/include/asm/mmu_context.h:4:0, from include/linux/mmu_context.h:4, from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h:29, from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23: arch/sparc/include/asm/mmu_context_64.h:22:37: error: unknown type name 'per_cpu_secondary_mm' arch/sparc/include/asm/mmu_context_64.h: In function 'switch_mm': arch/sparc/include/asm/mmu_context_64.h:79:2: error: implicit declaration of function 'smp_processor_id' Fixes: 70539bd79500 ("drm/amd: Update MEC HQD loading code for KFD") Signed-off-by: Guenter Roeck Acked-by: Oded Gabbay --- "Exposed-by:" instead of "Fixes:" might be more appropriate. arch/sparc/include/asm/mmu_context_64.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sparc/include/asm/mmu_context_64.h b/arch/sparc/include/asm/mmu_context_64.h index 87841d687f8d..a34315e1f0ed 100644 --- a/arch/sparc/include/asm/mmu_context_64.h +++ b/arch/sparc/include/asm/mmu_context_64.h @@ -7,9 +7,11 @@ #include #include +#include #include #include +#include static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) {