From: Marin Mitov <mitov@issp.bas.bg>
To: linux-kernel@vger.kernel.org
Cc: David Howells <dhowells@redhat.com>
Subject: [PATCH]Silencing warning: passing argument 1 of 'get_new_cred' discards qualifiers from pointer target type
Date: Fri, 10 Apr 2009 01:46:28 +0300 [thread overview]
Message-ID: <200904100146.28826.mitov@issp.bas.bg> (raw)
Hi all,
I do not know if that is worth the effort, but...
Silencing warning: passing argument 1 of 'get_new_cred' discards qualifiers from pointer target type
The proposed change is similar to that used in put_cred() function (few lines lower)
The patch is against 2.6.30-rc1, but should apply to 2.6.29(.1) too.
Signed-off-by: Marin Mitov mitov@issp.bas.bg
=============================================================
--- a/include/linux/cred.h 2009-04-05 19:59:19.000000000 +0300
+++ b/include/linux/cred.h 2009-04-05 22:49:22.000000000 +0300
@@ -185,7 +185,9 @@
*/
static inline const struct cred *get_cred(const struct cred *cred)
{
- return get_new_cred((struct cred *) cred);
+ struct cred *_cred = (struct cred *) cred;
+
+ return get_new_cred(_cred);
}
/**
reply other threads:[~2009-04-09 22:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200904100146.28826.mitov@issp.bas.bg \
--to=mitov@issp.bas.bg \
--cc=dhowells@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®