Re: [Nouveau] [PATCH] drm/nouveau/secboot/gm20b: Fix return value in case of error

2016-09-25 Thread Alexandre Courbot
On Sat, Sep 24, 2016 at 6:06 AM, Christophe JAILLET wrote: > If 'ioremap()' returns 0, 'gm20b_tegra_read_wpr()' will return 0 as well, > which means success. > Return -ENOMEM instead Reviewed-by: Alexandre Courbot > > Signed-off-by:

[Nouveau] [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: Baoyou Xie

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

2016-09-25 Thread Baoyou Xie
We get a few warnings when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c:29:1: warning: no previous prototype for 'nvbios_fan_table' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c:184:1: warning: no previous prototype for 'gt215_clk_info'

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

2016-09-25 Thread Baoyou Xie
We get a few warnings when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c:60:1: warning: no previous prototype for 'nvkm_sddr2_calc' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c:69:1: warning: no previous prototype for 'nvkm_sddr3_calc'