From patchwork Sun Sep 18 14:29:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76479 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp547926qgf; Sun, 18 Sep 2016 07:29:54 -0700 (PDT) X-Received: by 10.66.156.129 with SMTP id we1mr6673723pab.149.1474208994295; Sun, 18 Sep 2016 07:29:54 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p187si17354276pfg.52.2016.09.18.07.29.54; Sun, 18 Sep 2016 07:29:54 -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; 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 dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964870AbcIRO3v (ORCPT + 27 others); Sun, 18 Sep 2016 10:29:51 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:34278 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754132AbcIRO3m (ORCPT ); Sun, 18 Sep 2016 10:29:42 -0400 Received: by mail-pf0-f169.google.com with SMTP id p64so42096171pfb.1 for ; Sun, 18 Sep 2016 07:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=BmDjY3g27rkUjhgaM7LaDNsjv6xZf8UHeuvPBDXzOuA=; b=N/Y6ZnxDAHykcmkxsc0A7HVeMsmxNX2Cx1q5OHuc7juNTp86KxQZb6gDqtAa7DoRpA jrqEE6zqpgaphTRZ/yJl2LV/ZOz6zV2Buy65x3u+io1MwcNFXOHgL8CNc85tjKLU53L3 t61FqDTRH+qAKBnoVcWaL/z7KzAOvMPCiM5ko= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BmDjY3g27rkUjhgaM7LaDNsjv6xZf8UHeuvPBDXzOuA=; b=i0qoWkI5X6MSweCpjSULOZYNl7T4SXus2Bovsf8N8JKe6cC3mSeczoO3hGL2sI6v/Y x3nWzsAFC8QJ0FTmyp991MvRRWe0QZVGYWCiDo0tTxVPJ+hqjtdvJnJFt2A7D5lEclz1 PjCszdsrKD8Xk3JVoyhqRZnBEXzx667m4y+LFI+FXGGYvyd5oakTXk+Pix5GDG1a3MBx kpn3rl/L1QTXUp5x/i2dMlxQWpdBG+VsqCrmdx3w/eq2oHZBtT7QyCccQfn+Eqncr3Ob uS3es6XCDeH3LNzYc+ro9+ezGfAzC2o/1P/9E6/3l9hIKkFGqZZp/3Fjfh2XmX4KAf2c 9G2Q== X-Gm-Message-State: AE9vXwPd2hFYrCQ2AIxVxI0V3qrWWkenXC1kJvrQniuyhqS7A5naLzKtGsdy4ezz7HOBVC5W X-Received: by 10.98.64.193 with SMTP id f62mr38772962pfd.141.1474208981565; Sun, 18 Sep 2016 07:29:41 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.172]) by smtp.gmail.com with ESMTPSA id ra13sm24865995pac.29.2016.09.18.07.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 07:29:41 -0700 (PDT) From: Baoyou Xie To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, David1.Zhou@amd.com, Monk.Liu@amd.com, Rex.Zhu@amd.com, JinHuiEric.Huang@amd.com, Flora.Cui@amd.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] drm/amdgpu: add function declaration in amdgpu.h Date: Sun, 18 Sep 2016 22:29:01 +0800 Message-Id: <1474208941-19854-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 2 warnings when building kernel with W=1: drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c:502:10: warning: no previous prototype for 'init_cond_exec' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c:514:6: warning: no previous prototype for 'patch_cond_exec' [-Wmissing-prototypes] In fact, both functions are not declared in any files. So this patch declares them in drivers/gpu/drm/amd/amdgpu/amdgpu.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 8e3d9b2..7b71cbe 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -396,6 +396,8 @@ int amdgpu_fence_emit(struct amdgpu_ring *ring, struct fence **fence); void amdgpu_fence_process(struct amdgpu_ring *ring); int amdgpu_fence_wait_empty(struct amdgpu_ring *ring); unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring); +unsigned int init_cond_exec(struct amdgpu_ring *ring); +void patch_cond_exec(struct amdgpu_ring *ring, unsigned int offset); /* * BO.