pm3fb.c: question
From: Randy Dunlap <hidden>
Date: 2020-03-14 07:35:17
In drivers/video/fbdev/pm3fb.c, if I change the definition of DPRINTK()
(in order to remove some gcc warnings if -Wextra is used), like this:
-#define DPRINTK(a, b...)
+#define DPRINTK(a, b...) no_printk(a, ##b)
I get a build error here:
default:
DPRINTK("Unsupported depth %d\n",
info->current_par->depth);
break;
../drivers/video/fbdev/pm3fb.c: In function ‘pm3fb_init_engine’:
../drivers/video/fbdev/pm3fb.c:353:9: error: ‘struct fb_info’ has no member named ‘current_par’
info->current_par->depth);
^
Is there a replacement (fix) for this field?
or should the entire DPRINTK() be deleted?
or somethine else?
thanks.
--
~Randy