From patchwork Fri Mar 12 22:18:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 12136127 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 414A5C433E0 for ; Fri, 12 Mar 2021 22:19:14 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C997E64F5B for ; Fri, 12 Mar 2021 22:19:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C997E64F5B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none 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 1676E6E057; Fri, 12 Mar 2021 22:19:13 +0000 (UTC) Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by gabe.freedesktop.org (Postfix) with ESMTPS id A55746E057; Fri, 12 Mar 2021 22:19:11 +0000 (UTC) Received: by mail-pj1-x102b.google.com with SMTP id gb6so5825249pjb.0; Fri, 12 Mar 2021 14:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=5lCTRTL0XOntWq+/Jewv+3VDq5DVbLtgsr4PgJEUSAQ=; b=qsTbGYznsg4e7gIVNRJb1Wje1KmeFBB2621CW6lcd0qquAG8lwMa8ABuWdTamWZRkD AMw8elFz6Wly5FxmQcHEGQ7Ht0j6Qb5ty+IXNTRqeYhKP4Qg7KZotu7Ho7Il9x+Yf7zM pk+DusfI2ktr8p75HiRbXy4stwJArc79STx8fEHR7wc6MvdR7c9rlLxKF/3ZmbJOrwn4 KL+WHDbvE5uVQPKMvx34QdnLmZT/nRodV2lDRA6jdBtlHm0wvX6GJOzXjNL9oseexnRh MJmCMoWtX1kcXW8YXEIzlblYaizhYgzZdVwqf6KKre+TZlqXbcqEgDlP8qoEwNwrGl+7 EkXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5lCTRTL0XOntWq+/Jewv+3VDq5DVbLtgsr4PgJEUSAQ=; b=BihUdty0MtPl+ePOZ4EuZ6wQ7uqeV+/zpFkgCtWsY3ImHSUMex5NuyvTwVKqdgJOG7 avLSaUTLX+VjGPR+Q7X2uiPtc9S155MyBs8IyP2BxMXud1t7XBp3yBA0hBydAwq5oh9B eZ5qV1+X5X5BLhQax4vSMUYdY4fBDYdfYYeYM8fGuwK+sBgSww0QNmbkQsQ19w5P6yaq 968LZcqv6hw+FAWn2LzB1Z8WC0Ve6hpgDxUUrqnE8VNGpydPDXDH4Rk18Ddc5zGSB/wU 5SHB1QgZQK0tkIQtfWGLjU0TNVjwweFitfvP58aLe+JxCGF2MGig+KWVgj2Grwo22qGm frMA== X-Gm-Message-State: AOAM532caPSSk/FFcqf/gpClcIfr+F48Lh6z9Y36ao+ZyespiuqjHIiK nHEY4zb4z3rbO8p1jwSDfyk= X-Google-Smtp-Source: ABdhPJwklsbFkTp8L268idsEDENQZHXVv+PsUT6z+eiAfp5PhwrYIRisF5EVudW6Lta4saWme4DDxQ== X-Received: by 2002:a17:902:bc87:b029:e3:aae4:3188 with SMTP id bb7-20020a170902bc87b02900e3aae43188mr650144plb.56.1615587551227; Fri, 12 Mar 2021 14:19:11 -0800 (PST) Received: from localhost.localdomain ([49.37.85.112]) by smtp.gmail.com with ESMTPSA id z68sm6487329pfz.39.2021.03.12.14.19.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Mar 2021 14:19:10 -0800 (PST) From: Souptick Joarder To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, Hawking.Zhang@amd.com, Oak.Zeng@amd.com, felix.kuehling@amd.com, kevin1.wang@amd.com, le.ma@amd.com, lijo.lazar@amd.com Subject: [PATCH] drm/amdgpu: Mark mmhub_v1_7_setup_vm_pt_regs() as static Date: Sat, 13 Mar 2021 03:48:57 +0530 Message-Id: <1615587537-28989-1-git-send-email-jrdr.linux@gmail.com> X-Mailer: git-send-email 1.9.1 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: Souptick Joarder , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Kernel test robot throws below warning -> drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c:56:6: warning: no previous prototype for 'mmhub_v1_7_setup_vm_pt_regs' [-Wmissing-prototypes] Mark mmhub_v1_7_setup_vm_pt_regs() as static. Reported-by: kernel test robot Signed-off-by: Souptick Joarder --- drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c index 4df0b73..ae7d8a1 100644 --- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c +++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c @@ -53,7 +53,7 @@ static u64 mmhub_v1_7_get_fb_location(struct amdgpu_device *adev) return base; } -void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, +static void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, uint64_t page_table_base) { struct amdgpu_vmhub *hub = &adev->vmhub[AMDGPU_MMHUB_0];