video: tegra: treat compilation warning as error
Sanjay Singh Rawat [Tue, 10 Jul 2012 16:07:35 +0000 (21:07 +0530)]
- Adding flag to treat warning as error.
- Handled warning of unused function.

bug 949219

Change-Id: Ic6edfc28bae95b8395cbd51e80f14aa4aa663f61
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/114624
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/video/tegra/Makefile
drivers/video/tegra/fb.c

index 104b161..ce581d2 100644 (file)
@@ -1,4 +1,5 @@
 GCOV_PROFILE := y
+subdir-ccflags-y := -Werror
 EXTRA_CFLAGS += -Idrivers/video/tegra/host
 obj-$(CONFIG_TEGRA_GRHOST) += host/
 obj-$(CONFIG_TEGRA_DC) += dc/
index 9c5c06d..f1cd652 100644 (file)
@@ -245,51 +245,6 @@ static int tegra_fb_setcmap(struct fb_cmap *cmap, struct fb_info *info)
        return 0;
 }
 
-#if defined(CONFIG_FRAMEBUFFER_CONSOLE)
-static void tegra_fb_flip_win(struct tegra_fb_info *tegra_fb)
-{
-       struct tegra_dc_win *win = tegra_fb->win;
-       struct fb_info *info = tegra_fb->info;
-
-       win->x.full = dfixed_const(0);
-       win->y.full = dfixed_const(0);
-       win->w.full = dfixed_const(tegra_fb->xres);
-       win->h.full = dfixed_const(tegra_fb->yres);
-
-       /* TODO: set to output res dc */
-       win->out_x = 0;
-       win->out_y = 0;
-       win->out_w = tegra_fb->xres;
-       win->out_h = tegra_fb->yres;
-       win->z = 0;
-       win->phys_addr = info->fix.smem_start +
-               (info->var.yoffset * info->fix.line_length) +
-               (info->var.xoffset * (info->var.bits_per_pixel / 8));
-       win->virt_addr = info->screen_base;
-
-       win->phys_addr_u = 0;
-       win->phys_addr_v = 0;
-       win->stride = info->fix.line_length;
-       win->stride_uv = 0;
-
-       switch (info->var.bits_per_pixel) {
-       default:
-               WARN_ON(1);
-               /* fall through */
-       case 32:
-               tegra_fb->win->fmt = TEGRA_WIN_FMT_R8G8B8A8;
-               break;
-       case 16:
-               tegra_fb->win->fmt = TEGRA_WIN_FMT_B5G6R5;
-               break;
-       }
-       win->flags = TEGRA_WIN_FLAG_ENABLED;
-
-       tegra_dc_update_windows(&tegra_fb->win, 1);
-       tegra_dc_sync_windows(&tegra_fb->win, 1);
-}
-#endif
-
 static int tegra_fb_blank(int blank, struct fb_info *info)
 {
        struct tegra_fb_info *tegra_fb = info->par;