lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1474792996-22998-3-git-send-email-baoyou.xie@linaro.org>
Date:   Sun, 25 Sep 2016 16:43:15 +0800
From:   Baoyou Xie <baoyou.xie@...aro.org>
To:     alexander.deucher@....com, christian.koenig@....com,
        airlied@...ux.ie, oded.gabbay@...il.com, David1.Zhou@....com,
        Monk.Liu@....com, Rex.Zhu@....com, JinHuiEric.Huang@....com,
        Flora.Cui@....com, Jammy.Zhou@....com, lukas@...ner.de,
        mario.kleiner.de@...il.com, nils.wallmenius@...il.com,
        Emily.Deng@....com, cpaul@...hat.com, arindam.nath@....com,
        tom.stdenis@....com, nicolai.haehnle@....com,
        Qingqing.Wang@....com, samuel.li@....com, ray.huang@....com,
        michel.daenzer@....com, daniel.vetter@...ll.ch,
        gustavo.padovan@...labora.co.uk, eric.engestrom@...tec.com,
        vitaly.prosyak@....com, alexandre.f.demers@...il.com,
        Jerry.Zhang@....com, seanpaul@...omium.org,
        yamada.masahiro@...ionext.com, maruthi.bayyavarapu@....com
Cc:     dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
        arnd@...db.de, baoyou.xie@...aro.org, xie.baoyou@....com.cn,
        han.fei@....com.cn, tang.qiang007@....com.cn
Subject: [PATCH 3/4] drm/amdgpu: add amdgpu_pm_acpi_event_handler() declaration

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 <baoyou.xie@...aro.org>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h      | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

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
  */
 /**
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ