Skip to content

Commit

Permalink
video: fbdev: pvr2fb: fix build warning when compiling as module
Browse files Browse the repository at this point in the history
Add missing #ifndef MODULE around pvr2_get_param_val().

Fixes: 0f5a571 ("video: fbdev: pvr2fb: add COMPILE_TEST support")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jun 21, 2019
1 parent 4d0664a commit 1071512
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/fbdev/pvr2fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ static struct fb_ops pvr2fb_ops = {
.fb_imageblit = cfb_imageblit,
};

#ifndef MODULE
static int pvr2_get_param_val(const struct pvr2_params *p, const char *s,
int size)
{
Expand All @@ -734,6 +735,7 @@ static int pvr2_get_param_val(const struct pvr2_params *p, const char *s,
}
return -1;
}
#endif

static char *pvr2_get_param_name(const struct pvr2_params *p, int val,
int size)
Expand Down

0 comments on commit 1071512

Please sign in to comment.