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: <20091214222150.GD9213@elf.ucw.cz>
Date:	Mon, 14 Dec 2009 23:21:51 +0100
From:	Pavel Machek <pavel@....cz>
To:	Arjan van de Ven <arjan@...radead.org>
Cc:	Emese Revfy <re.emese@...il.com>, Paul Mundt <lethal@...ux-sh.org>,
	Matthew Wilcox <matthew@....cx>, linux-kernel@...r.kernel.org,
	torvalds@...ux-foundation.org, viro@...iv.linux.org.uk,
	akpm@...ux-foundation.org
Subject: Re: [PATCH 0/1] Constify struct address_space_operations for
 2.6.32-git-053fe57ac v2

On Mon 2009-12-14 14:17:57, Arjan van de Ven wrote:
> On Mon, 14 Dec 2009 22:25:26 +0100
> Pavel Machek <pavel@....cz> wrote:
> 
> > On Mon 2009-12-14 08:00:49, Arjan van de Ven wrote:
> > > On Mon, 14 Dec 2009 12:26:56 +0100
> > > Pavel Machek <pavel@....cz> wrote:
> > > 
> > > > > > Until such a consensus is reached one way or the other, please
> > > > > > refrain from sending hundreds of patches -- one or two are
> > > > > > sufficient for showing what you want to do until folks are on
> > > > > > board with it, as is the typical nature of mechanical changes.
> > > > > 
> > > > > I think there is consensus to constify ops variables as much as
> > > > > possible (e.g., Alexey's similar patches).
> > > > 
> > > > No such consensus exists. It is very clear from the patch
> > > > reactions.
> > > 
> > > I for one am not opposed to using const where we could be using
> > > const.
> > 
> > I certainly object "constify ops... as much as possible". If it
> > uglifies the code, it should not be done. If it is as simple as adding
> > const to few lines, its probably ok.
> > 
> > But .... the patch contained huge load of 
> > 
> > -	int (* resume)()
> > +	int (* const resume)()
> > 
> > What is that?
> 
> the ops stuct instantiation itself should be const.
> the members not so much; that makes no sense.

I thought so; but that was half of the patches I saw, therefore
complains...
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
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