All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: Hannes Eder <hannes@hanneseder.net>
Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org,
	kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] CRED: fix compilation warning in function 'get_cred'
Date: Thu, 20 Nov 2008 22:19:31 +0000	[thread overview]
Message-ID: <11321.1227219571@redhat.com> (raw)
In-Reply-To: <154e089b0811201400w6b5d249eyc21ebb9a76133d08@mail.gmail.com>

Hannes Eder <hannes@hanneseder.net> wrote:

> Fix to following warning by introducing a temporary variable:
> 
> include/linux/cred.h: In function 'get_cred':
> include/linux/cred.h:187: warning: passing argument 1 of
> 'get_new_cred' discards qualifiers from pointer target type

Interesting.  I believe that's a compiler bug.  Explicitly casting away the
const should avoid this warning.

David

  reply	other threads:[~2008-11-20 22:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-20 22:00 [PATCH] CRED: fix compilation warning in function 'get_cred' Hannes Eder
2008-11-20 22:00 ` Hannes Eder
2008-11-20 22:19 ` David Howells [this message]
2008-11-21 14:54   ` Hannes Eder
2008-11-21 14:54     ` Hannes Eder
2008-11-21 16:25     ` David Howells
2008-11-21 20:22       ` Hannes Eder
2008-11-21 20:22         ` Hannes Eder
2008-11-22  0:36         ` David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11321.1227219571@redhat.com \
    --to=dhowells@redhat.com \
    --cc=hannes@hanneseder.net \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.