* [PATCH]Silencing warning: passing argument 1 of 'get_new_cred' discards qualifiers from pointer target type
@ 2009-04-09 22:46 Marin Mitov
0 siblings, 0 replies; only message in thread
From: Marin Mitov @ 2009-04-09 22:46 UTC (permalink / raw)
To: linux-kernel; +Cc: David Howells
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);
}
/**
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-09 22:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-09 22:46 [PATCH]Silencing warning: passing argument 1 of 'get_new_cred' discards qualifiers from pointer target type Marin Mitov
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®