lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <29495f1d0607171355s1858f109xab02c7cc437f180c@mail.gmail.com>
Date:	Mon, 17 Jul 2006 13:55:49 -0700
From:	"Nish Aravamudan" <nish.aravamudan@...il.com>
To:	"Michael Krufky" <mkrufky@...uxtv.org>
Cc:	"Linux and Kernel Video" <video4linux-list@...hat.com>,
	"Randy Dunlap" <rdunlap@...otime.net>,
	"Andrew Morton" <akpm@...l.org>,
	"Mauro Carvalho Chehab" <mchehab@...radead.org>,
	linux-kernel <linux-kernel@...r.kernel.org>,
	"Axel Thimm" <Axel.Thimm@...pms.net>
Subject: Re: bttv-driver.c:3964: error: void value not ignored as it ought to be

On 7/17/06, Michael Krufky <mkrufky@...uxtv.org> wrote:
> Axel Thimm wrote:
> > latest hg fails on > 2.6.17 due to video_device_create_file being void
> > but still being asked for a return value in bttv-driver.c
> >
> > linux/drivers/media/video/bt8xx/bttv-driver.c:
> >
> >    3963 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17)
> >    3964         ret = video_device_create_file(btv->video_dev, class_device_attr_card);
> >    3965         if (ret < 0)
> >
> >
> > linux/include/media/v4l2-dev.h:
> >
> >     379 static inline void
> >     380 video_device_create_file(struct video_device *vfd,
> >     381                          struct class_device_attribute *attr)
> >     382 {
> >

<snip>

> 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...

Thanks,
Nish
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ