From patchwork Wed Nov 11 18:35:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324133 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp622986ils; Wed, 11 Nov 2020 10:36:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsegbhuct5OFsQkV9scQMYvPNOyJA5bKaGlkN1uJeJfaHacwHZ4DPP1zQVATTNrISOp+/C X-Received: by 2002:a63:5f17:: with SMTP id t23mr23379409pgb.190.1605119770373; Wed, 11 Nov 2020 10:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605119770; cv=none; d=google.com; s=arc-20160816; b=tWU3so4eUK66Um78AWYhj1TH1HVJ4Ffy+NQabITw9o0vBAtzNofWjnhkqXL60VvEYC JBRmgIkpjAL4R2AzY6YBb3IG9ZhdrXRJVaCbxIRFdD+4n0ZDst/1rYZuBE+duKwdpjrt ipvlEl9VcCQP0fQ3v89Y5bv2v1Xsh+Rw8+Mbu2JRdTmbEvTPQ5AUV0weBruXMbtXBphj pTUAHVtT7qUvqkuBqp0w2Hyl9U4wjsofQtdhH8r+0nuU+84ZFrjsqAZvdFPuIysEcskB TqokkTI99ueL8MmeYmx7kOg9+WvNBvUsg6Gikveq6uO0K4YGUMlxzEfqKmXDSu0G6FcM 0g9g== 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:dkim-signature:delivered-to; bh=/vG4QIOIHXu8r0wjf6NdbTXJ+rxIJerAhRoXgWeh2/A=; b=Q7viqhepJAnT7YKvrHyizv7bhwFXhzPQHe3EXkkYOhLPKno4iOLCa+mIKf3dS7I6CG gyyV5z8Zv87KcA3xK95O+6EWIQ8yPqrlb1qcazlzoVNovgMMIE2+a6RGMvn/RcXyVHlw kdj/OQNG9/PEW6bmdfybjq6vGtzJCcS/hTuVzfujY1oKhG7jxUlRS/+HQXec/c6JxUIJ In5Is2/OwdXtE+2DEs2rQ/NfZdWLLQBPiHwIgCSefGYUWL5wK3utXFXxgPnJ2P8BBzsL ggdFF8qOrhT56gHJWgPAFl0wJRxGlf+y4xLyZiEkbJSXi3v3urvEENrFNK6Jt8bZ71ks CBWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=r6woMpmm; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id g19si2463649pgj.454.2020.11.11.10.36.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:36:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=r6woMpmm; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1278C6E0BA; Wed, 11 Nov 2020 18:36:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4EBDD6E0B8 for ; Wed, 11 Nov 2020 18:36:02 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id b8so3528942wrn.0 for ; Wed, 11 Nov 2020 10:36:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c/TaDkB9aPGP5jIvVTMt5uJ/KkWKg3o08L440ECaIrc=; b=r6woMpmmXo0Dj5775fZ4Cgbnwo1FcLxbbKcVGettNgkwJ6Cx4wfgTiVzUOZ6yjHa91 PDuEfCvVpOvcRcswiUXZE4gg4YiSkaO4G+MOIhIJDFTP4KBjBvqLiq0DNNqICzoiFW7K vnX1v4/opW7uZuRGmvaWYOCdLTTwraEi8lxRBR8Po9duljYvHQJF46gFiGEtDBUWJwGv DrHkoqTr2dLCZEXQhmRMLTOTSwId9FnX25/MW4mzBrabNNErqk3pzrqo+Xd6pXZyl6sE 2ULcoFWvBt9kwgAkdUKPix1fyjnL3O+cZaEVUSV5Zl0EWldvROjwGOxITtQgijDW3MkZ s3bQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=c/TaDkB9aPGP5jIvVTMt5uJ/KkWKg3o08L440ECaIrc=; b=uQUmrzQwIdj3QHrkoVSadSKCsgN0KDRRWbcZWjU8GAVf09Ch4YvOolQDgyRVnC5pM5 /t0ZiaUuR+u9VfQYqiKt63K9okQAuJ2flPATIhoHln1g/y70mitL6nTRpDyI7QvanBgA jf41tUeuBnP/rEDeEnc19d0W3odzG1cVxF098++64rdBxsOBgNrabm8vho+u6b7Gahrg sdzCY4GqVeOc+gg6b7Ti91mtkTeG/y3NUJn1xEPRB93iAGmJv6HrO/Etx0K8IfQrW+tZ MMxTfglmA4g+NhGpVZeYpF7RciUsRkVm0HeT/NaZAA3Z6oj4sJl/qp4bE2craxXsdezd B3Ww== X-Gm-Message-State: AOAM532zKOrKLHi8qaQf9zNUnDP7iKCFuvn36m0WOw8H6q3YOysZJ70/ XHgwlPUukDpPkemIsPA8qcRrBw== X-Received: by 2002:adf:e44f:: with SMTP id t15mr28375034wrm.380.1605119761005; Wed, 11 Nov 2020 10:36:01 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k84sm3558311wmf.42.2020.11.11.10.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:36:00 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 08/19] drm/radeon/si_dma: Move 'si_gpu_check_soft_reset()'s prototype to shared header Date: Wed, 11 Nov 2020 18:35:34 +0000 Message-Id: <20201111183545.1756994-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201111183545.1756994-1-lee.jones@linaro.org> References: <20201111183545.1756994-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/si.c:3768:5: warning: no previous prototype for ‘si_gpu_check_soft_reset’ [-Wmissing-prototypes] 3768 | u32 si_gpu_check_soft_reset(struct radeon_device *rdev) | ^~~~~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/si.h | 1 + drivers/gpu/drm/radeon/si_dma.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.h b/drivers/gpu/drm/radeon/si.h index 0a5018ef166e2..a1751ae560f02 100644 --- a/drivers/gpu/drm/radeon/si.h +++ b/drivers/gpu/drm/radeon/si.h @@ -27,5 +27,6 @@ struct radeon_device; int si_mc_load_microcode(struct radeon_device *rdev); +u32 si_gpu_check_soft_reset(struct radeon_device *rdev); #endif /* __SI_H__ */ diff --git a/drivers/gpu/drm/radeon/si_dma.c b/drivers/gpu/drm/radeon/si_dma.c index d2fa302a5be9f..645897d1bfc31 100644 --- a/drivers/gpu/drm/radeon/si_dma.c +++ b/drivers/gpu/drm/radeon/si_dma.c @@ -25,10 +25,9 @@ #include "radeon.h" #include "radeon_asic.h" #include "radeon_trace.h" +#include "si.h" #include "sid.h" -u32 si_gpu_check_soft_reset(struct radeon_device *rdev); - /** * si_dma_is_lockup - Check if the DMA engine is locked up *