From patchwork Sun Sep 18 14:23:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76478 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp546127qgf; Sun, 18 Sep 2016 07:24:12 -0700 (PDT) X-Received: by 10.98.223.22 with SMTP id u22mr39484719pfg.128.1474208651982; Sun, 18 Sep 2016 07:24:11 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ra13si23100077pac.262.2016.09.18.07.24.11; Sun, 18 Sep 2016 07:24:11 -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 S935947AbcIROYJ (ORCPT + 27 others); Sun, 18 Sep 2016 10:24:09 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33612 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755675AbcIROX7 (ORCPT ); Sun, 18 Sep 2016 10:23:59 -0400 Received: by mail-pf0-f177.google.com with SMTP id 21so31357379pfy.0 for ; Sun, 18 Sep 2016 07:23:59 -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=JYXLl3qH23SYCH3bqfLFQNUiQBvhl4fIrogg38qXFdg=; b=Nte1pDeLgq0pArWwpiL3YHn3gvcvMztk+6Bc/tdV7HE5Jgu33BQXDc4tJYgPttJNLA NQFk/XTnvXLuDloXuLiqPScU6XEYz64JjxASR9KB+dqW6hfNN7+iKbGI6r3Auu16CZaV vc3FzmuA1D/ZRh+I3tuYWWvSc91y/kvCtgPfI= 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=JYXLl3qH23SYCH3bqfLFQNUiQBvhl4fIrogg38qXFdg=; b=biPhg7chQe7Wkw3rLg//3kfNSQkiJUQ+JDM6fJUwSudfpuW9wm4SK0CMxiN/H2GnSi VJis5/KpAR1qxxgxXw+CxkoAPW5LTHwU/d+m8uC564EgaYfgiN/YQKKYrh8arwoYRJNB +e18wCPGQ6ds/X7GuFh53E5CEpaOJlPWDtcm5y/HkcxrvB9mUGRkuuLET35krU8J+M7D kBNHchnvtHckwevRDw0VQcVsomzUfjHUaLgfkettlmET/pkrO/vRD/lUDNqKK2u8Zao3 KonDrDAEm4kvMKP8UZaQVYxRJUwqnQ/gWlQPzyMDwtoi4AWlbCZoWzMAkbeNKOcDjFt2 BV6A== X-Gm-Message-State: AE9vXwPFVTG3lBygl6TKyxA2nxMBh7oReJW3UojTQbWIX1LP5Guv65S8mSbFG5uXLmvwsoUg X-Received: by 10.98.6.68 with SMTP id 65mr38735347pfg.116.1474208639229; Sun, 18 Sep 2016 07:23:59 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.172]) by smtp.gmail.com with ESMTPSA id w63sm44861053pfk.43.2016.09.18.07.23.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 07:23:58 -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, Jammy.Zhou@amd.com, lukas@wunner.de 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: clean function declaration in amdgpu_pm.c up Date: Sun, 18 Sep 2016 22:23:43 +0800 Message-Id: <1474208623-11778-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 1 warning when building kernel with W=1: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c:37:6: warning: no previous prototype for 'amdgpu_pm_acpi_event_handler' [-Wmissing-prototypes] In fact, this function is declared in drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c, but should be declared in a header file, thus can be recognized in other file. So this patch moves the declaration into drivers/gpu/drm/amd/amdgpu/amdgpu.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 3208608..8e3d9b2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -2466,6 +2466,7 @@ struct amdgpu_afmt_acr { }; struct amdgpu_afmt_acr amdgpu_afmt_acr(uint32_t clock); +extern void amdgpu_pm_acpi_event_handler(struct amdgpu_device *adev); /* amdgpu_acpi.c */ #if defined(CONFIG_ACPI) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c index 5cd7b73..eaaba0d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c @@ -32,7 +32,6 @@ #include "amd_acpi.h" #include "atom.h" -extern void amdgpu_pm_acpi_event_handler(struct amdgpu_device *adev); /* Call the ATIF method */ /**