Bug fix in pointer modifiers inherent at function degeneration. In reply to Randy's email: The following case cause warning about different signedness of pointer. The pointer should not have signedness at all. struct sk_buff; struct sock; extern int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb, int getfrag(void *from, char *to, int offset, int len,int odd, struct sk_buff *skb), void *from, int length); int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb, int (*getfrag)(void *from, char *to, int offset, int len,int odd, struct sk_buff *skb), void *from, int length) { return 0; } Index: sparse/symbol.h =================================================================== --- sparse.orig/symbol.h 2007-02-09 15:03:07.000000000 -0800 +++ sparse/symbol.h 2007-02-09 15:03:09.000000000 -0800 @@ -191,6 +191,7 @@ struct symbol { #define MOD_SIZE (MOD_CHAR | MOD_SHORT | MOD_LONG | MOD_LONGLONG) #define MOD_IGNORE (MOD_TOPLEVEL | MOD_STORAGE | MOD_ADDRESSABLE | \ MOD_ASSIGNED | MOD_USERTYPE | MOD_FORCE | MOD_ACCESSED | MOD_EXPLICITLY_SIGNED) +#define MOD_PTRINHERIT (MOD_VOLATILE | MOD_CONST | MOD_NODEREF | MOD_STORAGE) /* Current parsing/evaluation function */ Index: sparse/evaluate.c =================================================================== --- sparse.orig/evaluate.c 2007-02-09 15:03:07.000000000 -0800 +++ sparse/evaluate.c 2007-02-09 15:03:09.000000000 -0800 @@ -1282,7 +1282,7 @@ static void examine_fn_arguments(struct else ptr->ctype.base_type = arg; ptr->ctype.as |= s->ctype.as; - ptr->ctype.modifiers |= s->ctype.modifiers; + ptr->ctype.modifiers |= s->ctype.modifiers & MOD_PTRINHERIT; s->ctype.base_type = ptr; s->ctype.as = 0; @@ -1313,8 +1313,6 @@ static struct symbol *convert_to_as_mod( return sym; } -#define MOD_PTRINHERIT (MOD_VOLATILE | MOD_CONST | MOD_NODEREF | MOD_STORAGE) - static struct symbol *create_pointer(struct expression *expr, struct symbol *sym, int degenerate) { struct symbol *node = alloc_symbol(expr->pos, SYM_NODE);