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] [day] [month] [year] [list]
Date:	Thu, 20 May 2010 10:00:42 +0200
From:	Tobias Klauser <tklauser@...tanz.ch>
To:	Joe Perches <joe@...ches.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] vhost: Storage class should be before const qualifier

On 2010-05-17 at 15:54:57 +0200, Joe Perches <joe@...ches.com> wrote:
> On Mon, 2010-05-17 at 15:27 +0200, Tobias Klauser wrote:
> > On 2010-05-17 at 15:13:35 +0200, Michael S. Tsirkin <mst@...hat.com> wrote:
> > > On Mon, May 17, 2010 at 03:12:49PM +0200, Tobias Klauser wrote:
> > > > The C99 specification states in section 6.11.5:
> > > > The placement of a storage-class specifier other than at the beginning
> > > > of the declaration specifiers in a declaration is an obsolescent
> > > > feature.
> > > > Signed-off-by: Tobias Klauser <tklauser@...tanz.ch>
> > > Just to clarify: does some compiler/checker actually barf on this?
> > GCC does emit a warning if the options '-std=c99 -W -Wall' are present.
> > ICC also does warn about this, though I don't know whether this depends
> > on any commandline options.
> 
> Perhaps others should be converted as well.
> 
> $ grep -rPl --include=*.[ch] "^[ \t]*const\s+static" * | \
>   xargs sed -i -r -e 's/^[ \t]*const[ \t]+static\b/static const/g' 

Thanks, I slightly modified this (to preserve possible whitespaces at
the beginning of the line) and will submit the patches to the respective
maintainers/mailinglists.

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