Commit d7de9935 authored by Andy Gross's avatar Andy Gross Committed by Greg Kroah-Hartman

staging: omapdrm: Fix DMM sparse warnings

Fix the following sparse warnings:

drivers/staging/omapdrm/omap_dmm_tiler.c:123:13:
   warning: symbol 'omap_dmm_irq_handler' was not declared.
   Should it be static?

drivers/staging/omapdrm/omap_dmm_tiler.c:370:24:
   warning: Using plain integer as NULL pointer
Signed-off-by: default avatarAndy Gross <andy.gross@ti.com>
Signed-off-by: default avatarRob Clark <rob.clark@linaro.org>
Reviewed-by: default avatarSumit Semwal <sumit.semwal@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fd025b8f
...@@ -120,7 +120,7 @@ static int wait_status(struct refill_engine *engine, uint32_t wait_mask) ...@@ -120,7 +120,7 @@ static int wait_status(struct refill_engine *engine, uint32_t wait_mask)
return 0; return 0;
} }
irqreturn_t omap_dmm_irq_handler(int irq, void *arg) static irqreturn_t omap_dmm_irq_handler(int irq, void *arg)
{ {
struct dmm *dmm = arg; struct dmm *dmm = arg;
uint32_t status = readl(dmm->base + DMM_PAT_IRQSTATUS); uint32_t status = readl(dmm->base + DMM_PAT_IRQSTATUS);
...@@ -367,7 +367,7 @@ struct tiler_block *tiler_reserve_1d(size_t size) ...@@ -367,7 +367,7 @@ struct tiler_block *tiler_reserve_1d(size_t size)
int num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; int num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
if (!block) if (!block)
return 0; return ERR_PTR(-ENOMEM);
block->fmt = TILFMT_PAGE; block->fmt = TILFMT_PAGE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment