From: Randy Dunlap <rdunlap@infradead.org>
To: linux-fbdev@vger.kernel.org
Subject: pm3fb.c: question
Date: Sat, 14 Mar 2020 07:35:17 +0000 [thread overview]
Message-ID: <9f7b3b9b-f48e-6da1-d08c-cc60f60b1eac@infradead.org> (raw)
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
next reply other threads:[~2020-03-14 7:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-14 7:35 Randy Dunlap [this message]
2020-03-14 17:41 ` pm3fb.c: question Randy Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9f7b3b9b-f48e-6da1-d08c-cc60f60b1eac@infradead.org \
--to=rdunlap@infradead.org \
--cc=linux-fbdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).