* getting warning when a method parameter in a kernel module is not used
@ 2015-09-24 14:25 Kevin Wilson
2015-09-24 15:00 ` Valdis.Kletnieks at vt.edu
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Wilson @ 2015-09-24 14:25 UTC (permalink / raw)
To: kernelnewbies
Hi,
When a method parameter in a kernel module is not used, we do not get
any warning (as opposed to a variable which is not used).
Is there any compilation flag which enables getting warning in such a case ?
Regards,
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
* getting warning when a method parameter in a kernel module is not used
2015-09-24 14:25 getting warning when a method parameter in a kernel module is not used Kevin Wilson
@ 2015-09-24 15:00 ` Valdis.Kletnieks at vt.edu
0 siblings, 0 replies; 2+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2015-09-24 15:00 UTC (permalink / raw)
To: kernelnewbies
On Thu, 24 Sep 2015 17:25:15 +0300, Kevin Wilson said:
> Hi,
>
> When a method parameter in a kernel module is not used, we do not get
> any warning (as opposed to a variable which is not used).
>
> Is there any compilation flag which enables getting warning in such a case ?
No, and it's unclear that it would be worthwhile.
Consider a kernel module that implements a device driver, and the ->ioctl()
only implements ioctl(fd,START|STOP|PAUSE|RESUME,/* ignored parameter */).
Or any other case where there's a generic struct of pointers to functions that
have fixed signatures, but for a given module, we don't need to access one.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-24 15:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-24 14:25 getting warning when a method parameter in a kernel module is not used Kevin Wilson
2015-09-24 15:00 ` Valdis.Kletnieks at vt.edu
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).