[PATCH] gfp flags annotations - part 1
- added typedef unsigned int __nocast gfp_t; - replaced __nocast uses for gfp flags with gfp_t - it gives exactly the same warnings as far as sparse is concerned, doesn't change generated code (from gcc point of view we replaced unsigned int with typedef) and documents what's going on far better. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -68,7 +68,7 @@ static void sctp_endpoint_bh_rcv(struct sctp_endpoint *ep);
|
||||
*/
|
||||
static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep,
|
||||
struct sock *sk,
|
||||
unsigned int __nocast gfp)
|
||||
gfp_t gfp)
|
||||
{
|
||||
struct sctp_sock *sp = sctp_sk(sk);
|
||||
memset(ep, 0, sizeof(struct sctp_endpoint));
|
||||
@@ -138,8 +138,7 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep,
|
||||
/* Create a sctp_endpoint with all that boring stuff initialized.
|
||||
* Returns NULL if there isn't enough memory.
|
||||
*/
|
||||
struct sctp_endpoint *sctp_endpoint_new(struct sock *sk,
|
||||
unsigned int __nocast gfp)
|
||||
struct sctp_endpoint *sctp_endpoint_new(struct sock *sk, gfp_t gfp)
|
||||
{
|
||||
struct sctp_endpoint *ep;
|
||||
|
||||
|
Reference in New Issue
Block a user