diff options
author | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2019-06-21 13:04:38 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2019-06-21 13:04:38 +0200 |
commit | 10715127e4f6f5e0e78f2e6d575e5238a3cc9a1f (patch) | |
tree | 2ce779e2823c6b8e67a5f4c33765d0d936034564 /drivers/video/fbdev | |
parent | 4d0664ab88109099045df38b5288ef5c7726575f (diff) | |
download | linux-stable-10715127e4f6f5e0e78f2e6d575e5238a3cc9a1f.tar.gz linux-stable-10715127e4f6f5e0e78f2e6d575e5238a3cc9a1f.tar.bz2 linux-stable-10715127e4f6f5e0e78f2e6d575e5238a3cc9a1f.zip |
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 <sfr@canb.auug.org.au>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r-- | drivers/video/fbdev/pvr2fb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c index 04d56754ac13..15474cae816c 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) |