From: Bartlomiej Zolnierkiewicz Date: Fri, 21 Jun 2019 11:04:38 +0000 (+0200) Subject: video: fbdev: pvr2fb: fix build warning when compiling as module X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=10715127e4f6f5e0e78f2e6d575e5238a3cc9a1f;p=linux.git video: fbdev: pvr2fb: fix build warning when compiling as module Add missing #ifndef MODULE around pvr2_get_param_val(). Fixes: 0f5a5712ad1e ("video: fbdev: pvr2fb: add COMPILE_TEST support") Reported-by: Stephen Rothwell Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c index 04d56754ac134..15474cae816c2 100644 --- a/drivers/video/fbdev/pvr2fb.c +++ b/drivers/video/fbdev/pvr2fb.c @@ -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) { @@ -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)