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]
Date:	Wed, 9 Mar 2011 17:58:58 +0100
From:	Tejun Heo <tj@...nel.org>
To:	Pete Zaitcev <zaitcev@...hat.com>
Cc:	axboe@...nel.dk, linux-kernel@...r.kernel.org,
	kay.sievers@...y.org, hch@...radead.org
Subject: Re: [PATCH 10/16] ub: Convert to bdops->check_events()

On Wed, Mar 09, 2011 at 09:46:58AM -0700, Pete Zaitcev wrote:
> On Wed,  9 Mar 2011 10:13:30 +0100
> Tejun Heo <tj@...nel.org> wrote:
> 
> > +++ b/drivers/block/ub.c
> > @@ -1788,7 +1788,8 @@ static int ub_bd_revalidate(struct gendisk *disk)
> >   *
> >   * The return code is bool!
> >   */
> > -static int ub_bd_media_changed(struct gendisk *disk)
> > +static unsigned int ub_bd_check_events(struct gendisk *disk,
> > +				       unsigned int clearing)
> 
> > -	return lun->changed;
> > +	return lun->changed ? DISK_EVENT_MEDIA_CHANGE : 0;
> >  }
> 
> Return code is not so bool anymore. The comment meant that usually
> "int" means "return 0 on success, -1 on failure, maybe some integer
> for a tricky condition" but not here. I'll have the comment fixed up,
> or if you want you do it.

Ooh, right.  Please go ahead and fix that up.

Thank you.

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