From: "Randy Dunlap" <rdunlap@xenotime.net>
To: Michael Krufky <mkrufky@linuxtv.org>,
Linux and Kernel Video <video4linux-list@redhat.com>,
Andrew Morton <akpm@osdl.org>, Axel Thimm <Axel.Thimm@atrpms.net>,
linux-kernel <linux-kernel@vger.kernel.org>,
Mauro Carvalho Chehab <mchehab@infradead.org>,
Randy Dunlap <rdunlap@xenotime.net>
Subject: Re: bttv-driver.c:3964: error: void value not ignored as it ought to be
Date: Mon, 17 Jul 2006 20:30:18 -0700 [thread overview]
Message-ID: <1153193418.25651@shark.he.net> (raw)
> Michael Krufky wrote:
> > Nish Aravamudan wrote:
> >> On 7/17/06, Michael Krufky <mkrufky@linuxtv.org> wrote:
> >>> Hmmm... This was caused by the "Check all __must_check warnings in
> >>> bttv." patch from Randy Dunlap (cc's from original thread added)
> >>>
> >>> I am aware that this was done for various reasons of sanity checking,
> >>> however, we cannot check the return value of a void ;-)
> >> For the sanity checking, I don't think video_device_create_file()
> >> should be a void function. It probably should return
> >> class_device_create_file()'s return value, no? As it can fail...
> >>
> >
> > You are correct... I was merely pointing out the error, but now I see it
> > runs deeper than I had thought. I will fix both
> > video_device_create_file and video_device_remove_file to return the
> > class_device_foo return values, then I'll push it over to Mauro.
>
> I was in a rush when I wrote that, and I wasn't thinking.
> video_device_remove_file stays as a void.
>
> Anyway, here is the fix. This is already in my tree (
> http://linuxtv.org/hg/~mkrufky/v4l-dvb ) but split into separate patches.
Hi,
Thanks for taking care of this.
I'll look over it and see what I missed. Right now I have
terrible wireless connections/problems. Sorry about the delay.
---
~Randy
next reply other threads:[~2006-07-18 3:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-18 3:30 Randy Dunlap [this message]
[not found] <20060717124505.GD7281@neu.nirvana>
2006-07-17 19:53 ` bttv-driver.c:3964: error: void value not ignored as it ought to be Michael Krufky
2006-07-17 20:55 ` Nish Aravamudan
2006-07-17 21:30 ` Michael Krufky
2006-07-18 3:03 ` Michael Krufky
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=1153193418.25651@shark.he.net \
--to=rdunlap@xenotime.net \
--cc=Axel.Thimm@atrpms.net \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=mkrufky@linuxtv.org \
--cc=video4linux-list@redhat.com \
/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