From patchwork Sat Sep 3 06:01:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75339 Delivered-To: patch@linaro.org Received: by 10.140.29.8 with SMTP id a8csp1239159qga; Fri, 2 Sep 2016 23:02:06 -0700 (PDT) X-Received: by 10.98.50.2 with SMTP id y2mr42666877pfy.138.1472882526285; Fri, 02 Sep 2016 23:02:06 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tz10si9008686pab.71.2016.09.02.23.02.05; Fri, 02 Sep 2016 23:02:06 -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 S1753136AbcICGCD (ORCPT + 27 others); Sat, 3 Sep 2016 02:02:03 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:35477 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751241AbcICGCB (ORCPT ); Sat, 3 Sep 2016 02:02:01 -0400 Received: by mail-pa0-f53.google.com with SMTP id hb8so46418558pac.2 for ; Fri, 02 Sep 2016 23:02:01 -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=TyNxVK9hQD9/r6ldRF26rdgRfJ+x4ogmq5orhnHUgI0=; b=j2SbF6ag63GLyugriUMuU2NRadR3sr+nKoWvQm0uucdOoQj3G8TLwToEILz5cSAgnt hPFVQh4pxmXYcY90N75TYxZFerYZRAQz/4kZUpAUNkJhBrh7twDb+MBurOcLQ/gvQdMQ Vl1Srfu0u/usvjeE84+eQerEBDaT6HJZtRh/A= 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=TyNxVK9hQD9/r6ldRF26rdgRfJ+x4ogmq5orhnHUgI0=; b=crT7d047vud56yE35G1puakVL1nruuJ+5klklC5x/sIcCtS4xOteP2bsk6XHgc8tXr OdZjH/WC+Sv7EpK6YYpuyJCUfTdaW4xaAripty1iFEU4Ib52H6DwVqOQ2mAY/gQVvAST OPgSDsemoWBL22nl2cqxsCBB9ZWmG6VqdS5jgjDDGfXuClfHIkJs7GSirp0C6pEqbmnN +Jq9sd43gVVv8SULoeMay8QD/J3hqGs12397j8iuj1kDa/B6K7usMLtdiO4O3hxooENb g0+x+OTto5tCydesn9f3U95Eknz7rC5b/6jc/0pjp+VwHpmpWeX1dtKxUVN1n/TVkt83 pkKQ== X-Gm-Message-State: AE9vXwO/vxsBMQXI0m8LlxF0YAzQ5gI3wSHQ19VMXCnqD2G1r+mcVYfkmPDjIDG1KF+MQgCE X-Received: by 10.66.189.199 with SMTP id gk7mr43312014pac.158.1472882520791; Fri, 02 Sep 2016 23:02:00 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.184]) by smtp.gmail.com with ESMTPSA id si8sm15890388pab.8.2016.09.02.23.01.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Sep 2016 23:02:00 -0700 (PDT) From: Baoyou Xie To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, Qingqing.Wang@amd.com, Jammy.Zhou@amd.com, samuel.li@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 missing header dependencies Date: Sat, 3 Sep 2016 14:01:41 +0800 Message-Id: <1472882501-19515-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 a few warnings when building kernel with W=1: drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c:113:6: warning: no previous prototype for 'amdgpu_pll_compute' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/cz_smc.c:38:10: warning: no previous prototype for 'cz_get_argument' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/cz_smc.c:302:5: warning: no previous prototype for 'cz_smu_start' [-Wmissing-prototypes] .... In fact, these functions are declared in drivers/gpu/drm/amd/amdgpu/atombios_i2c.h drivers/gpu/drm/amd/amdgpu/amdgpu_pll.h drivers/gpu/drm/amd/amdgpu/cz_dpm.h drivers/gpu/drm/amd/amdgpu/vi_dpm.h. So this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c | 1 + drivers/gpu/drm/amd/amdgpu/atombios_i2c.c | 1 + drivers/gpu/drm/amd/amdgpu/cz_smc.c | 2 ++ 3 files changed, 4 insertions(+) -- 2.7.4 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c index d153149..8e67c12 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c @@ -25,6 +25,7 @@ #include "amdgpu.h" #include "atom.h" #include "atombios_encoders.h" +#include "amdgpu_pll.h" #include #include diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c b/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c index bc56c8a..b374653 100644 --- a/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c +++ b/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c @@ -27,6 +27,7 @@ #include "amdgpu.h" #include "atom.h" #include "amdgpu_atombios.h" +#include "atombios_i2c.h" #define TARGET_HW_I2C_CLOCK 50 diff --git a/drivers/gpu/drm/amd/amdgpu/cz_smc.c b/drivers/gpu/drm/amd/amdgpu/cz_smc.c index c80c2e9..95887e4 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_smc.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_smc.c @@ -29,6 +29,8 @@ #include "cz_smumgr.h" #include "smu_ucode_xfer_cz.h" #include "amdgpu_ucode.h" +#include "cz_dpm.h" +#include "vi_dpm.h" #include "smu/smu_8_0_d.h" #include "smu/smu_8_0_sh_mask.h"