From patchwork Sun Sep 25 08:43:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76969 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp643100qgf; Sun, 25 Sep 2016 01:44:28 -0700 (PDT) X-Received: by 10.66.175.38 with SMTP id bx6mr28032058pac.159.1474793068311; Sun, 25 Sep 2016 01:44:28 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si18354726pfe.161.2016.09.25.01.44.27; Sun, 25 Sep 2016 01:44:28 -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 S965768AbcIYIoK (ORCPT + 27 others); Sun, 25 Sep 2016 04:44:10 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35602 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941005AbcIYIoC (ORCPT ); Sun, 25 Sep 2016 04:44:02 -0400 Received: by mail-pa0-f54.google.com with SMTP id oz2so53033878pac.2 for ; Sun, 25 Sep 2016 01:44: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:in-reply-to:references; bh=gcicHQwiB/H9uNg+u/5nT6q3z3v82JC6eMBMzINIiaY=; b=FoAd6JLpTZc5Q12Jh9ZaGzfUrRlMaYZ8ThUQmabEVwaWrEFkWdnbPj6Wozo34HZzlM a2S6zgZ0yIb2iIImEfQhwzuN0fAopiZB4VnSedSnep7fB0En9hl6HM7mD4KC+wC4vlC9 eAuqiY6wmRIRQPD4ImCxA/GzW0/3QYfR52CkQ= 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:in-reply-to :references; bh=gcicHQwiB/H9uNg+u/5nT6q3z3v82JC6eMBMzINIiaY=; b=YdZpv7SxRAI+dgzgMCszLuC9WIYnfXGe3hUD3p5/xhU1FzgYnE/d0pAAUHfHonnfNF TcoonOAHbmYBwh08sCRzR9Cu/s/Tr/sjVDPa3jCK9ldpReZ98licydhC9yPeGGAilJkb zTiGxH8NH7Cnq+Fk9TSeH6HvzhB5+xQg4Zkp4ABTCRf5FBd6UG9nLPSHp3uc7SIJ+uWJ Qojaz/o5jjuSTWEQjdGriwKhIgVXUgL3kEvT2B+GTC0PJWIgDRHYMOVrJ4F84tBuMz4Z toEZ1O88zsXXP1V99+KgQACpdU+KMf1pblsTwGaA5Wvo7W5YN6TZtgr13mcB0aFogZoD wonw== X-Gm-Message-State: AE9vXwMcs6fYjnGZfbp/q+n0lkJ0lN6odNp/3tYrAPGZpB7Up+k04/Yqr+0I2CkffKyKVIGd X-Received: by 10.66.76.65 with SMTP id i1mr27846529paw.51.1474793040982; Sun, 25 Sep 2016 01:44:00 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id u64sm22722669pfi.0.2016.09.25.01.43.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 01:44:00 -0700 (PDT) From: Baoyou Xie To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, oded.gabbay@gmail.com, 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, mario.kleiner.de@gmail.com, nils.wallmenius@gmail.com, Emily.Deng@amd.com, cpaul@redhat.com, arindam.nath@amd.com, tom.stdenis@amd.com, nicolai.haehnle@amd.com, Qingqing.Wang@amd.com, samuel.li@amd.com, ray.huang@amd.com, michel.daenzer@amd.com, daniel.vetter@ffwll.ch, gustavo.padovan@collabora.co.uk, eric.engestrom@imgtec.com, vitaly.prosyak@amd.com, alexandre.f.demers@gmail.com, Jerry.Zhang@amd.com, seanpaul@chromium.org, yamada.masahiro@socionext.com, maruthi.bayyavarapu@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, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH 3/4] drm/amdgpu: add amdgpu_pm_acpi_event_handler() declaration Date: Sun, 25 Sep 2016 16:43:15 +0800 Message-Id: <1474792996-22998-3-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474792996-22998-1-git-send-email-baoyou.xie@linaro.org> References: <1474792996-22998-1-git-send-email-baoyou.xie@linaro.org> 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, it need to declare it in a header files. So this patch adds the declaration in 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 6a75a48..e88a9ac 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1645,6 +1645,7 @@ struct amdgpu_pm { }; void amdgpu_get_pcie_info(struct amdgpu_device *adev); +void amdgpu_pm_acpi_event_handler(struct amdgpu_device *adev); /* * UVD 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 */ /**