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: 9313103 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A929960760 for ; Mon, 5 Sep 2016 06:04:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95D3628992 for ; Mon, 5 Sep 2016 06:04:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A4E1289B2; Mon, 5 Sep 2016 06:04:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, HK_RANDOM_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1BAE4289AD for ; Mon, 5 Sep 2016 06:04:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 57ABC6E354; Mon, 5 Sep 2016 06:04:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 42DF76E00A for ; Sat, 3 Sep 2016 06:02:01 +0000 (UTC) Received: by mail-pa0-x22b.google.com with SMTP id to9so8076790pac.1 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=YtHzzbXpdaq8on2qS0fK1+a6vBPWVQs2fTBopGYsTXMPcHSoJXfhU5q1NjR3XPr9Bp 1R/pFTLlGIqM/ZiUGmMMU91mnmmnvmLlu0PQEq/IlkGtxi3CcM0AxYSKXMi9CodI5yOZ dAFF0ofWGG5VL7pBtsDh8p9/NiV+anSyADYDvY2X3tsQelwp6VUpc5C4Kvrl2pQJocft Z5WBU57CBv47Jf70Li8ijMpfMDwT90d4NmNsP5WAHv2xZPOVtfSJ+xMgPUT4OadzLZAd RYzzS4CN/QdENK8KVL/IUbcEgvAZVBB1pDxkXDsn0LfJVO0W0gpWVFMN2UNqqrxsrm9f NwfQ== X-Gm-Message-State: AE9vXwNVAjbya8gf1ePqd9I5sqT3LTvuWO73o0okpzfr3R7kr5ThGAudzjM4D3ZKrEDKi3aX 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 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 X-Mailman-Approved-At: Mon, 05 Sep 2016 06:04:02 +0000 Cc: xie.baoyou@zte.com.cn, baoyou.xie@linaro.org, arnd@arndb.de, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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"