[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:
@@ -62,22 +62,19 @@ struct sctp_ulpq *sctp_ulpq_init(struct sctp_ulpq *,
|
||||
void sctp_ulpq_free(struct sctp_ulpq *);
|
||||
|
||||
/* Add a new DATA chunk for processing. */
|
||||
int sctp_ulpq_tail_data(struct sctp_ulpq *, struct sctp_chunk *,
|
||||
unsigned int __nocast);
|
||||
int sctp_ulpq_tail_data(struct sctp_ulpq *, struct sctp_chunk *, gfp_t);
|
||||
|
||||
/* Add a new event for propagation to the ULP. */
|
||||
int sctp_ulpq_tail_event(struct sctp_ulpq *, struct sctp_ulpevent *ev);
|
||||
|
||||
/* Renege previously received chunks. */
|
||||
void sctp_ulpq_renege(struct sctp_ulpq *, struct sctp_chunk *,
|
||||
unsigned int __nocast);
|
||||
void sctp_ulpq_renege(struct sctp_ulpq *, struct sctp_chunk *, gfp_t);
|
||||
|
||||
/* Perform partial delivery. */
|
||||
void sctp_ulpq_partial_delivery(struct sctp_ulpq *, struct sctp_chunk *,
|
||||
unsigned int __nocast);
|
||||
void sctp_ulpq_partial_delivery(struct sctp_ulpq *, struct sctp_chunk *, gfp_t);
|
||||
|
||||
/* Abort the partial delivery. */
|
||||
void sctp_ulpq_abort_pd(struct sctp_ulpq *, unsigned int __nocast);
|
||||
void sctp_ulpq_abort_pd(struct sctp_ulpq *, gfp_t);
|
||||
|
||||
/* Clear the partial data delivery condition on this socket. */
|
||||
int sctp_clear_pd(struct sock *sk);
|
||||
|
Reference in New Issue
Block a user