From patchwork Sun Sep 18 13:12:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76469 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp522072qgf; Sun, 18 Sep 2016 06:13:05 -0700 (PDT) X-Received: by 10.66.88.227 with SMTP id bj3mr39200235pab.113.1474204385346; Sun, 18 Sep 2016 06:13:05 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u73si19914712pfg.37.2016.09.18.06.13.04; Sun, 18 Sep 2016 06:13:05 -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 S932704AbcIRNNB (ORCPT + 27 others); Sun, 18 Sep 2016 09:13:01 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34743 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757020AbcIRNMx (ORCPT ); Sun, 18 Sep 2016 09:12:53 -0400 Received: by mail-pf0-f179.google.com with SMTP id p64so41791687pfb.1 for ; Sun, 18 Sep 2016 06:12:53 -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=nQRw17wCtRk0pARUVY476WPF7O7R6wTZtCeGKrXX/eI=; b=f3wweU5QOs6Oj87l9dD++1ExsKu54ioA0sJ4pHnfCi6/mZOx4JhvIvRNFVxsrz2ORL HklywSZiFTSod64xx1j2ZrKhTA+jmxJASxZguW979519A7mdbJbcLhYBPbmgRuluxQzq 4m3/OM0bp2MyLIII5DjsjbIYf5JIMhBN1Ct0k= 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=nQRw17wCtRk0pARUVY476WPF7O7R6wTZtCeGKrXX/eI=; b=PGeYvaOeidEFWzl3ofCJmYzYVPhHFqI/9sfmPtR9WEVmT6T/HJNcWT4+fgXkNUhGJt 3D/7tKolvS4dnODhiilVs1shF726o06GifhzHrkv6bKrwfoA2oIMwWfzHOdY/bOxUO0i G6425XSs0nNWwXOpIFLLp54aatE/G2XbJ4Ei5aXwjobTBFnwvcKXD1fdYJb39OXcwDcJ 1qGn++ERnaV2mtI+AYfmbsnH3OQJlgp6JKIKfF4CCTKn0br0kKHm0DCZFzQ+Pcg1k8aS DrlBpGMo+eA5seYDwCIzP+VYlavQdQ5KxvYYnQoTOB7MdJvjrHU6b5PkXOK8PV0SwXtu 4P+g== X-Gm-Message-State: AE9vXwOFgLMFP0zAQr2j01jT7rpvbigikfzesL+JDIjAsOMIIzWFu0dqbPcJUstVH6rXkAM6 X-Received: by 10.98.152.138 with SMTP id d10mr24401818pfk.8.1474204373116; Sun, 18 Sep 2016 06:12:53 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.27]) by smtp.gmail.com with ESMTPSA id h74sm38848567pfa.91.2016.09.18.06.12.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 06:12:52 -0700 (PDT) From: Baoyou Xie To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, nicolai.haehnle@amd.com, michel.daenzer@amd.com, daniel.vetter@ffwll.ch, tom.stdenis@amd.com, gustavo.padovan@collabora.co.uk, eric.engestrom@imgtec.com, Emily.Deng@amd.com, Flora.Cui@amd.com, vitaly.prosyak@amd.com, alexandre.f.demers@gmail.com, Jerry.Zhang@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: Sun, 18 Sep 2016 21:12:37 +0800 Message-Id: <1474204357-15368-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 6 warnings when building kernel with W=1: drivers/gpu/drm/amd/amdgpu/dce_v8_0.c:629:6: warning: no previous prototype for 'dce_v8_0_disable_dce' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/dce_v10_0.c:730:6: warning: no previous prototype for 'dce_v10_0_disable_dce' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/dce_v11_0.c:699:6: warning: no previous prototype for 'dce_v11_0_disable_dce' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:40:5: warning: no previous prototype for 'amdgpu_gfx_scratch_get' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:62:6: warning: no previous prototype for 'amdgpu_gfx_scratch_free' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:84:6: warning: no previous prototype for 'amdgpu_gfx_parse_disable_cu' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/amd/amdgpu/dce_v8_0.h drivers/gpu/drm/amd/amdgpu/dce_v10_0.h drivers/gpu/drm/amd/amdgpu/dce_v11_0.h drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 1 + drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 1 + drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 1 + drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 1 + 4 files changed, 4 insertions(+) -- 2.7.4 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c index a074edd..01a42b6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c @@ -24,6 +24,7 @@ */ #include #include "amdgpu.h" +#include "amdgpu_gfx.h" /* * GPU scratch registers helpers function. diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c index bc5bb4e..fb943ee 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c @@ -35,6 +35,7 @@ #include "dce/dce_10_0_d.h" #include "dce/dce_10_0_sh_mask.h" #include "dce/dce_10_0_enum.h" +#include "dce_v10_0.h" #include "oss/oss_3_0_d.h" #include "oss/oss_3_0_sh_mask.h" #include "gmc/gmc_8_1_d.h" diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c index b93eba0..1555d6d 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c @@ -35,6 +35,7 @@ #include "dce/dce_11_0_d.h" #include "dce/dce_11_0_sh_mask.h" #include "dce/dce_11_0_enum.h" +#include "dce_v11_0.h" #include "oss/oss_3_0_d.h" #include "oss/oss_3_0_sh_mask.h" #include "gmc/gmc_8_1_d.h" diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c index abd5213..ef7add9 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c @@ -34,6 +34,7 @@ #include "dce/dce_8_0_d.h" #include "dce/dce_8_0_sh_mask.h" +#include "dce_v8_0.h" #include "gca/gfx_7_2_enum.h"