lkml.org 
[lkml]   [2009]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [CRED bug?] 2.6.29-rc3 don't survive on stress workload

* David Howells <dhowells@redhat.com> wrote:

> Ingo Molnar <mingo@elte.hu> wrote:
>
> > include/linux/cred.h: In function 'get_cred':
> > include/linux/cred.h:188: warning: passing argument 1 of 'get_new_cred' discards
> > qualifiers from pointer target type
>
> This is a known compiler bug in some versions of gcc. It fails to observe the
> fact that a const pointer is cast to the equivalent non-const pointer in
> get_cred():
>
> static inline const struct cred *get_cred(const struct cred *cred)
> {
> return get_new_cred((struct cred *) cred);
> }

If by 'some versions of gcc' you mean 'gcc 4.2.2' then yes. And in any case
it's a very annoying warning.

Ingo


\
 
 \ /
  Last update: 2009-02-11 18:49    [W:0.039 / U:1.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site