[PATCH] drm/amd/powerplay: mark symbols static where possible

2016-10-25 Thread Baoyou Xie
On 25 October 2016 at 16:15, Arnd Bergmann wrote: > On Tuesday, October 25, 2016 10:31:21 AM CEST Baoyou Xie wrote: > > On 25 October 2016 at 04:51, Arnd Bergmann wrote: > > > On Saturday, October 22, 2016 4:56:22 PM CEST Baoyou Xie wrote: > > > The function has no

[PATCH] drm/amd/powerplay: mark symbols static where possible

2016-10-25 Thread Baoyou Xie
On 25 October 2016 at 04:51, Arnd Bergmann wrote: > On Saturday, October 22, 2016 4:56:22 PM CEST Baoyou Xie wrote: > > @@ -1341,7 +1341,7 @@ int smu7_disable_dpm_tasks(struct pp_hwmgr *hwmgr) > > return result; > > } > > > > -int smu7_reset_

[PATCH] drm/amd/powerplay: mark symbols static where possible

2016-10-25 Thread Baoyou Xie
On 25 October 2016 at 04:07, Deucher, Alexander wrote: > > -Original Message- > > From: Arnd Bergmann [mailto:arnd at arndb.de] > > Sent: Monday, October 24, 2016 3:49 PM > > To: Alex Deucher > > Cc: Baoyou Xie; Deucher, Alexander; Dave Airlie; Zh

[Nouveau] [PATCH 01/17] drm/nouveau/core: add missing header dependencies

2016-10-25 Thread Baoyou Xie
On 24 October 2016 at 23:43, Karol Herbst wrote: > 2016-10-24 9:13 GMT+02:00 Baoyou Xie : > > > > > > On 23 October 2016 at 01:32, Karol Herbst wrote: > >> > >> I think it would be better to squash those commits: > >> 1. for the includes >

[Nouveau] [PATCH 01/17] drm/nouveau/core: add missing header dependencies

2016-10-24 Thread Baoyou Xie
On 23 October 2016 at 01:32, Karol Herbst wrote: > I think it would be better to squash those commits: > 1. for the includes > 2. for static declerations > > OK, I have resent new patch that squash those commits. > 2016-10-22 11:41 GMT+02:00 Baoyou Xie : > > We get

[PATCH v2 2/2] drm/nouveau: mark symbols static where possible

2016-10-24 Thread Baoyou Xie
-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nouveau_display.

[PATCH v2 1/2] drm/nouveau: add missing header dependencies

2016-10-24 Thread Baoyou Xie
isp.h. So this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/dispnv04/overlay.c | 2 +- drivers/gpu/drm/nouveau/nvkm/core/firmware.c | 1 + drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c | 1 +

[PATCH 17/17] drm/nouveau: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
nce_context_new' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nouvea

[PATCH 16/17] drm/nouveau/dispnv04: add missing header dependencies

2016-10-22 Thread Baoyou Xie
ing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/dispnv04/overlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/dispnv04/overlay.c b/drivers/gpu/drm/nouveau/dispnv04/overlay.c index ec444ea..a79514d 100644 --- a/drive

[PATCH 15/17] drm/nouveau/pm: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
new' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/engine

[PATCH 14/17] drm/nouveau/gr: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c | 2 +- drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c | 2 +- drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c| 4 ++-- drivers/

[PATCH 13/17] drm/nouveau/gr: add missing header dependencies

2016-10-22 Thread Baoyou Xie
nv50_grctx_init' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.h. So this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 12/17] drm/nouveau/fifo: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
totype for 'g84_fifo_chan_object_ctor' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drive

[PATCH 11/17] drm/nouveau/disp: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
ed a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c | 8 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c | 2 +- 2 files changed, 5 insertions(+), 5 de

[PATCH 10/17] drm/nouveau/device: mark symbol static where possible

2016-10-22 Thread Baoyou Xie
ion, but can be made static. So this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/engine/device/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/user.c b/drivers/gp

[PATCH 09/17] drm/nouveau/volt: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
set' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/s

[PATCH 08/17] drm/nouveau/volt: add missing header dependencies

2016-10-22 Thread Baoyou Xie
g header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gpio.c index d2bac1d..443c031 100644 --- a/drivers/gp

[PATCH 07/17] drm/nouveau/secboot: mark symbol static where possible

2016-10-22 Thread Baoyou Xie
ration, but can be made static. So this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c

[PATCH 06/17] drm/nouveau/gpio: mark symbol static where possible

2016-10-22 Thread Baoyou Xie
ion, but can be made static. So this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gk104.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gk104.c b/drivers/gp

[PATCH 05/17] drm/nouveau/fb: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
7;gt215_link_train_fini' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau

[PATCH 04/17] drm/nouveau/fb: add missing header dependencies

2016-10-22 Thread Baoyou Xie
alc' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.h. So this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/fb/sd

[PATCH 03/17] drm/nouveau/clk: mark symbol static where possible

2016-10-22 Thread Baoyou Xie
but can be made static. So this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c b/drivers/gpu/dr

[PATCH 02/17] drm/nouveau/bios: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
try' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/subdev/

[PATCH 01/17] drm/nouveau/core: add missing header dependencies

2016-10-22 Thread Baoyou Xie
put' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h. So this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/core/firmware.c | 1 + 1 file changed, 1 insertion(+) diff --g

[PATCH 1/2] drm/msm: add missing header dependencies

2016-10-22 Thread Baoyou Xie
prototypes] In fact, these functions are declared in drivers/gpu/drm/msm/msm_debugfs.h. So this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/msm/msm_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/msm_debugfs.c b

[PATCH 2/2] drm/msm/adreno: move function declarations to header file

2016-10-22 Thread Baoyou Xie
sing-prototypes] In fact, both functions are declared in drivers/gpu/drm/msm/adreno/adreno_device.c, but should be declared in a header file. So this patch moves both function declarations to drivers/gpu/drm/msm/adreno/adreno_gpu.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/msm/adreno

[PATCH] drm/i2c/tda998x: mark symbol static where possible

2016-10-22 Thread Baoyou Xie
but can be made static. So this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/i2c/tda998x_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 9798

[PATCH] drm/arm: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
roy_plane_state' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/arm/malidp_pl

[PATCH] drm/arm: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
roy_plane_state' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/arm/malidp_pl

[PATCH] drm/armada: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
buf' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/armada/armad

[PATCH] drm/amd/powerplay: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 6 ++- drivers/gpu/drm/

[PATCH 3/3] drm/amdgpu: move function declaration to header file

2016-10-22 Thread Baoyou Xie
n a header file. So this patch moves the function declaration to drivers/gpu/drm/amd/amdgpu/amdgpu.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH 2/3] drm/amdgpu: mark symbols static where possible

2016-10-22 Thread Baoyou Xie
ypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/si.c | 4 ++-- 1 file changed, 2 insertio

[PATCH 1/3] drm/amdgpu: change function declarations and add missing header dependencies

2016-10-22 Thread Baoyou Xie
erplay/inc/pp_acpi.h. So this patch adds missing header dependencies. By the way, this patch changes declaration of amdgpu_gfx_parse_disable_cu() to subject to its implement, and clean three function declarations in pp_acpi.h up. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgp

[PATCH] drm/amdgpu: mark symbols static where possible

2016-09-30 Thread Baoyou Xie
pes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/si.c | 4 ++-- 1 file changed, 2 insertio

[PATCH 1/2] drm/amd/powerplay: mark symbols static where possible

2016-09-30 Thread Baoyou Xie
ctions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 5 ++- drivers/gpu/drm/amd/po

[PATCH 2/2] drm/amd/powerplay: remove unused functions

2016-09-30 Thread Baoyou Xie
totypes] In fact, these functions are called by no one and not exported, so this patch removes them. Signed-off-by: Baoyou Xie --- .../gpu/drm/amd/powerplay/eventmgr/eventtasks.c| 7 - .../drm/amd/powerplay/hwmgr/cz_clockpowergating.c | 42 - drivers/gpu/drm/amd/powerplay/hwmgr/

[PATCH 2/3] drm/radeon: clean function declarations up

2016-09-30 Thread Baoyou Xie
missing-prototypes] In fact, these functions are declared in some source files, but should be declared in a header file, thus can be recognized in other file. So this patch declares them in drivers/gpu/drm/radeon/radeon.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/radeon/atombios_encoders.c |

[PATCH 3/3] drm/radeon: mark symbols static where possible

2016-09-30 Thread Baoyou Xie
; [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/radeon/radeon_dp_mst.c | 8 +++

[PATCH 3/3] drm/radeon: mark symbols static where possible

2016-09-30 Thread Baoyou Xie
; [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/radeon/radeon_dp_mst.c | 8 +++

[PATCH 1/3] drm/radeon: add missing header dependencies

2016-09-30 Thread Baoyou Xie
missing-prototypes] In fact, these functions are declared in drivers/gpu/drm/radeon/radeon_asic.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/radeon/atombios_encoders.c | 1 + drivers/gpu/drm/radeon/evergreen_cs.c

[PATCH 4/4] drm/amdgpu: remove unused functions

2016-09-25 Thread Baoyou Xie
parameter_async' [-Wmissing-prototypes] In fact, both functions are called by no one and not exported, so this patch removes them. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 8 drivers/gpu/drm/amd/amdgpu/cz_smc.c| 7 --- 2 files changed, 1

[PATCH 3/4] drm/amdgpu: add amdgpu_pm_acpi_event_handler() declaration

2016-09-25 Thread Baoyou Xie
pu/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(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 6a75a4

[PATCH 2/4] drm/amdgpu: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
27; [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amd

[PATCH 1/4] drm/amdgpu: add missing header dependencies

2016-09-25 Thread Baoyou Xie
way, we amend the declaration of amdgpu_gfx_parse_disable_cu(). Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h| 3 ++- drivers/gpu/drm/amd/amdgpu/atombios_crtc.c | 1 + drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 1 + d

[PATCH 4/4] drm/amd/powerplay: remove unused functions

2016-09-25 Thread Baoyou Xie
/amd/amdgpu/../powerplay/hwmgr/iceland_hwmgr.c:1154:9: warning: no previous prototype for 'iceland_get_voltage_index' [-Wmissing-prototypes] In fact, these functions are called by no one and not exported, so this patch removes them. Signed-off-by: Baoyou Xie --- .../drm/amd/powe

[PATCH 3/4] drm/amd/powerplay: add function declarations

2016-09-25 Thread Baoyou Xie
ivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h, drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.h, drivers/gpu/drm/amd/powerplay/eventmgr/eventtasks.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/powerplay/eventmgr/eventtasks.h | 2 ++ drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.h|

[PATCH 2/4] drm/amd/powerplay: add missing header dependencies

2016-09-25 Thread Baoyou Xie
md/powerplay/inc/pp_acpi.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c | 1 + 1 files changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c b/drivers/gpu/drm/amd/powerplay/hwmgr/pp

[PATCH 1/4] drm/amd/powerplay: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 6 +- drivers/gpu

[PATCH] drm/i2c: mark tda998x_audio_digital_mute() static

2016-09-25 Thread Baoyou Xie
but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/i2c/tda998x_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 9798d40..8bf6611 100

[PATCH] drm/sti: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
nd don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/sti/sti_drv.c | 2 +- drivers/gpu/drm/sti/sti_dvo.c | 3 ++- drivers/gpu/drm/sti/sti_gdp.c | 2 +- drivers/gpu/drm/sti/sti_hq

[PATCH] drm/exynos: mark exynos_dp_crtc_clock_enable() static

2016-09-25 Thread Baoyou Xie
but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/exynos/exynos_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c index 4f08505..528229f 100

[PATCH 2/2] drm/msm/adreno: move function declarations to header file

2016-09-25 Thread Baoyou Xie
sing-prototypes] In fact, both functions are declared in drivers/gpu/drm/msm/adreno/adreno_device.c, but should be declared in a header file. So this patch moves both function declarations to drivers/gpu/drm/msm/adreno/adreno_gpu.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/msm/adreno

[PATCH 1/2] drm/msm: add missing header dependencies

2016-09-25 Thread Baoyou Xie
prototypes] In fact, both functions are declared in drivers/gpu/drm/msm/msm_debugfs.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/msm/msm_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/msm_debugfs.c b

[PATCH 2/2] drm/rockchip: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
p_drm_fb_resume' [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/rockchip/

[PATCH] drm/mediatek: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks both functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 9 + 1 file

[PATCH] drm/mediatek: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks both functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 9 + 1 file

[PATCH 1/2] drm/rockchip: add missing header dependencies

2016-09-25 Thread Baoyou Xie
totype for 'rockchip_drm_fbdev_fini' [-Wmissing-prototypes] In fact, these functions are declared in drivers/gpu/drm/rockchip/rockchip_drm_fbdev.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 1 + 1 file changed, 1 insert

[PATCH] drm: bridge: analogix/dp: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
totype for 'analogix_dp_detect' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks both functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm

[PATCH] drm/bochs: mark bochs_connector_get_modes() static

2016-09-25 Thread Baoyou Xie
but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/bochs/bochs_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c index 207a2cb..0b4e5d1 100

[PATCH] drm: armada: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
buf' [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/armada/armada

[PATCH] drm: arm: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
roy_plane_state' [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/arm/malidp_pl

[PATCH 2/2] drm/tilcdc: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
ck' [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/tilcdc/tilcdc_drv.c

[PATCH 1/2] drm/tilcdc: add missing header dependencies

2016-09-25 Thread Baoyou Xie
In fact, these functions are declared in drivers/gpu/drm/tilcdc/tilcdc_tfp410.h, drivers/gpu/drm/tilcdc/tilcdc_panel.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 1 + drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 1 + 2 file

[PATCH 3/3] drm/nouveau: remove unused function

2016-09-25 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c:49:1: warning: no previous prototype for 'g94_sor_output_new' [-Wmissing-prototypes] In fact, this function is called by no one and not exported, so this patch removes it. Signed-off-by:

[PATCH 2/3] drm/nouveau: mark symbols static where possible

2016-09-25 Thread Baoyou Xie
27; [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nouv

[PATCH 1/3] drm/nouveau: add missing header dependencies

2016-09-25 Thread Baoyou Xie
dev/volt/priv.h, drivers/gpu/drm/nouveau/nvkm/core/firmware.h, drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.h, drivers/gpu/drm/nouveau/dispnv04/disp.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/dispnv04/overlay.c | 1 + drivers/gpu/drm/nouve

[PATCH] dma-buf/sw_sync: mark sync_timeline_create() static

2016-09-24 Thread Baoyou Xie
static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/dma-buf/sw_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/sw_sync.c b/drivers/dma-buf/sw_sync.c index 62e8e6d..6f16c85 100644 --- a/drivers/dma-buf/sw_sync.c +++ b/

[PATCH] drm/tilcdc: mark tilcdc_atomic_check() static

2016-09-21 Thread Baoyou Xie
be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 4405e4b..1d26bc9 100

[PATCH] drm/tilcdc: add missing header dependencies

2016-09-21 Thread Baoyou Xie
In fact, these functions are declared in drivers/gpu/drm/tilcdc/tilcdc_tfp410.h, drivers/gpu/drm/tilcdc/tilcdc_panel.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 1 + drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 1 + 2 file

[PATCH] drm/amd/powerplay/hwmgr: mark symbols static where possible

2016-09-19 Thread Baoyou Xie
fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c |

[PATCH] drm/amd/powerplay/hwmgr: add missing header dependencies

2016-09-19 Thread Baoyou Xie
md/powerplay/inc/pp_acpi.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c

[PATCH] drm/amd/powerplay/smumgr: mark symbols static where possible

2016-09-19 Thread Baoyou Xie
celand_smumgr.c:167:5: warning: no previous prototype for 'iceland_program_jump_on_start' [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functi

[PATCH] drm/amdgpu: add function declaration in amdgpu.h

2016-09-18 Thread Baoyou Xie
sing-prototypes] In fact, both functions are not declared in any files. So this patch declares them in drivers/gpu/drm/amd/amdgpu/amdgpu.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.

[PATCH] drm/amdgpu: clean function declaration in amdgpu_pm.c up

2016-09-18 Thread Baoyou Xie
n 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(+),

[PATCH] drm/msm/adreno: move function declarations to header file

2016-09-18 Thread Baoyou Xie
sing-prototypes] In fact, both functions are declared in drivers/gpu/drm/msm/adreno/adreno_device.c, but should be declared in a header file. So this patch moves both function declarations to drivers/gpu/drm/msm/adreno/adreno_gpu.h. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/msm/adreno

[PATCH] drm/amdgpu: remove unused functions

2016-09-18 Thread Baoyou Xie
parameter_async' [-Wmissing-prototypes] In fact, both functions are called by no one and not exported, so this patch removes them. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 8 drivers/gpu/drm/amd/amdgpu/cz_smc.c| 7 --- 2 files changed, 1

[PATCH] drm/amdgpu: mark symbols static where possible

2016-09-18 Thread Baoyou Xie
x27;t need a declaration, but can be made static. So this patch marks both functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 6 -- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH] drm/mediatek: mark symbols static where possible

2016-09-18 Thread Baoyou Xie
prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks both functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 9 + 1 file

[PATCH] drm/exynos: mark exynos_dp_crtc_clock_enable() static

2016-09-18 Thread Baoyou Xie
but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/exynos/exynos_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c index 4f08505..528229f 100

[PATCH] drm: bridge: analogix/dp: mark symbols static where possible

2016-09-18 Thread Baoyou Xie
totype for 'analogix_dp_detect' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks both functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm

[PATCH] drm/bochs: mark bochs_connector_get_modes() static

2016-09-18 Thread Baoyou Xie
but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/bochs/bochs_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c index 207a2cb..0b4e5d1 100

[PATCH] drm/amdgpu: amend amdgpu_gfx_parse_disable_cu() declaration

2016-09-18 Thread Baoyou Xie
In amdgpu_gfx.h, the declaration of amdgpu_gfx_parse_disable_cu() is incorrect. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 4 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 5 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH] drm/amdgpu: add missing header dependencies

2016-09-18 Thread Baoyou Xie
, 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/amdgp

[PATCH] drm/msm: add missing header dependencies

2016-09-18 Thread Baoyou Xie
prototypes] In fact, both functions are declared in drivers/gpu/drm/msm/msm_debugfs.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/msm/msm_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/msm_debugfs.c b

[PATCH] drm/nouveau/core: add missing header dependencies

2016-09-18 Thread Baoyou Xie
put' [-Wmissing-prototypes] In fact, both functions are declared in drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/core/firmware.c | 1 + 1 file changed, 1 insertion(+) diff --g

[PATCH] dma-buf/sw_sync: mark sync_timeline_create() static

2016-09-18 Thread Baoyou Xie
static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/dma-buf/sw_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/sw_sync.c b/drivers/dma-buf/sw_sync.c index 62e8e6d..6f16c85 100644 --- a/drivers/dma-buf/sw_sync.c +++ b/

[PATCH] drm/radeon/radeon_device: remove unused function

2016-09-15 Thread Baoyou Xie
nup' [-Wmissing-prototypes] In fact, these functions are dummy, but can be removed, so this patch removes them. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/radeon/radeon_device.c | 11 --- drivers/gpu/drm/radeon/radeon_drv.c| 9 - 2 files changed, 20 deletions(-) diff

[PATCH] drm/amdgpu: clean function declarations in amdgpu_ttm.c up

2016-09-15 Thread Baoyou Xie
-Wmissing-prototypes] In fact, both functions are declared in drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c, but should be declared in a header file, thus can be recognized in other file. So this patch moves the declarations into drivers/gpu/drm/amd/amdgpu/amdgpu.h. Signed-off-by: Baoyou Xie ---

[PATCH] drm/sti: mark symbols static where possible

2016-09-15 Thread Baoyou Xie
the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/sti/sti_drv.c | 2 +- drivers/gpu/drm/sti/sti_gdp.c | 2 +- drivers/gpu/drm/sti/sti

[PATCH] drm/radeon/radeon_device: clean function declarations in radeon_device.c up

2016-09-14 Thread Baoyou Xie
On 14 September 2016 at 15:22, Christian König wrote: > Am 14.09.2016 um 08:10 schrieb Baoyou Xie: > >> We get 2 warnings when building kernel with W=1: >> drivers/gpu/drm/radeon/radeon_device.c:1961:5: warning: no previous >> prototype for 'radeon_debugf

[PATCH] drm/radeon/radeon_device: clean function declarations in radeon_device.c up

2016-09-14 Thread Baoyou Xie
nup' [-Wmissing-prototypes] In fact, both functions are declared in drivers/gpu/drm/radeon/radeon_drv.c, but should be declared in a header file, thus can be recognized in other file. So this patch moves the declarations into drivers/gpu/drm/radeon/radeon.h. Signed-off-by: Baoyou Xie --- dr

[PATCH] drm/nouveau/disp: remove unused function in sorg94.c

2016-09-13 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c:49:1: warning: no previous prototype for 'g94_sor_output_new' [-Wmissing-prototypes] In fact, this function is called by no one and not exported, so this patch removes it. Signed-off-by:

[PATCH] drm/radeon: add missing header dependencies

2016-09-08 Thread Baoyou Xie
missing-prototypes] In fact, these functions are declared in drivers/gpu/drm/radeon/radeon_asic.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/radeon/atombios_encoders.c | 1 + drivers/gpu/drm/radeon/evergreen_cs.c

[PATCH] drm/tilcdc: mark symbols static where possible

2016-09-08 Thread Baoyou Xie
aration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c b/drive

[PATCH] drm/tilcdc: add missing header dependencies

2016-09-08 Thread Baoyou Xie
In fact, these functions are declared in drivers/gpu/drm/tilcdc/tilcdc_tfp410.h, drivers/gpu/drm/tilcdc/tilcdc_panel.h, so this patch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 1 + drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 1 + 2 file

[PATCH] drm/vc4: mark vc4_bo_cache_purge() static

2016-09-08 Thread Baoyou Xie
static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/vc4/vc4_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_bo.c b/drivers/gpu/drm/vc4/vc4_bo.c index 59adcf8..3f6704c 100644 --- a/drivers/gpu/drm/vc4/v

[PATCH] drm/sun4i: add missing header dependencies

2016-09-08 Thread Baoyou Xie
atch adds missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/sun4i/sun4i_dotclock.c| 1 + drivers/gpu/drm/sun4i/sun4i_framebuffer.c | 1 + drivers/gpu/drm/sun4i/sun4i_rgb.c | 1 + 3 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_do

[PATCH] drm/radeon: mark symbols static where possible

2016-09-08 Thread Baoyou Xie
; [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/radeon/radeon_dp_mst.c | 8 +++

[PATCH] drm/sti: mark symbols static where possible

2016-09-07 Thread Baoyou Xie
prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/sti/sti_dvo.c | 3 ++- drivers/gpu/

  1   2   >